/* MacroPilot - Cockpit Theme Styles */
/* Dark, professional, airline aesthetic */

:root {
    --bg-dark: #1a1a2e;
    --bg-medium: #16213e;
    --bg-light: #0f3460;
    --accent-primary: #e94560;
    --accent-secondary: #00d9ff;
    --accent-gold: #ffd700;
    --accent-green: #00ff88;
    --accent-red: #ff4757;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #6c6c6c;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

.small { font-size: 0.85rem; color: var(--text-secondary); }
.subtitle { color: var(--text-secondary); margin-bottom: 2rem; }

/* Layout */
.cabin {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 60px);
}

.hidden { display: none !important; }

/* Welcome Screen */
.welcome-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
}

.airline-logo {
    margin-bottom: 2rem;
}

.logo-icon {
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
}

.logo-text {
    font-size: 3rem;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Hostess Message */
.hostess-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 2rem 0;
    max-width: 600px;
}

.hostess-avatar {
    font-size: 3rem;
    flex-shrink: 0;
}

.speech-bubble {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 1rem;
    border-top-left-radius: 0;
    text-align: left;
    position: relative;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 10px;
    border: 10px solid transparent;
    border-right-color: var(--bg-light);
    border-left: 0;
}

/* Buttons */
.flight-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem 0;
}

.btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-icon { font-size: 2rem; }
.btn-text { text-align: left; }
.btn-text small { 
    display: block; 
    font-size: 0.75rem; 
    opacity: 0.7; 
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #c73e54);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
}

.btn-secondary {
    background: var(--bg-light);
    color: white;
    border: 1px solid var(--accent-secondary);
}

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

.btn-tertiary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--text-muted);
}

.btn-tertiary:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-back {
    background: transparent;
    color: var(--text-secondary);
    margin-top: 2rem;
}

.btn-back:hover { color: var(--text-primary); }

.btn-launch {
    background: linear-gradient(135deg, var(--accent-green), #00b368);
    color: var(--bg-dark);
    font-size: 1.2rem;
    padding: 1.5rem 3rem;
}

.btn-launch:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.3);
}

/* Safety Card */
.safety-card {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--accent-gold);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    max-width: 600px;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.safety-card p { margin-bottom: 0.5rem; }

.legal-link {
    margin-top: 1rem;
}

.legal-link a {
    color: var(--accent-secondary);
    text-decoration: none;
}

.legal-link a:hover { text-decoration: underline; }

/* Seat Selection */
.seat-selection {
    text-align: center;
    padding: 2rem 0;
}

.seat-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.seat-card {
    background: var(--bg-light);
    border-radius: 1rem;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.seat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-secondary);
}

.seat-card.featured {
    border-color: var(--accent-gold);
}

.seat-class {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.seat-card h3 {
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

.seat-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 1rem;
}

.seat-card li {
    padding: 0.25rem 0;
    color: var(--text-secondary);
}

.seat-card li::before {
    content: '✓ ';
    color: var(--accent-green);
}

.difficulty {
    color: var(--accent-gold);
    font-size: 0.9rem;
}

.recommended {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--accent-gold);
    color: var(--bg-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Pre-flight Briefing */
.preflight {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.captain-announcement {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.captain-avatar { font-size: 4rem; }

.announcement-text h2 {
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

.conditions-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.condition {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
}

.condition .label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.condition .value {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: var(--accent-green);
}

.mission-objective {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
    border-left: 4px solid var(--accent-primary);
}

.mission-objective h3 {
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.buckle-up {
    text-align: center;
    margin-top: 3rem;
}

.buckle-text {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-style: italic;
}

/* Footer */
.cabin-footer, .legal-footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--bg-light);
}

.cabin-footer a, .legal-footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.cabin-footer a:hover, .legal-footer a:hover {
    color: var(--accent-secondary);
}

/* Legal Page Styles */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--bg-light);
}

.back-link {
    display: inline-block;
    color: var(--accent-secondary);
    text-decoration: none;
    margin-bottom: 1rem;
}

.back-link:hover { text-decoration: underline; }

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
}

.effective {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.legal-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.legal-card.warning {
    border-left: 4px solid var(--accent-red);
}

.legal-card.finale {
    border: 2px solid var(--accent-gold);
    text-align: center;
}

.legal-card h3 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.legal-card ul, .legal-card ol {
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.legal-card li {
    margin-bottom: 0.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.data-table th, .data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--bg-medium);
}

.data-table th {
    color: var(--accent-secondary);
    font-weight: 600;
}

/* Support/Ko-fi Button */
.support-line {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #888;
}

.kofi-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff5e5b 0%, #ff9966 100%);
    color: white !important;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 94, 91, 0.3);
}

.kofi-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 94, 91, 0.5);
}

/* Version Footer - REMOVED v1.7 per Andrew's feedback */
/* Footer completely removed - was cluttering UI and blocking buttons */

/* Body padding reset - no footer needed */
body {
    padding-bottom: 0;
}

/* Welcome Back Modal */
.welcome-back-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.welcome-back-modal {
    background: linear-gradient(135deg, var(--bg-medium) 0%, var(--bg-dark) 100%);
    border: 1px solid var(--accent-secondary);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 450px;
    width: 100%;
    text-align: center;
    animation: modalSlideIn 0.4s ease-out;
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.2);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.welcome-back-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.welcome-back-header .welcome-icon {
    font-size: 2.5rem;
}

.welcome-back-header h2 {
    font-size: 1.5rem;
    margin: 0;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-message {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.welcome-subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.session-goals {
    background: var(--bg-light);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.session-goals h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--accent-gold);
}

.session-goals ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.session-goals li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.session-goals .goal-icon {
    font-size: 1rem;
}

.streak-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(255, 193, 7, 0.2));
    border: 1px solid var(--accent-gold);
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
}

.streak-fire {
    font-size: 1.5rem;
    animation: fireFlicker 0.5s ease-in-out infinite alternate;
}

@keyframes fireFlicker {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.streak-count {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.streak-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.welcome-dismiss {
    width: 100%;
    padding: 1rem !important;
    font-size: 1.1rem !important;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-text { font-size: 2rem; }
    .flight-options { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .conditions-panel { grid-template-columns: repeat(2, 1fr); }
    .hostess-message { flex-direction: column; text-align: center; }
    .speech-bubble { border-radius: 1rem; }
    .speech-bubble::before { display: none; }
    .captain-announcement { flex-direction: column; text-align: center; }
    .seat-options { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .cabin { padding: 1rem; }
    h1 { font-size: 1.8rem; }
    .conditions-panel { grid-template-columns: 1fr; }
}
