/* Custom styles for Traffle Football Prediction App */

/* Tech theme color variables */
:root {
    --primary-color: #00e5ff;
    --secondary-color: #1a237e;
    --accent-color: #00b0ff;
    --dark-bg: #121212;
    --dark-surface: #1e1e1e;
    --text-light: #ffffff;
    --text-muted: #b0bec5;
    --success-color: #00e676;
    --warning-color: #ff6d00;
    --error-color: #ff1744;
}

/* Base styles */
body {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    min-height: 100vh;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

/* Material Design enhancements */
.card {
    background: var(--dark-surface) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 229, 255, 0.1) !important;
    border: 1px solid rgba(0, 229, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 24px 0;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 229, 255, 0.2) !important;
}

.card-content {
    padding: 32px !important;
    text-align: left;
}

.card-title {
    color: var(--primary-color) !important;
    font-weight: 500 !important;
    margin-bottom: 16px !important;
}

/* Navigation */
nav {
    background: rgba(30, 30, 30, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    padding: 0 24px;
}

nav .brand-logo {
    color: var(--primary-color) !important;
    font-weight: 600;
    font-size: 1.8rem;
}

nav ul a {
    color: var(--text-light) !important;
    font-weight: 400;
    transition: color 0.3s ease;
}

nav ul a:hover {
    color: var(--primary-color) !important;
}

/* Hero section */
.hero-section {
    padding: 80px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-content .subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.5;
}

.hero-image {
    text-align: center;
    padding: 24px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 229, 255, 0.3);
}

/* Buttons */
.btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    padding: 12px 32px !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: 48px !important;
}

.btn-large {
    padding: 16px 48px !important;
    font-size: 1.1rem !important;
    min-height: 56px !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
    color: var(--dark-bg) !important;
    box-shadow: 0 4px 16px rgba(0, 229, 255, 0.4) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color)) !important;
    box-shadow: 0 8px 32px rgba(0, 229, 255, 0.6) !important;
    transform: translateY(-2px);
}

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

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

/* Download buttons */
.download-buttons {
    margin: 32px 0;
    text-align: center;
}

.download-buttons .btn {
    margin: 8px 12px;
    min-width: 200px;
}

/* Features section */
.features-section {
    padding: 80px 0;
}

.feature-card {
    height: 100%;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    text-align: center;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 12px;
    text-align: left;
}

.feature-description {
    color: var(--text-muted);
    text-align: left;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.feature-list li {
    color: var(--text-muted);
    padding: 8px 0;
    text-align: left;
    position: relative;
    padding-left: 24px;
}

.feature-list li:before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Screenshots carousel */
.screenshots-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.3);
}

.screenshots-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 32px 0;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.screenshot-item {
    min-width: 300px;
    margin: 0 16px;
    text-align: center;
}

.screenshot-item img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 229, 255, 0.2);
    transition: transform 0.3s ease;
}

.screenshot-item img:hover {
    transform: scale(1.05);
}

.carousel-dots {
    text-align: center;
    margin: 24px 0;
}

.carousel-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

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

/* Form styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 24px;
}

.input-field {
    margin: 24px 0;
}

.input-field input[type="text"],
.input-field input[type="email"],
.input-field textarea {
    background: var(--dark-surface) !important;
    border: 1px solid rgba(0, 229, 255, 0.3) !important;
    border-radius: 8px !important;
    color: var(--text-light) !important;
    padding: 16px !important;
    font-size: 1rem !important;
    transition: border-color 0.3s ease !important;
}

.input-field input[type="text"]:focus,
.input-field input[type="email"]:focus,
.input-field textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.2) !important;
}

.input-field label {
    color: var(--text-muted) !important;
    font-size: 0.9rem !important;
}

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

.file-field .file-path {
    background: var(--dark-surface) !important;
    border: 1px solid rgba(0, 229, 255, 0.3) !important;
    border-radius: 8px !important;
    color: var(--text-light) !important;
}

/* Privacy button (critical for Flutter integration) */
.privacy-accept-button {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: linear-gradient(135deg, var(--success-color), #00c853) !important;
    color: var(--text-light) !important;
    border: none !important;
    border-radius: 28px !important;
    padding: 16px 32px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 32px rgba(0, 230, 118, 0.4) !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 200px;
    min-height: 56px;
}

.privacy-accept-button:hover {
    background: linear-gradient(135deg, #00c853, var(--success-color)) !important;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 12px 48px rgba(0, 230, 118, 0.6) !important;
}

.privacy-accept-button.show {
    display: inline-flex;
}

/* Footer */
footer {
    background: var(--dark-surface) !important;
    padding: 48px 0 24px;
    margin-top: 80px;
    border-top: 1px solid rgba(0, 229, 255, 0.2);
}

.footer-content {
    text-align: left;
}

.footer-content h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-content p,
.footer-content a {
    color: var(--text-muted);
    margin: 8px 0;
    transition: color 0.3s ease;
}

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

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

/* Responsive design */
@media only screen and (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .screenshot-item {
        min-width: 250px;
    }
    
    .download-buttons .btn {
        margin: 8px 4px;
        min-width: 180px;
    }
}

@media only screen and (max-width: 600px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .subtitle {
        font-size: 1.2rem;
    }
    
    .card-content {
        padding: 24px !important;
    }
    
    .download-buttons .btn {
        margin: 8px 0;
        min-width: 100%;
        max-width: 280px;
    }
    
    .screenshot-item {
        min-width: 200px;
    }
    
    nav .brand-logo {
        font-size: 1.5rem;
    }
    
    .features-section,
    .screenshots-section {
        padding: 60px 0;
    }
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Utility classes */
.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.mt-4 { margin-top: 2rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.py-4 { padding: 2rem 0 !important; }
.px-4 { padding: 0 2rem !important; }