/* Hairlich - Barbershop Booking Website Styles */
/* Design: Material Design with Professional color palette */

:root {
    /* Primary Colors - Navy/Professional with warm accent */
    --primary-color: #1a237e;
    --primary-light: #534bae;
    --primary-dark: #000051;
    --secondary-color: #c9a961;
    --secondary-light: #feda8b;
    --secondary-dark: #977a34;

    /* Neutrals */
    --text-primary: #212121;
    --text-secondary: #757575;
    --background: #fafafa;
    --surface: #ffffff;
    --divider: #e0e0e0;

    /* Spacing ratios (rhythmic) */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 72px;

    /* Border radius (soft) */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-primary);
    background-color: var(--background);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Navigation */
nav.nav-extended {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

nav .brand-logo {
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding-left: var(--space-sm);
}

nav .brand-logo i {
    font-size: 1.8rem;
}

nav ul li a {
    font-weight: 500;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255,255,255,0.1);
}

.sidenav {
    background-color: var(--surface);
}

.sidenav li > a {
    color: var(--text-primary);
    font-weight: 500;
}

.sidenav .user-view {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: var(--space-md);
}

.sidenav .user-view .name {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: var(--space-xl) 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    color: white;
    text-align: left;
    padding: var(--space-md);
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--space-md);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero-buttons .btn,
.hero-buttons .btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    border-radius: var(--radius-md);
    text-transform: none;
    font-weight: 600;
    padding: 0 var(--space-md);
    height: 48px;
    line-height: 48px;
}

.btn-primary {
    background-color: var(--secondary-color) !important;
    color: var(--primary-dark) !important;
}

.btn-primary:hover {
    background-color: var(--secondary-light) !important;
}

.btn-secondary {
    background-color: transparent !important;
    border: 2px solid white !important;
    color: white !important;
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1) !important;
}

/* Device Mockup */
.device-mockup {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.device-frame {
    position: relative;
    background: #1a1a1a;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.device-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #000;
    border-radius: 12px;
}

.device-screen {
    border-radius: 24px;
    overflow: hidden;
    background: #000;
}

.device-screen img {
    width: 100%;
    height: auto;
    display: block;
}

/* Features Section */
.features-section {
    padding: var(--space-xl) 0;
    background-color: var(--background);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots-section {
    padding: var(--space-lg) 0;
    background: linear-gradient(180deg, var(--background) 0%, #f0f0f0 100%);
    max-height: 500px;
    overflow: hidden;
}

.screenshot-carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    height: 380px;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    height: 100%;
}

.carousel-slide {
    display: none;
    justify-content: center;
    align-items: center;
}

.carousel-slide.active {
    display: flex;
}

.screenshot-device {
    position: relative;
    max-width: 200px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.screenshot-device:hover {
    transform: scale(1.02);
}

.screenshot-frame {
    background: #2a2a2a;
    border-radius: 28px;
    padding: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.screenshot-frame img {
    width: 100%;
    border-radius: 18px;
    display: block;
    filter: blur(5px);
    transition: filter 0.3s ease;
}

.screenshot-frame img.loaded {
    filter: blur(0);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background-color: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.carousel-nav:hover i {
    color: white;
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--divider);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* How It Works Section */
.how-it-works {
    padding: var(--space-xl) 0;
    background: var(--surface);
}

.step-card {
    text-align: center;
    padding: var(--space-md);
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: var(--space-md);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    background: var(--secondary-color);
    color: var(--primary-dark);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: var(--space-lg) 0 var(--space-md);
}

.footer-section h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: var(--space-xs);
}

.footer-section ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin: 0;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: var(--space-xl) 0 var(--space-lg);
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Content Pages (Privacy, Terms) */
.content-page {
    padding: var(--space-lg) 0;
    background: var(--background);
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-md);
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.content-container h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
}

.content-container h2:first-child {
    margin-top: 0;
}

.content-container p {
    text-align: left;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.content-container ul {
    text-align: left;
    padding-left: var(--space-md);
    margin-bottom: var(--space-sm);
}

.content-container ul li {
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.content-container a {
    color: var(--primary-color);
    text-decoration: none;
}

.content-container a:hover {
    text-decoration: underline;
}

.last-updated {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

/* Contact Form */
.contact-section {
    padding: var(--space-lg) 0;
    background: var(--background);
}

.contact-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.contact-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--space-md);
    text-align: center;
}

.input-field label {
    color: var(--text-secondary);
}

.input-field input:focus,
.input-field textarea:focus {
    border-bottom-color: var(--primary-color) !important;
    box-shadow: 0 1px 0 0 var(--primary-color) !important;
}

.input-field input:focus + label,
.input-field textarea:focus + label {
    color: var(--primary-color) !important;
}

.file-field .btn {
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn {
    background-color: var(--primary-color) !important;
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-transform: none;
    font-size: 1.1rem;
}

.submit-btn:hover {
    background-color: var(--primary-light) !important;
}

.contact-info {
    padding: var(--space-md);
}

.contact-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.contact-info i {
    color: var(--primary-color);
}

/* Privacy Accept Button (Flutter Integration) */
.privacy-accept-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: var(--space-sm);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
    z-index: 9999;
    display: none;
}

.privacy-accept-container.visible {
    display: block;
}

.privacy-accept-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.privacy-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26, 35, 126, 0.4);
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .device-mockup {
        max-width: 250px;
        margin-top: var(--space-md);
    }

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

@media screen and (max-width: 768px) {
    .hero-section {
        padding: var(--space-lg) 0;
        min-height: auto;
    }

    .hero-content {
        text-align: center;
    }

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

    .hero-content p {
        font-size: 1rem;
        margin: 0 auto var(--space-md);
    }

    .hero-buttons {
        justify-content: center;
    }

    .device-mockup {
        max-width: 200px;
    }

    .screenshots-section {
        max-height: 400px;
        padding: var(--space-md) 0;
    }

    .screenshot-carousel {
        height: 320px;
    }

    .screenshot-device {
        max-width: 160px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .content-container {
        margin: 0 var(--space-sm);
        padding: var(--space-sm);
    }

    .contact-card {
        padding: var(--space-md);
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .device-mockup {
        max-width: 180px;
    }

    .screenshot-device {
        max-width: 140px;
    }

    .feature-card {
        margin-bottom: var(--space-sm);
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .feature-card:hover {
        transform: none;
    }

    .carousel-nav:hover {
        transform: translateY(-50%);
    }
}

/* Print styles */
@media print {
    nav, footer, .cta-section, .screenshots-section {
        display: none;
    }

    .content-container {
        box-shadow: none;
    }
}
