/* ===== colors.html page-specific styles ===== */

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Search/Filter */
.filter-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.filter-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
    padding: 0.8rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}
.search-box:focus { border-color: #667eea; }

/* Color Grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.color-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}
.color-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.color-preview {
    height: 150px;
    display: flex;
}

.color-swatch {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}
.color-swatch:hover { flex: 2; }

.color-info { padding: 1.5rem; }

.color-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.color-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.color-tag {
    padding: 0.3rem 0.8rem;
    background: #f0f0f0;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.color-codes { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.color-code {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}
.color-code:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

@media (max-width: 768px) {
    .color-grid { grid-template-columns: 1fr; }
}
