/* TennisMatch Vision - Custom Styles */
/* Design System: Creative & Playful with Bulma CSS */
/* Visual Personality: Energetic, Generous spacing, Soft corners, Flowing animations, Friendly typography */

:root {
    --primary-color: #3273dc;
    --secondary-color: #ff6b35;
    --accent-color: #ffbe0b;
    --dark-color: #363636;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-color: #4a4a4a;
    --border-radius: 10px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Rounded', 'Comic Sans MS', cursive;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Navigation */
.navbar {
    background: var(--white) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-item {
    transition: var(--transition);
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
}

.navbar-item:hover {
    background-color: var(--light-bg) !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 107, 53, 0.2);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: slideInLeft 0.8s ease-out;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: slideInLeft 0.8s ease-out 0.2s backwards;
}

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

/* Device Mockup */
.device-mockup {
    max-width: 350px;
    margin: 0 auto;
    position: relative;
    animation: slideInRight 0.8s ease-out 0.4s backwards;
}

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

.device-frame {
    position: relative;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    padding: 15px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.device-screen {
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
}

.device-screen img {
    width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.button, .btn {
    border-radius: var(--border-radius) !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
    border: none !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 48px;
}

.button.is-primary {
    background: linear-gradient(135deg, var(--primary-color), #5a8dee) !important;
    color: var(--white) !important;
}

.button.is-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(50, 115, 220, 0.3);
}

.button.is-warning {
    background: var(--secondary-color) !important;
    color: var(--white) !important;
}

.button.is-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Screenshot Section */
.screenshot-section {
    padding: 60px 0 80px;
    background: var(--light-bg);
}

.screenshot-section .title {
    margin-bottom: 1rem;
}

.screenshot-section .subtitle {
    margin-bottom: 3rem;
}

.screenshot-carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.carousel-item img {
    max-height: 350px;
    max-width: 100%;
    height: auto;
    width: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: var(--transition);
}

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

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

.carousel-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

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

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--border-radius);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    background: none;
    border: none;
}

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

.features-section > .container > .title:first-of-type {
    margin-top: 0;
}

.feature-block {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.feature-block:nth-child(even) {
    flex-direction: row-reverse;
}

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

.feature-icon {
    font-size: 4rem;
    color: var(--primary-color);
    min-width: 100px;
    text-align: center;
}

.feature-content {
    flex: 1;
    text-align: left;
}

.feature-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Cards */
.card {
    border-radius: var(--border-radius) !important;
    border: none !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
    transition: var(--transition) !important;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

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

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.contact-form .field {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    text-align: left;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.contact-form input,
.contact-form textarea,
.contact-form .file {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(50, 115, 220, 0.1);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Privacy Accept Button (Flutter Integration) */
.privacy-accept-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: var(--white);
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(40, 167, 69, 0.4);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    text-align: center;
}

.privacy-accept-button:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 15px 50px rgba(40, 167, 69, 0.6);
}

.privacy-accept-button:active {
    transform: translateX(-50%) translateY(-1px);
}

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

footer h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

footer a:hover {
    color: var(--white);
    text-decoration: none;
}

footer .columns {
    margin-bottom: 2rem;
}

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

/* Privacy & Terms Content */
.content-page {
    padding: 60px 0;
    background: var(--light-bg);
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.content-container h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.content-container h2 {
    color: var(--dark-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-container p,
.content-container ul,
.content-container ol {
    text-align: left;
    margin-bottom: 1rem;
}

.content-container ul,
.content-container ol {
    padding-left: 2rem;
}

.content-container li {
    margin-bottom: 0.5rem;
}

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

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

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

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

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

    .feature-block {
        flex-direction: column !important;
        text-align: center;
    }

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

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

    .button {
        width: 100%;
    }

    .screenshot-section {
        padding: 40px 0 60px;
    }

    .screenshot-section .subtitle {
        margin-bottom: 2rem;
        font-size: 1rem;
    }

    .features-section {
        padding: 60px 0 40px;
    }

    .screenshot-carousel {
        height: 300px;
        margin-bottom: 0.5rem;
    }

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

    .carousel-controls {
        margin-top: 1.5rem;
        padding-top: 0.5rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

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

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

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

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

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

    .privacy-accept-button {
        padding: 14px 30px;
        font-size: 1rem;
    }
}

/* Loading states */
.loading {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

.loaded {
    filter: blur(0);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--primary-color);
    color: var(--white);
}
