/* Local Football Manager - Custom Styles */
/* Material Design with Natural/Football Theme */

:root {
    --primary-green: #4CAF50;
    --dark-green: #388E3C;
    --light-green: #81C784;
    --accent-orange: #FF9800;
    --text-dark: #212121;
    --text-light: #757575;
    --bg-light: #F5F5F5;
    --white: #FFFFFF;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

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

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

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

nav .brand-logo {
    font-weight: 600;
    font-size: 1.4rem;
}

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

nav ul a:hover {
    background-color: var(--dark-green);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: var(--white);
    padding: 80px 0 60px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 100px 100px;
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-content {
    padding-right: 40px;
}

.device-mockup {
    max-width: 300px;
    margin: 0 auto;
    position: relative;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

.device-mockup img {
    width: 100%;
    height: auto;
    border-radius: 25px;
    border: 8px solid var(--white);
}

/* Buttons */
.btn, .btn-large, .btn-flat {
    border-radius: 8px;
    text-transform: none;
    font-weight: 600;
    padding: 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-large {
    height: 54px;
    line-height: 54px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--accent-orange);
}

.btn-primary:hover {
    background-color: #F57C00;
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-green);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    box-shadow: var(--shadow-hover);
}

.download-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Cards */
.card {
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.card-content {
    text-align: left;
    padding: 24px;
}

.card-title {
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 12px;
}

.card .material-icons {
    font-size: 48px;
    color: var(--primary-green);
    margin-bottom: 16px;
}

/* Screenshot Carousel */
.screenshot-section {
    max-height: 450px;
    padding: 60px 0;
    background-color: var(--white);
}

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

.carousel {
    height: 350px;
}

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

.carousel .carousel-item img {
    max-height: 320px;
    width: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    cursor: pointer;
    transition: all 0.3s ease;
    filter: blur(0);
}

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

.carousel .carousel-item img:hover {
    transform: scale(1.02);
}

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

.lightbox.active {
    display: flex;
}

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

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--accent-orange);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 50px;
}

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

/* Footer */
footer.page-footer {
    background-color: var(--text-dark);
    padding-top: 40px;
}

footer .footer-copyright {
    background-color: rgba(0, 0, 0, 0.2);
}

footer h5 {
    font-weight: 600;
    margin-bottom: 20px;
}

footer ul li {
    text-align: left;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-orange);
}

/* Privacy/Terms Pages */
.content-page {
    background-color: var(--white);
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.content-container h1 {
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.content-container h2 {
    color: var(--dark-green);
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.content-container h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.content-container p {
    text-align: left;
    margin-bottom: 20px;
    line-height: 1.8;
}

.content-container ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.content-container ul li {
    text-align: left;
    margin-bottom: 10px;
}

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

.content-container a:hover {
    color: var(--dark-green);
}

/* Privacy Accept Button (Flutter Integration) */
.privacy-accept-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    padding: 16px 48px;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.privacy-accept-button:hover {
    background-color: var(--dark-green);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}

.privacy-accept-button.hidden {
    display: none;
}

/* Contact Form */
.contact-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.contact-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 40px;
}

.contact-info {
    padding-right: 40px;
}

.contact-info h5 {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 15px;
}

.contact-info p {
    text-align: left;
    margin-bottom: 15px;
}

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

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

.input-field input:focus,
.input-field textarea:focus {
    border-bottom: 2px solid var(--primary-green);
    box-shadow: 0 1px 0 0 var(--primary-green);
}

.file-field .btn {
    background-color: var(--primary-green);
}

.file-field .btn:hover {
    background-color: var(--dark-green);
}

/* Form Success Message */
.success-message {
    display: none;
    background-color: #C8E6C9;
    color: var(--dark-green);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
}

.success-message.show {
    display: block;
}

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

    .hero p {
        font-size: 1.1rem;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

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

    .contact-info {
        padding-right: 0;
        margin-bottom: 30px;
    }
}

@media only screen and (max-width: 600px) {
    .hero {
        padding: 60px 0 40px 0;
    }

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

    .hero p {
        font-size: 1rem;
    }

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

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

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

    .download-buttons .btn-large {
        width: 100%;
    }

    .screenshot-carousel {
        height: 300px;
    }

    .carousel {
        height: 300px;
    }

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

    .content-container {
        padding: 20px;
    }

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

    .content-container h2 {
        font-size: 1.5rem;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.pt-40 {
    padding-top: 40px;
}

.pb-40 {
    padding-bottom: 40px;
}
