/* Custom styles for Luckia Sports Lounge website */

/* Import Materialize CSS */
@import url('https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css');

/* Import Material Icons */
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Import AOS animation library */
@import url('https://cdnjs.cloudflare.com/ajax/libs/aos/2.3.4/aos.css');

/* Root variables - Sports bar color palette inspired by app screenshots */
:root {
    --primary-color: #1a237e;     /* Deep blue */
    --primary-light: #3f51b5;     /* Lighter blue */
    --primary-dark: #0d47a1;      /* Darker blue */
    --secondary-color: #ff5722;   /* Orange accent */
    --secondary-light: #ff8a65;   /* Light orange */
    --accent-color: #4caf50;      /* Green for success/loyalty */
    --background-color: #fafafa;  /* Light background */
    --surface-color: #ffffff;     /* White surfaces */
    --text-primary: #212121;      /* Dark text */
    --text-secondary: #757575;    /* Light text */
    --error-color: #f44336;       /* Error red */
    --warning-color: #ff9800;     /* Warning amber */
}

/* Global styles */
* {
    box-sizing: border-box;
}

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

/* Override Materialize primary color */
.btn, .btn-large, .btn-small {
    background-color: var(--primary-color);
}

.btn:hover, .btn-large:hover, .btn-small:hover {
    background-color: var(--primary-light);
}

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

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

/* Navigation */
nav {
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav .brand-logo {
    font-weight: 500;
    padding-left: 20px;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 30px;
    opacity: 0.9;
}

@media only screen and (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}

/* Feature cards */
.feature-card {
    background: var(--surface-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.feature-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Screenshots section */
.screenshots-section {
    background: var(--surface-color);
    padding: 60px 0 40px 0;
}

/* Carousel styles */
.carousel.carousel-slider {
    height: 600px !important;
    background: transparent !important;
}

.carousel.carousel-slider .carousel-item {
    width: 100% !important;
    opacity: 1 !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    height: 600px !important;
}

.screenshot-carousel {
    max-width: 280px;
    max-height: 420px;
    width: auto;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    object-fit: contain;
}

.carousel-item:hover .screenshot-carousel {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.carousel-caption {
    margin-top: 20px;
    text-align: center;
    color: var(--text-primary);
}

.carousel-caption h5 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.carousel-caption p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    max-width: 300px;
}

/* Carousel navigation */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.carousel-nav .btn-floating {
    background-color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.carousel-nav .btn-floating:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.carousel-indicators {
    display: flex;
    gap: 10px;
    align-items: center;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(26, 35, 126, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.indicator:hover {
    background-color: var(--primary-light);
    transform: scale(1.1);
}

/* Mobile carousel adjustments */
@media only screen and (max-width: 768px) {
    .screenshots-section {
        padding: 40px 0 30px 0;
    }
    
    .carousel.carousel-slider {
        height: 500px !important;
    }
    
    .carousel.carousel-slider .carousel-item {
        height: 500px !important;
        padding: 15px;
    }
    
    .screenshot-carousel {
        max-width: 220px;
        max-height: 350px;
    }
    
    .carousel-caption h5 {
        font-size: 1.1rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .carousel-nav {
        gap: 15px;
        margin-top: 20px;
    }
    
    .carousel-nav .btn-floating {
        transform: scale(0.9);
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media only screen and (max-width: 480px) {
    .carousel.carousel-slider {
        height: 450px !important;
    }
    
    .carousel.carousel-slider .carousel-item {
        height: 450px !important;
        padding: 10px;
    }
    
    .screenshot-carousel {
        max-width: 200px;
        max-height: 320px;
    }
}

/* Download section */
.download-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.download-buttons {
    margin-top: 30px;
}

.download-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    margin: 10px;
    padding: 12px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: white;
    color: var(--secondary-color);
}

/* Form styles */
.form-container {
    background: var(--surface-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 40px;
    margin: 40px 0;
}

.input-field input[type=text]:focus + label,
.input-field input[type=email]:focus + label,
.input-field textarea:focus + label {
    color: var(--primary-color);
}

.input-field input[type=text]:focus,
.input-field input[type=email]:focus,
.input-field textarea:focus {
    border-bottom: 1px solid var(--primary-color);
    box-shadow: 0 1px 0 0 var(--primary-color);
}

/* File upload styling */
.file-field .btn {
    background-color: var(--primary-color);
}

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

/* Privacy accept button (for mobile webview) */
.privacy-accept-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: none;
    line-height: 1.2;
    min-height: 50px;
}

.privacy-accept-btn:hover {
    background-color: #45a049;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.privacy-accept-btn.show {
    display: block !important;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 40px 0 20px 0;
    margin-top: 60px;
}

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

footer a:hover {
    color: white;
}

/* Responsive adjustments */
@media only screen and (max-width: 992px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }
}

@media only screen and (max-width: 600px) {
    .hero-section {
        padding: 40px 0;
        min-height: 50vh;
    }
    
    .screenshots-section {
        padding: 60px 0;
    }
    
    .download-section {
        padding: 40px 0;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    nav .brand-logo {
        padding-left: 15px;
        font-size: 1.8rem;
    }
}

/* Button text centering fix */
.btn, .btn-large, .btn-small, .download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
}

/* Privacy button specific centering when shown */
.privacy-accept-btn.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    transform: translateY(30px);
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success message styling */
.success-message {
    background-color: var(--accent-color);
    color: white;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    display: none;
}

.success-message.show {
    display: block;
    animation: slideDown 0.5s ease-out;
}

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

/* High contrast for accessibility */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
    }
    
    .feature-card {
        border: 2px solid var(--primary-color);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #121212;
        --surface-color: #1e1e1e;
        --text-primary: #ffffff;
        --text-secondary: #b3b3b3;
    }
    
    body {
        background-color: var(--background-color);
        color: var(--text-primary);
    }
}

/* Print styles */
@media print {
    .hero-section,
    .download-section,
    nav,
    footer,
    .privacy-accept-btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}