/* KickZone Match Planner - Custom Styles */
/* Design System: Material Design with Dark + Orange Theme */

:root {
    --primary-dark: #1a1a1a;
    --secondary-dark: #2d2d2d;
    --card-dark: #262626;
    --accent-orange: #FF7043;
    --accent-orange-light: #FF8A65;
    --accent-green: #4CAF50;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition-smooth: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Override Materialize defaults */
.btn, .btn-large, .btn-small {
    background-color: var(--accent-orange) !important;
    border-radius: var(--border-radius) !important;
    text-transform: none !important;
    font-weight: 500;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    transition: var(--transition-smooth);
    color: #ffffff !important;
}

.btn i.left, .btn-large i.left, .btn-small i.left {
    margin-right: 8px;
}

.btn:hover, .btn-large:hover, .btn-small:hover {
    background-color: var(--accent-orange-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 112, 67, 0.4);
}

.btn-outline {
    background-color: transparent !important;
    border: 2px solid var(--accent-orange) !important;
    color: var(--accent-orange) !important;
}

.btn-outline:hover {
    background-color: var(--accent-orange) !important;
    color: var(--text-primary) !important;
}

/* Navigation */
nav {
    background-color: var(--primary-dark) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav .brand-logo {
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 20px;
}

nav .brand-logo span {
    color: var(--accent-orange);
}

nav ul li a {
    color: var(--text-primary);
    transition: var(--transition-smooth);
    font-weight: 400;
}

nav ul li a:hover {
    color: var(--accent-orange);
    background-color: rgba(255, 112, 67, 0.1);
}

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

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

.sidenav li > a:hover {
    background-color: rgba(255, 112, 67, 0.1);
}

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

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

.hero-content {
    text-align: left;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--accent-orange);
    display: block;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 0 32px;
    height: 48px;
    line-height: 48px;
}

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

.device-mockup::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: linear-gradient(145deg, #3a3a3a, #1a1a1a);
    border-radius: 35px;
    z-index: -1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.device-mockup img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

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

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.section-title span {
    color: var(--accent-orange);
}

.feature-card {
    background-color: var(--card-dark);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    height: 100%;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 112, 67, 0.15);
    border-color: rgba(255, 112, 67, 0.2);
}

.feature-card .feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card .feature-icon i {
    font-size: 28px;
    color: white;
}

.feature-card h5 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    text-align: left;
    line-height: 1.7;
    margin: 0;
}

.feature-card ul {
    text-align: left;
    padding-left: 0;
    margin-top: 12px;
}

.feature-card ul li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    list-style: none;
}

.feature-card ul li::before {
    content: '•';
    color: var(--accent-orange);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Screenshots Section */
.screenshots-section {
    padding: 60px 0;
    background-color: var(--primary-dark);
    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: 20px;
    height: 100%;
}

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

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

.screenshot-device {
    position: relative;
    max-width: 220px;
}

.screenshot-device::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    background: linear-gradient(145deg, #3a3a3a, #222);
    border-radius: 30px;
    z-index: -1;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.screenshot-device img {
    width: 100%;
    border-radius: 18px;
    display: block;
    max-height: 350px;
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition-smooth);
    filter: blur(5px);
}

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

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--card-dark);
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.carousel-btn:hover {
    background-color: var(--accent-orange);
    color: white;
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

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

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #e64a19 100%);
    text-align: center;
}

.cta-section h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-section .btn {
    background-color: white !important;
    color: var(--accent-orange) !important;
    font-weight: 600;
}

.cta-section .btn:hover {
    background-color: var(--primary-dark) !important;
    color: white !important;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 20px;
}

footer p, footer a {
    color: var(--text-secondary);
}

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

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

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

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Page Content Styles */
.page-header {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.page-content {
    padding: 60px 0;
    background-color: var(--primary-dark);
}

.content-card {
    background-color: var(--card-dark);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.content-card h2, .content-card h3 {
    color: var(--accent-orange);
    margin-bottom: 16px;
}

.content-card h2 {
    font-size: 1.6rem;
}

.content-card h3 {
    font-size: 1.3rem;
}

.content-card p {
    color: var(--text-secondary);
    text-align: left;
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-card ul, .content-card ol {
    text-align: left;
    padding-left: 24px;
    margin-bottom: 16px;
}

.content-card li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.7;
}

.content-card a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

/* Form Styles */
.input-field input,
.input-field textarea {
    color: var(--text-primary) !important;
    border-bottom-color: var(--text-muted) !important;
}

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

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

.input-field label.active {
    color: var(--accent-orange) !important;
}

.input-field .prefix {
    color: var(--accent-orange) !important;
}

.file-field .btn {
    height: 36px;
    line-height: 36px;
}

.file-field .file-path-wrapper input {
    color: var(--text-primary);
    border-bottom-color: var(--text-muted);
}

/* Privacy Accept Button */
.privacy-accept-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--primary-dark) 0%, transparent 100%);
    padding: 30px 20px;
    z-index: 9998;
    display: none;
}

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

.privacy-accept-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    height: 56px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #e64a19 100%) !important;
    box-shadow: 0 4px 20px rgba(255, 112, 67, 0.5);
}

/* Toast/Notification Styles */
.toast {
    background-color: var(--card-dark) !important;
    color: var(--text-primary);
    border-radius: var(--border-radius) !important;
}

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

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

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

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

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

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

@media (max-width: 768px) {
    nav .brand-logo {
        font-size: 1.2rem;
        padding-left: 10px;
    }

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

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

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

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

    .screenshots-section {
        max-height: 450px;
    }

    .screenshot-carousel {
        height: 340px;
    }

    .cta-section h3 {
        font-size: 1.8rem;
    }

    .content-card {
        padding: 24px;
    }

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

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

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

    .feature-card {
        padding: 24px;
    }

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

    .carousel-btn {
        width: 36px;
        height: 36px;
    }
}

/* Animation utilities */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility classes */
.text-orange {
    color: var(--accent-orange) !important;
}

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

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

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

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
