/* ============================================
   Chef Rumbie - Custom Styles
   Premium Chef Booking Platform
   ============================================ */

/* ============================================
   CSS Variables / Design Tokens
   ============================================ */
:root {
    /* Primary Colors - Warm, Culinary Theme */
    --primary: #c8a97e;
    --primary-dark: #a68b5b;
    --primary-light: #e8d5b9;

    /* Secondary Colors */
    --secondary: #2c3e50;
    --secondary-light: #34495e;

    /* Accent Colors */
    --accent: #e74c3c;
    --accent-golden: #f39c12;
    --accent-green: #27ae60;

    /* Neutrals */
    --dark: #1a1a2e;
    --dark-lighter: #16213e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(200, 169, 126, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* ============================================
   Base Styles
   ============================================ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--secondary);
    background-color: var(--light);
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   Navbar Styles
   ============================================ */
#mainNav {
    background: transparent;
    padding: 1rem 0;
    transition: var(--transition-normal);
}

#mainNav.navbar-scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

#mainNav .navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

#mainNav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

#mainNav .nav-link:hover {
    color: var(--primary);
    background: rgba(200, 169, 126, 0.1);
}

.brand-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-golden) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/hero-pattern.svg') repeat;
    opacity: 0.05;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--primary);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent-golden) 100%);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   Cards
   ============================================ */
.card {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Service/Package Cards */
.package-card {
    position: relative;
    background: #fff;
}

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

.package-card .featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-golden) 100%);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.package-card .price {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

.package-card .price small {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 400;
}

/* Class Cards */
.class-card {
    background: #fff;
}

.class-card .class-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.class-card .class-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--gray);
}

.class-card .skill-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.class-card .skill-badge.beginner {
    background: #d4edda;
    color: #155724;
}

.class-card .skill-badge.intermediate {
    background: #fff3cd;
    color: #856404;
}

.class-card .skill-badge.advanced {
    background: #f8d7da;
    color: #721c24;
}

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent-golden) 100%);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

/* Dark Section */
.section-dark {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%);
    color: #fff;
}

.section-dark .section-title {
    color: #fff;
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    font-family: var(--font-heading);
    color: var(--primary);
    opacity: 0.2;
    line-height: 1;
}

.testimonial-card .content {
    position: relative;
    z-index: 1;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.testimonial-card .author-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-card .rating {
    color: var(--accent-golden);
}

/* ============================================
   Gallery
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-normal);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay h5 {
    color: #fff;
    margin: 0;
}

/* ============================================
   Forms
   ============================================ */
.form-control,
.form-select {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    border: 2px solid var(--gray-light);
    transition: var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(200, 169, 126, 0.1);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Floating Labels */
.form-floating>.form-control,
.form-floating>.form-select {
    height: calc(3.5rem + 4px);
    padding: 1rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--dark);
}

.footer a {
    color: var(--gray);
    transition: var(--transition-fast);
}

.footer a:hover {
    color: var(--primary);
}

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

.footer .social-links a:hover {
    color: var(--accent-golden);
}

/* ============================================
   WhatsApp Float Button
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition-normal);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.1);
    animation: none;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ============================================
   Booking Form Steps
   ============================================ */
.booking-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.booking-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray);
}

.booking-step.active {
    color: var(--primary);
}

.booking-step.completed {
    color: var(--accent-green);
}

.booking-step .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.booking-step.active .step-number {
    background: var(--primary);
    color: #fff;
}

.booking-step.completed .step-number {
    background: var(--accent-green);
    color: #fff;
}

/* ============================================
   Dashboard
   ============================================ */
.dashboard-sidebar {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.dashboard-sidebar .nav-link {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.dashboard-sidebar .nav-link i {
    margin-right: 0.75rem;
}

.stat-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.stat-card .stat-label {
    color: var(--gray);
    font-size: 0.875rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .booking-steps {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    section {
        padding: 3rem 0;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ============================================
   Utilities
   ============================================ */
.text-primary {
    color: var(--primary) !important;
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-golden) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%);
}

.divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent-golden) 100%);
    border-radius: 2px;
}

.overlay-dark {
    position: relative;
}

.overlay-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

/* ============================================
   Light Mode (manual toggle)
   ============================================ */
[data-theme="light"] {
    --light: #f8f9fa;
    --dark: #1a1a2e;
    --gray-light: #e9ecef;
    --secondary: #2c3e50;
}

[data-theme="light"] body {
    background-color: #f8f9fa;
    color: #2c3e50;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: #1a1a2e;
}

[data-theme="light"] .card {
    background-color: #fff;
    border: 1px solid #e9ecef;
}

[data-theme="light"] .card-body {
    background-color: #fff;
}

[data-theme="light"] .package-card,
[data-theme="light"] .class-card,
[data-theme="light"] .testimonial-card {
    background: #fff;
}

[data-theme="light"] .form-control,
[data-theme="light"] .form-select {
    background-color: #fff;
    border-color: #dee2e6;
    color: #2c3e50;
}

[data-theme="light"] .form-control:focus,
[data-theme="light"] .form-select:focus {
    background-color: #fff;
}

[data-theme="light"] .dashboard-sidebar {
    background: #fff;
}

[data-theme="light"] .stat-card {
    background: #fff;
}

[data-theme="light"] .bg-light {
    background-color: #f8f9fa !important;
}

[data-theme="light"] .bg-white {
    background-color: #fff !important;
}

[data-theme="light"] .dropdown-menu {
    background-color: #fff;
    border-color: #dee2e6;
}

[data-theme="light"] .dropdown-item {
    color: #2c3e50;
}

[data-theme="light"] .dropdown-item:hover {
    background-color: #f8f9fa;
}

[data-theme="light"] .list-group-item {
    background-color: #fff;
    border-color: #dee2e6;
    color: #2c3e50;
}

[data-theme="light"] .modal-content {
    background-color: #fff;
}

[data-theme="light"] .table {
    color: #2c3e50;
}

[data-theme="light"] .accordion-button {
    background-color: #fff;
    color: #2c3e50;
}

[data-theme="light"] .accordion-body {
    background-color: #fff;
}

[data-theme="light"] section {
    background-color: #f8f9fa;
}

[data-theme="light"] .page-link {
    background-color: #fff;
    border-color: #dee2e6;
    color: #2c3e50;
}

/* ============================================
   Dark Mode (default)
   ============================================ */
body {
    background-color: #121212;
    color: #e0e0e0;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
}

/* Cards */
.card {
    background-color: #1e1e2e;
    border: 1px solid #2d2d44;
}

.card-body {
    background-color: #1e1e2e;
}

.card-title {
    color: #ffffff;
}

.card-text {
    color: #b0b0b0;
}

/* Package and Class Cards */
.package-card,
.class-card,
.testimonial-card {
    background: #1e1e2e;
}

.package-card .price small {
    color: #888;
}

/* Form Controls */
.form-control,
.form-select {
    background-color: #2d2d44;
    border-color: #3d3d55;
    color: #e0e0e0;
}

.form-control:focus,
.form-select:focus {
    background-color: #2d2d44;
    border-color: var(--primary);
    color: #e0e0e0;
}

.form-control::placeholder {
    color: #888;
}

.form-label {
    color: #e0e0e0;
}

/* Dropdowns */
.dropdown-menu {
    background-color: #1e1e2e;
    border-color: #2d2d44;
}

.dropdown-item {
    color: #e0e0e0;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #2d2d44;
    color: var(--primary);
}

.dropdown-divider {
    border-color: #2d2d44;
}

/* Buttons */
.btn-outline-dark {
    color: #e0e0e0;
    border-color: #e0e0e0;
}

.btn-outline-dark:hover {
    background-color: #e0e0e0;
    color: #121212;
}

.btn-outline-secondary {
    color: #b0b0b0;
    border-color: #3d3d55;
}

/* Backgrounds */
.bg-light {
    background-color: #1a1a2e !important;
}

.bg-white {
    background-color: #1e1e2e !important;
}

/* Tables */
.table {
    color: #e0e0e0;
}

.table-hover tbody tr:hover {
    background-color: rgba(200, 169, 126, 0.1);
}

.table thead th {
    border-color: #2d2d44;
}

.table td,
.table th {
    border-color: #2d2d44;
}

.table-light {
    background-color: #2d2d44 !important;
}

/* List Groups */
.list-group-item {
    background-color: #1e1e2e;
    border-color: #2d2d44;
    color: #e0e0e0;
}

.list-group-item-action:hover,
.list-group-item-action:focus {
    background-color: #2d2d44;
    color: var(--primary);
}

/* Modals */
.modal-content {
    background-color: #1e1e2e;
    border-color: #2d2d44;
}

.modal-header,
.modal-footer {
    border-color: #2d2d44;
}

/* Alerts */
.alert {
    border: none;
}

/* Text & Muted */
.text-dark {
    color: #e0e0e0 !important;
}

.text-muted {
    color: #888 !important;
}

/* Breadcrumbs */
.breadcrumb-item+.breadcrumb-item::before {
    color: #888;
}

.breadcrumb-item.active {
    color: #b0b0b0;
}

/* Progress Bars */
.progress {
    background-color: #2d2d44;
}

/* Pagination */
.page-link {
    background-color: #1e1e2e;
    border-color: #2d2d44;
    color: #e0e0e0;
}

.page-link:hover {
    background-color: #2d2d44;
    color: var(--primary);
}

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

/* Dashboard */
.dashboard-sidebar {
    background: #1e1e2e;
}

.dashboard-sidebar .nav-link {
    color: #e0e0e0;
}

.stat-card {
    background: #1e1e2e;
}

/* Navbar when scrolled */
#mainNav.navbar-scrolled {
    background: rgba(18, 18, 18, 0.95);
}

/* Section backgrounds */
section {
    background-color: #121212;
}

/* Page hero backgrounds */
.page-hero {
    background-color: #1a1a2e;
}

/* Card header/footer */
.card-header {
    background-color: #2d2d44;
    border-color: #3d3d55;
}

.card-footer {
    background-color: #1e1e2e;
    border-color: #2d2d44;
}

/* Toasts */
.toast {
    background-color: #1e1e2e;
}

/* HR */
hr {
    border-color: #2d2d44;
}

/* Accordion */
.accordion-button {
    background-color: #1e1e2e;
    color: #e0e0e0;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(200, 169, 126, 0.1);
    color: var(--primary);
}

.accordion-body {
    background-color: #1e1e2e;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #3d3d55;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Section titles */
.section-title {
    color: #ffffff;
}

/* Gold buttons */
.btn-gold {
    background: linear-gradient(135deg, var(--primary) 0%, #a68b5b 100%);
    color: #1a1a2e;
    border: none;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #a68b5b 0%, var(--primary) 100%);
    color: #1a1a2e;
}

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

.btn-outline-gold:hover {
    background-color: var(--primary);
    color: #1a1a2e;
}

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

/* ============================================
   Theme Toggle Button
   ============================================ */
.theme-toggle {
    background: none;
    border: 1.5px solid rgba(200, 169, 126, 0.4);
    color: var(--primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1.1rem;
}

.theme-toggle:hover {
    background: rgba(200, 169, 126, 0.15);
    border-color: var(--primary);
}

/* Input autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #2d2d44 inset;
    -webkit-text-fill-color: #e0e0e0;
    transition: background-color 5000s ease-in-out 0s;
}

[data-theme="light"] input:-webkit-autofill,
[data-theme="light"] input:-webkit-autofill:hover,
[data-theme="light"] input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #fff inset;
    -webkit-text-fill-color: #2c3e50;
}