:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f5f5f5;
    --text-color: #333333;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--primary-bg);
}

.search-filters {
    margin-top: 1rem;
}

#searchInput {
    padding: 0.5rem;
    width: 100%;
    max-width: 400px;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 2rem;
}

.color-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.color-card:hover {
    transform: translateY(-5px);
}

.color-sample {
    height: 150px;
}

.color-info {
    padding: 1rem;
    background-color: white;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    border-radius: var(--border-radius);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.close-button {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.color-theory {
    padding: 2rem;
    background-color: var(--secondary-bg);
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .color-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        padding: 1rem;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .search-filters {
        margin-top: 1rem;
    }
} 

/* Header styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    color: #2c3e50;
    background: #f0f2f5;
}

.main-nav a.active {
    color: #fff;
    background: #2c3e50;
}

.search-filters {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 2rem;
}

.search-container {
    margin-bottom: 1.5rem;
}

#searchInput {
    width: 100%;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    border: 2px solid #e0e3e7;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: 'Roboto', sans-serif;
}

#searchInput:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

/* Responsive header */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }

    .main-nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .search-filters {
        margin-top: 1rem;
    }
}

/* Filter buttons improvements */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-start;
}

.filter-buttons button {
    padding: 0.6rem 1.2rem;
    border: none;
    background: #f0f2f5;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    color: #555;
}

.filter-buttons button:hover {
    background: #e4e6e9;
    transform: translateY(-1px);
}

.filter-buttons button.active {
    background: #2c3e50;
    color: #fff;
} 

/* Add main content styles */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Improve color grid responsiveness */
@media (max-width: 1024px) {
    .main-content {
        padding: 1rem;
    }
    
    .color-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
} 


/* Go to Top Button styles */
.go-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 99;
}

.go-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.go-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .go-to-top {
        bottom: 1rem;
        right: 1rem;
    }
}