/* ===== Themes Page ===== */
.themes-hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, rgba(26,115,232,.75), rgba(66,133,244,.80)),
                url('../images/themes-hero.jpg') center/cover no-repeat;
    text-align: center;
    color: #fff;
}
.themes-hero h1 {
    font-size: 42px; font-weight: 900; color: #fff; margin-bottom: 16px;
}
.themes-hero p {
    font-size: 20px; color: rgba(255,255,255,.95);
}

/* Filters */
.themes-filters {
    padding: 30px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 72px;
    z-index: 90;
}
.filter-row {
    display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
}
.filter-group {
    display: flex; align-items: center; gap: 10px;
}
.filter-group strong {
    font-size: 14px; color: #333; white-space: nowrap;
}
.filter-group select {
    padding: 8px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fafafa;
    cursor: pointer;
    transition: border-color .3s ease;
    min-width: 140px;
}
.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #1a73e8;
    background: #fff;
}
.filter-search input {
    padding: 8px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fafafa;
    width: 160px;
    transition: border-color .3s ease;
}
.filter-search input::placeholder {
    color: #aaa;
}

/* Theme Grid */
.themes-grid-section {
    padding: 60px 0 100px;
    background: #f8f9ff;
}
.themes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.theme-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    transition: all .4s ease;
}
.theme-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,.12);
}
.theme-thumb {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: #e8f0fe;
    background-size: cover;
    background-position: center;
}
.theme-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
    background: rgba(26,115,232,.6);
}
.theme-thumb:hover .theme-overlay {
    opacity: 1;
}
.theme-info {
    padding: 20px;
}
.theme-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f4ff;
    color: #1a73e8;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 1024px) {
    .themes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .themes-hero h1 { font-size: 28px; }
    .themes-hero p { font-size: 16px; }
    .themes-grid {
        grid-template-columns: 1fr;
    }
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .filter-group {
        width: 100%;
    }
    .filter-group select {
        width: 100%;
    }
    .themes-filters {
        position: static;
    }
}
