﻿/* ================================
   THEME PAGE
================================ */
.theme-page {
    padding: 20px 20px;
    background: #faf9f7;
}

/* HEADER */
.theme-header {
    text-align: center;
    margin-bottom: 60px;
}

    .theme-header h1 {
        font-size: 36px;
        font-weight: 700;
        margin-bottom: 10px;
        color: #111;
    }

    .theme-header p {
        font-size: 16px;
        color: #666;
    }

/* ================================
   GRID (3 x 4 = 12)
================================ */
.theme-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ================================
   THEME CARD
================================ */
.theme-card {
    position: relative;
    height: 420px;
    border-radius: 22px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    transition: transform 0.45s cubic-bezier(.4,0,.2,1), box-shadow 0.45s cubic-bezier(.4,0,.2,1);
}

    /* IMAGE */
    .theme-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(.4,0,.2,1), filter 0.6s ease;
    }

/* ================================
   OVERLAY (HIDDEN)
================================ */
.theme-overlay {
    position: absolute;
    inset: 0;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient( to top, rgba(0,0,0,0.85), rgba(0,0,0,0.45), rgba(0,0,0,0) );
    opacity: 0;
    transition: opacity 0.35s ease;
}

    .theme-overlay h3 {
        color: #fff;
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 14px;
    }

/* ================================
   BUTTONS
================================ */
.theme-buttons {
    display: flex;
    gap: 12px;
}


.btn-buy {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: #ff7a18; /* accent color */
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(255,122,24,0.45);
}
.theme-card:hover .btn-buy {
    transform: translateY(-1px);
    box-shadow: 0 14px 35px rgba(255,122,24,0.6);
}
/* DEMO */
.btn-demo {
    background: rgba(255,255,255,0.9);
    color: #000;
}



/* ================================
   MOUSE OVER IMPACT ✨
================================ */
.theme-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 40px 90px rgba(0,0,0,0.25);
    z-index: 2;
}

    .theme-card:hover img {
        transform: scale(1.1);
        filter: brightness(0.85);
    }

    .theme-card:hover .theme-overlay {
        opacity: 1;
    }

/* ================================
   PAGINATION
================================ */
.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.page {
    padding: 10px 16px;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

    .page.active {
        background: #000;
        color: #fff;
    }

/* ================================
   MOBILE RESPONSIVE
================================ */
@media (max-width: 900px) {
    .theme-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .theme-grid {
        grid-template-columns: 1fr;
    }

    .theme-card {
        height: 360px;
    }

    .theme-header h1 {
        font-size: 28px;
    }
}

.theme-card {
    position: relative;
    overflow: hidden;
    height: 420px; /* visible card height */
    border-radius: 14px;
    background: #000;
}

    .theme-card img {
        width: 100%;
        height: auto;
        display: block;
        transform: translateY(0);
        transition: transform 12s linear; /* ⬅ SLOWER (12 seconds) */
    }

    .theme-card:hover img {
        transform: translateY(calc(-100% + 420px));
    }


@media (max-width: 768px) {
    .theme-card img {
        transition: none;
        transform: none !important;
    }
}

