/* =================================================================== */
/* Wingman App Styling - Global Styles                                 */
/* =================================================================== */

/* --- Base & Typography --- */

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* --- Blazor-specific styles (keep these as they are) --- */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZgh0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC4yOTk2QzI5MC44NzcgOTMuNTEzI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repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* =================================================================== */
/* PWA & Mobile Enhancement Styles                                     */
/* =================================================================== */

/* --- PWA Display Optimizations --- */
@media (display-mode: standalone) {
    /* Styles when app is installed as PWA */
    body {
        -webkit-tap-highlight-color: transparent;
    }

    /* Disable text selection for specific UI elements */
    button, .btn, .clickable {
        -webkit-user-select: none;
        user-select: none;
    }

/* Define the .clickable class to indicate interactivity */
.clickable {
    cursor: pointer;
}
    
    /* Hide address bar space */
    html {
        height: 100vh;
        overflow: hidden;
    }
    
    body {
        height: 100vh;
        overflow: auto;
    }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    /* Touch-friendly sizing */
    button, .btn {
        min-height: 44px;
        min-width: 44px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    input, select, textarea {
        font-size: 16px; /* Prevent zoom on iOS */
        min-height: 44px;
    }
    
    /* Improve touch targets */
    a, .clickable {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    /* Better spacing for mobile */
    .container, .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Mobile-first navigation */
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
}

/* --- iOS Safari Specific --- */
@supports (-webkit-touch-callout: none) {
    /* iOS safe area support */
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    /* Fix iOS viewport height issue */
    .full-height {
        height: -webkit-fill-available;
    }
}

/* --- Loading Improvements for PWA --- */
.loading-progress {
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #0066cc;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #e0e0e0;
    stroke-dasharray: calc(3.141592653589793 * 40%), 100%;
}

.loading-progress-text {
    position: relative;
    text-align: center;
    font-weight: 600;
    color: #0066cc;
}

/* --- PWA Install Button (optional for future use) --- */
.pwa-install-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    display: none; /* Hidden by default, can be shown via JavaScript */
}

.pwa-install-button:hover {
    background: #0052a3;
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
    transform: translateY(-2px);
}

.pwa-install-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

/* --- Accessibility Improvements --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- High contrast mode support --- */
@media (prefers-contrast: high) {
    .loading-progress circle {
        stroke: CanvasText;
    }
    
    .loading-progress circle:last-child {
        stroke: Canvas;
    }
    
    .loading-progress-text {
        color: CanvasText;
    }
}

/* =================================================================== */
/* Common Page Content Styling - Extracted from Privacy page          */
/* Provides readable, light-themed content areas within dark layout    */
/* =================================================================== */

/* Main content section with light background for readability */
.page-content-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem 0;
}

/* Content container with card-like appearance */
.page-content-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Main page title styling */
.page-title {
    color: #0066cc;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

/* Introduction/hero section styling */
.page-intro {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #0066cc;
}

.page-intro p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #495057;
}

/* Container for page sections */
.page-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Individual content items/cards */
.page-item {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.page-item h2 {
    color: #0066cc;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.page-item p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #495057;
}

.page-item p:last-child {
    margin-bottom: 0;
}

.page-item strong {
    color: #212529;
    font-weight: 600;
}

/* Responsive design for common page content */
@media (max-width: 768px) {
    .page-content-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-item {
        padding: 1rem;
    }
    
    .page-item h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .page-content-section {
        padding: 1rem 0;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-intro {
        padding: 1rem;
    }
}

/* =================================================================== */
/* Hero Section & Logo Styling                                        */
/* =================================================================== */

/* Hero section container */
.hero-section {
    background: linear-gradient(135deg, #0066cc 0%, #4da6ff 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero content wrapper */
.hero-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Logo styling - constrain size to be reasonable */
.logo {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto 2rem auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Hero title */
.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hero subtitle */
.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Responsive hero section */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        min-height: 50vh;
    }
    
    .logo {
        max-width: 150px;
        max-height: 150px;
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .logo {
        max-width: 120px;
        max-height: 120px;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

.pricing {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 2rem;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.4);
    max-width: 800px;
    margin: 0 auto;
}

.pricing h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

.pricing li {
    margin-bottom: 0.75rem;
}


