/* CourtCraft Ops - Custom Styles */
/* Design System: Creative & Playful with Bulma CSS */
/* Color Mood: Energetic | Spacing: Generous | Borders: Soft | Animation: Flowing */

:root {
    --primary-color: #ff6b35;
    --secondary-color: #f7931e;
    --accent-color: #00a8e8;
    --dark-bg: #2d3047;
    --light-bg: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-light: #6c757d;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    background: var(--light-bg);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation Styles */
.navbar {
    background: white !important;
    box-shadow: var(--shadow);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-item {
    font-weight: 600;
    color: var(--text-dark) !important;
    transition: var(--transition);
    border-radius: 8px;
    margin: 0 0.25rem;
}

.navbar-item:hover {
    color: var(--primary-color) !important;
    background: rgba(255, 107, 53, 0.1) !important;
    transform: translateY(-2px);
}

.navbar-burger {
    color: var(--primary-color);
    border-radius: 8px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
}

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

.hero .title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
}

.hero .subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Device Mockup */
.device-mockup {
    max-width: 350px;
    margin: 0 auto;
    position: relative;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.device-frame {
    position: relative;
    padding: 25px 15px;
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    border-radius: 35px;
    box-shadow: 0 0 0 8px #1a1a1a, 0 0 0 10px #2c2c2c;
}

.device-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #3a3a3a;
    border-radius: 3px;
}

.device-screen {
    width: 100%;
    border-radius: 25px;
    overflow: hidden;
    background: white;
}

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

/* Buttons */
.button {
    border-radius: 10px !important;
    font-weight: 700 !important;
    padding: 1.5rem 2.5rem !important;
    font-size: 1.1rem !important;
    transition: var(--transition) !important;
    border: none !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

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

.button.is-light {
    background: white !important;
    color: var(--primary-color) !important;
    border: 4px solid var(--primary-color) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 107, 53, 0.3) !important;
}

.button.is-light:hover {
    background: var(--light-bg) !important;
    border-color: var(--secondary-color) !important;
}

/* Section Spacing */
.section {
    padding: 5rem 1.5rem;
}

.section-alternate {
    background: white;
}

/* Feature Cards */
.card {
    border-radius: 12px !important;
    box-shadow: var(--shadow) !important;
    border: none !important;
    transition: var(--transition) !important;
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15) !important;
}

.card-content {
    text-align: left !important;
    padding: 2rem !important;
}

.card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.card .title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.card p {
    color: var(--text-light);
    line-height: 1.8;
    text-align: left;
}

.card p a {
    word-break: break-word;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
}

/* Screenshot Carousel - Space Optimized */
.screenshot-section {
    max-height: 450px;
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.carousel-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    height: 380px;
}

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

.carousel-slide.active {
    display: flex;
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.carousel-image-wrapper {
    max-width: 320px;
    margin: 0 auto;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-image-wrapper:hover {
    transform: scale(1.05);
}

.carousel-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

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

.carousel-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.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;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.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: 10px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contact Form */
.form-field {
    margin-bottom: 2rem;
}

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

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

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

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

/* FAQ Items */
.faq-item {
    margin-bottom: 2rem !important;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 4rem 1.5rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.footer .title {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

/* Privacy Acceptance Button (Flutter Integration) */
.privacy-accept-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
    transition: var(--transition);
    display: none;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.privacy-accept-btn.show {
    display: flex;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { bottom: -100px; opacity: 0; }
    to { bottom: 20px; opacity: 1; }
}

.privacy-accept-btn:hover {
    background: var(--secondary-color);
    transform: translateX(-50%) translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.6);
}

/* Privacy & Terms Content */
.content-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.content-page h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.content-page h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.content-page h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: left;
}

.content-page p {
    margin-bottom: 1.5rem;
    text-align: left;
    line-height: 1.8;
    color: var(--text-light);
}

.content-page ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    text-align: left;
}

.content-page ul li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
    line-height: 1.8;
}

.content-page a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

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

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

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

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

    .button {
        padding: 1.2rem 2rem !important;
        font-size: 1rem !important;
    }

    /* Make buttons full-width on mobile for better touch targets */
    .buttons {
        flex-direction: column !important;
        width: 100%;
    }

    .buttons .button {
        width: 100% !important;
        margin: 0.5rem 0 !important;
    }

    .section {
        padding: 3rem 1rem;
    }

    .screenshot-section {
        max-height: 350px;
        padding: 3rem 0;
    }

    .carousel-container {
        height: 300px;
    }

    .carousel-image-wrapper {
        max-width: 260px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .content-page {
        padding: 2rem 1rem;
    }

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

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

/* Loading & Progressive Enhancement */
img {
    transition: filter 0.3s ease;
}

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

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

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