/* ===== Themes Page Styles ===== */

/* ===== Themes Hero Section ===== */
.themes-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 50%, #e0e7ff 100%);
}

.themes-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.themes-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    opacity: 0.9;
}

.themes-hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    align-items: center;
    width: 100%;
    padding-top: 100px;
    padding-bottom: 60px;
}

.themes-hero-left {
    max-width: 520px;
}

.themes-hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: var(--color-slate);
}

.themes-hero-title .line {
    display: block;
}

.themes-hero-title .gradient-text {
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.themes-hero-desc {
    font-size: 16px;
    color: var(--color-gray-500);
    line-height: 1.8;
    margin-bottom: 36px;
}

.themes-hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.themes-hero-buttons .btn-outline {
    background: transparent;
    color: var(--color-slate);
    border: 1.5px solid var(--color-gray-300);
}

.themes-hero-buttons .btn-outline:hover {
    border-color: var(--color-purple);
    color: var(--color-purple);
    transform: translateY(-2px);
}

/* ===== Themes Section ===== */
.themes-section {
    padding: 80px 0 120px;
    background: #FDFDFE;
}

.themes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.themes-header .section-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--color-slate);
}

.themes-header .link-arrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-purple);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s var(--transition-smooth);
}

.themes-header .link-arrow:hover {
    gap: 10px;
}

/* ===== Themes Grid ===== */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.theme-card {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.5s var(--transition-smooth);
    border: 1px solid var(--color-gray-100);
}

.theme-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.12), 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: rgba(139, 92, 246, 0.15);
}

.theme-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.theme-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth);
}

.theme-card:hover .theme-image {
    transform: scale(1.05);
}

.theme-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s var(--transition-smooth);
}

.theme-card:hover .theme-overlay {
    opacity: 1;
}

.theme-preview-btn {
    padding: 10px 24px;
    background: var(--color-white);
    color: var(--color-slate);
    border: none;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    transform: translateY(10px);
    opacity: 0;
}

.theme-card:hover .theme-preview-btn {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.theme-preview-btn:hover {
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-cyan) 100%);
    color: var(--color-white);
}

.theme-info {
    padding: 20px 24px 24px;
}

.theme-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-slate);
    margin-bottom: 12px;
}

.theme-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.theme-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.08);
    color: var(--color-purple);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}

.theme-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-slate);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .themes-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .themes-hero-content {
        padding: 0 40px;
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .themes-hero-title {
        font-size: 40px;
    }

    .themes-hero-left {
        max-width: 450px;
    }

    .themes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .themes-section {
        padding: 60px 0 80px;
    }
}

@media (max-width: 768px) {
    .themes-hero {
        min-height: auto;
    }

    .themes-hero-content {
        padding: 0 20px;
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .themes-hero-title {
        font-size: 32px;
    }

    .themes-hero-desc {
        font-size: 15px;
    }

    .themes-hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .themes-hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .themes-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 32px;
    }

    .themes-header .section-title {
        font-size: 26px;
    }

    .themes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .theme-info {
        padding: 16px 20px 20px;
    }

    .theme-name {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .themes-hero-title {
        font-size: 28px;
    }

    .themes-hero-left {
        max-width: 100%;
    }
}
