/* ==========================================================================
   Zen Flow Yoga — CSS Theme
   Yoga Studio HTML Template | Cool mood palette | Raleway + Nunito
   ========================================================================== */

:root {
    --primary-color: #2A9D8F;
    --primary-hover: #264653;
    --text-on-primary: #ffffff;
    --bg-light: #E8F5F0;
    --font-display: 'Raleway', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

/* ==========================================================================
   Color Schemes — 10 themes
   ========================================================================== */

[data-theme="teal-mint"] {
    --primary-color: #2A9D8F;
    --primary-hover: #264653;
    --bg-light: #E8F5F0;
}

[data-theme="sage-cream"] {
    --primary-color: #87AE73;
    --primary-hover: #6B8F5B;
    --bg-light: #F5FAF0;
}

[data-theme="lavender-white"] {
    --primary-color: #7B68AE;
    --primary-hover: #5B4F8A;
    --bg-light: #F3F0FF;
}

[data-theme="ocean-white"] {
    --primary-color: #0077B6;
    --primary-hover: #023E8A;
    --bg-light: #CAF0F8;
}

[data-theme="sky-white"] {
    --primary-color: #4DA8DA;
    --primary-hover: #357ABD;
    --bg-light: #F0F8FF;
}

[data-theme="seafoam-sand"] {
    --primary-color: #20B2AA;
    --primary-hover: #178F89;
    --bg-light: #FFF8F0;
}

[data-theme="mint-white"] {
    --primary-color: #3EB489;
    --primary-hover: #2D8B6A;
    --bg-light: #F0FFF5;
}

/* Dark theme */
[data-theme="navy-white"] {
    --primary-color: #5DADE2;
    --primary-hover: #3498DB;
    --text-on-primary: #0D1B2A;
    --bg-light: #1D3557;
}

/* Dark theme */
[data-theme="indigo-ice"] {
    --primary-color: #BB86FC;
    --primary-hover: #9B59B6;
    --text-on-primary: #1A1A2E;
    --bg-light: #16213E;
}

[data-theme="steel-gray"] {
    --primary-color: #4682B4;
    --primary-hover: #36648B;
    --bg-light: #F0F4F8;
}


/* ==========================================================================
   Global Styles
   ========================================================================== */

body {
    font-family: var(--font-body);
    color: #333;
    background-color: var(--bg-light);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark theme body text overrides */
[data-theme="navy-white"] body,
[data-theme="indigo-ice"] body {
    color: #f8f9fa;
}

[data-theme="navy-white"] .text-muted,
[data-theme="indigo-ice"] .text-muted {
    color: #adb5bd !important;
}

[data-theme="navy-white"] .card,
[data-theme="indigo-ice"] .card {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.bg-light {
    background-color: var(--bg-light) !important;
}

h1, h2, h3, h4, h5, h6, .font-display {
    font-family: var(--font-display);
}


/* ==========================================================================
   Bootstrap Overrides
   ========================================================================== */

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-on-primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary.active,
.btn-outline-primary:active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-on-primary);
}

.border-primary {
    border-color: var(--primary-color) !important;
}


/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    background: url('https://images.unsplash.com/photo-1545205597-3d9d02c29597?w=1920&q=80') no-repeat center center/cover;
    height: 80vh;
    min-height: 500px;
    position: relative;
}

.hero-section .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}


/* ==========================================================================
   Page Header
   ========================================================================== */

.page-header {
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    padding: 3rem 0;
    margin-top: 56px;
}


/* ==========================================================================
   Section Titles
   ========================================================================== */

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}


/* ==========================================================================
   Product / Service Cards
   ========================================================================== */

.product-card {
    transition: transform 0.3s ease;
    overflow: hidden;
}

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

.card-img-top-wrapper {
    height: 250px;
    overflow: hidden;
}

.card-img-top {
    height: 250px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}


/* ==========================================================================
   Theme Switcher
   ========================================================================== */

.theme-switcher {
    position: fixed;
    top: 100px;
    right: 0;
    z-index: 1050;
}

#theme-toggle-btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding: 10px 15px;
    font-size: 1.2rem;
    cursor: pointer;
}

.theme-panel {
    position: absolute;
    right: 100%;
    top: 0;
    width: 200px;
    background: white;
    padding: 15px;
    border-radius: 5px 0 0 5px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    display: none;
}

.theme-panel.active {
    display: block;
}

.color-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-btn:hover {
    transform: scale(1.1);
}


/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}


/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination .page-link {
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-on-primary);
}

.pagination .page-link:hover {
    color: var(--primary-hover);
}


/* ==========================================================================
   Footer
   ========================================================================== */

footer a:hover {
    color: white !important;
    text-decoration: underline !important;
}

.social-links {
    display: flex;
    align-items: center;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
}


/* ==========================================================================
   Team / Instructor Cards
   ========================================================================== */

.team-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
}


/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}


/* ==========================================================================
   Cart Styles
   ========================================================================== */

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}


/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-card {
    border-left: 4px solid var(--primary-color);
}

.testimonial-card .fa-quote-left {
    color: var(--primary-color);
    opacity: 0.3;
    font-size: 2rem;
}


/* ==========================================================================
   Pricing Cards
   ========================================================================== */

.pricing-card {
    transition: transform 0.3s ease;
}

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

.pricing-card.featured {
    border: 2px solid var(--primary-color);
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}


/* ==========================================================================
   Schedule Table
   ========================================================================== */

.schedule-table th {
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    white-space: nowrap;
}

.schedule-table td {
    vertical-align: middle;
    font-size: 0.85rem;
    min-width: 120px;
}

.schedule-table .badge {
    font-size: 0.7rem;
}


/* ==========================================================================
   Instructor Cards
   ========================================================================== */

.instructor-card img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
}

.instructor-card .specialty-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    background-color: var(--bg-light);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .card-img-top,
    .card-img-top-wrapper {
        height: 200px;
    }

    .page-header {
        padding: 2rem 0;
    }

    .schedule-table {
        font-size: 0.75rem;
    }

    .instructor-card img {
        width: 120px;
        height: 120px;
    }
}
