/* ============================================
   Components - Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 99, 0, 0.4);
}

.btn-efb {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-hover));
    color: white;
    box-shadow: var(--shadow-secondary);
}

.btn-efb:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(92, 15, 217, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--color-primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}


/* ============================================
   Components - Cards
   ============================================ */

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px rgba(255, 99, 0, 0.1);
}

.stat-card .icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
}

.stat-card .icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-primary);
}

.stat-card .number {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.stat-card .label {
    color: var(--text-muted);
    font-size: 0.9rem;
}


/* ============================================
   Components - Feature Cards
   ============================================ */

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

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


/* ============================================
   Components - Flight Cards
   ============================================ */

.flight-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all var(--transition-base);
    cursor: pointer;
}

.flight-card:hover {
    border-color: var(--color-primary);
    transform: translateX(5px);
}

.flight-card.selected {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    box-shadow: 0 0 20px rgba(255, 99, 0, 0.2);
}

.flight-card.selected .flight-icon {
    background: var(--color-primary);
}

.flight-card.selected .flight-icon svg {
    fill: white;
}

.flight-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flight-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--color-primary);
}

.flight-info {
    flex: 1;
    min-width: 0;
}

.flight-number {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

.flight-route {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.flight-status {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.status-cruise {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-info);
}

.status-climb {
    background: rgba(34, 197, 94, 0.1);
    color: var(--color-success);
}

.status-descent {
    background: rgba(249, 115, 22, 0.1);
    color: var(--color-warning);
}


/* ============================================
   Components - Badges & Indicators
   ============================================ */

.hero-badge,
.efb-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.hero-badge {
    background: var(--color-primary-light);
    border: 1px solid rgba(255, 99, 0, 0.2);
    color: var(--color-primary);
}

.efb-badge {
    background: var(--color-secondary-light);
    border: 1px solid rgba(92, 15, 217, 0.2);
    color: #A78BFA;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--color-success);
}

.live-indicator .dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}


/* ============================================
   Components - EFB Device Mockup
   ============================================ */

.efb-device {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
}

.efb-screen {
    background: #0D0D12;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    min-height: 300px;
}

.efb-screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

.efb-screen-title {
    font-family: var(--font-mono);
    color: var(--color-primary);
    font-size: 0.9rem;
}

.efb-screen-status {
    font-size: 0.75rem;
    color: var(--color-success);
}

.efb-data-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.efb-data-row.no-border {
    border-bottom: none;
}

.efb-data-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.efb-data-value {
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.efb-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.efb-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.efb-feature .check {
    width: 24px;
    height: 24px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.efb-feature .check svg {
    width: 14px;
    height: 14px;
    stroke: var(--color-success);
}