/* Material Design Hockey Planner Website Styles */

:root {
    --primary-navy: #1a237e;
    --hockey-blue: #2196F3;
    --charcoal: #37474f;
    --silver: #eceff1;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --text-dark: #212121;
    --text-light: #757575;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-elevated: 0 8px 16px rgba(0,0,0,0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.6;
}

/* Navigation */
nav {
    background-color: var(--primary-navy);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .nav-wrapper {
    padding: 0 2rem;
}

nav .brand-logo {
    font-weight: 500;
    font-size: 1.5rem;
}

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

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--charcoal) 100%);
    color: var(--white);
    padding: 80px 2rem;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text .tagline {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 300;
    color: var(--silver);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-device {
    flex: 0 0 auto;
    max-width: 350px;
    position: relative;
}

.device-mockup {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.device-mockup::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 30px;
    z-index: -1;
}

.device-mockup img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-large {
    padding: 0 2.5rem;
    height: 54px;
    line-height: 54px;
    border-radius: 8px;
    text-transform: none;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-large:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--hockey-blue) !important;
}

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

/* Content Sections */
.content-section {
    padding: 80px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-navy);
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Screenshots Carousel */
.screenshots-section {
    background-color: var(--white);
    padding: 60px 2rem 80px;
    min-height: auto;
}

.carousel-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    height: 350px;
    margin-bottom: 2rem;
}

.carousel {
    height: 350px !important;
}

.carousel .carousel-item {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.carousel .carousel-item img {
    max-height: 320px;
    width: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-elevated);
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: blur(0);
}

.carousel .carousel-item img.loading {
    filter: blur(5px);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 0;
    padding-bottom: 1rem;
}

.carousel-nav .btn-floating {
    background-color: var(--hockey-blue);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.carousel-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--silver);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-indicators .indicator.active {
    background-color: var(--hockey-blue);
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.feature-icon {
    font-size: 3rem;
    color: var(--hockey-blue);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--primary-navy);
    text-align: left;
    width: 100%;
}

.feature-card p,
.feature-card ul {
    text-align: left;
    color: var(--text-light);
    line-height: 1.8;
    width: 100%;
}

.feature-card ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.feature-card ul li {
    margin-bottom: 0.5rem;
}

/* Stats Section */
.stats-section {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 60px 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 300;
    color: var(--hockey-blue);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--silver);
}

/* Footer */
footer {
    background-color: var(--charcoal);
    color: var(--silver);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section ul {
    text-align: left;
    line-height: 1.8;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--silver);
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--hockey-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-light);
}

/* Contact Form */
.contact-form {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
}

.contact-form .input-field input,
.contact-form .input-field textarea {
    border-bottom-color: var(--silver);
}

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

.contact-form .input-field label {
    color: var(--text-light);
}

.contact-form .input-field label.active {
    color: var(--hockey-blue) !important;
}

.file-field .btn {
    background-color: var(--hockey-blue);
}

.contact-form button[type="submit"] {
    width: 100%;
    margin-top: 1rem;
}

/* Privacy Page Specific */
.privacy-content {
    background-color: var(--white);
    border-radius: 10px;
    padding: 3rem;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.privacy-content h1 {
    color: var(--primary-navy);
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-align: center;
}

.privacy-content h2 {
    color: var(--charcoal);
    font-size: 1.8rem;
    font-weight: 400;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.privacy-content h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 400;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    text-align: left;
}

.privacy-content p,
.privacy-content ul {
    text-align: left;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    color: var(--text-dark);
}

.privacy-content ul {
    padding-left: 2rem;
}

.privacy-content a {
    color: var(--hockey-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-content a:hover {
    color: var(--primary-navy);
    text-decoration: underline;
}

/* Flutter Privacy Accept Button */
#privacy-accept-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 0 3rem;
    height: 56px;
    line-height: 56px;
    font-size: 1.2rem;
    border-radius: 28px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    background-color: var(--hockey-blue) !important;
    display: none;
    text-align: center;
}

#privacy-accept-button.visible {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

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

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
    z-index: 10001;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section {
        padding: 60px 1.5rem;
        min-height: auto;
    }

    .hero-content {
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-device {
        max-width: 280px;
    }

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

    .content-section {
        padding: 60px 1.5rem;
    }
}

@media (max-width: 600px) {
    nav .nav-wrapper {
        padding: 0 1rem;
    }

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

    .hero-text .tagline {
        font-size: 1.1rem;
    }

    .hero-device {
        max-width: 250px;
    }

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

    .cta-buttons {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .screenshots-section {
        padding: 40px 1.5rem 60px;
    }

    .carousel-container {
        height: 300px;
        margin-bottom: 1.5rem;
    }

    .carousel {
        height: 300px !important;
    }

    .carousel .carousel-item img {
        max-height: 270px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .privacy-content {
        padding: 2rem 1.5rem;
    }

    #privacy-accept-button {
        width: calc(100% - 40px);
        left: 20px;
        transform: none;
    }

    #privacy-accept-button.visible {
        transform: none;
    }
}

/* Accessibility */
.btn:focus,
a:focus {
    outline: 2px solid var(--hockey-blue);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav,
    .cta-buttons,
    #privacy-accept-button,
    footer {
        display: none;
    }

    .hero-section {
        background: none;
        color: var(--text-dark);
    }
}
