/* SwissCarInfo - Aviation Section Styles */

/* Hero Section */
.aviation-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #0c1f33 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}
.aviation-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L70 50 L50 45 L30 50 Z' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E") repeat;
    opacity: 0.5;
}
.aviation-hero .container { position: relative; z-index: 1; }
.aviation-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; color: #fff; }
.aviation-hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; }

/* Search Box */
.aviation-search-box {
    max-width: 600px;
    margin: 1.5rem auto 0;
}
.aviation-search-box .input-group {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-radius: 8px;
    overflow: hidden;
}
.aviation-search-box .form-control {
    border: none;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
}
.aviation-search-box .btn {
    background: #3b82f6;
    border: none;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    color: #fff;
}
.aviation-search-box .btn:hover { background: #2563eb; }

/* Stat Cards */
.aviation-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.aviation-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.aviation-stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e3a5f;
    line-height: 1;
}
.aviation-stat-card .stat-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.25rem;
}
.aviation-stat-card .stat-icon {
    font-size: 1.5rem;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

/* Category Cards */
.aviation-cat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.aviation-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: #3b82f6;
    color: inherit;
}
.aviation-cat-card .cat-icon {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 0.75rem;
}
.aviation-cat-card .cat-name { font-weight: 700; font-size: 1.05rem; }
.aviation-cat-card .cat-count { color: #64748b; font-size: 0.85rem; }

/* Search Results */
.aviation-result-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: all 0.15s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.aviation-result-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 12px rgba(59,130,246,0.12);
    color: inherit;
}
.aviation-result-card .reg-badge {
    display: inline-block;
    background: #1e3a5f;
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}
.aviation-result-card .ac-type { font-weight: 600; color: #1e293b; }
.aviation-result-card .ac-manufacturer { color: #64748b; font-size: 0.9rem; }
.aviation-result-card .ac-owner { color: #94a3b8; font-size: 0.85rem; }

/* Status Badges */
.badge-registered { background: #dcfce7; color: #166534; font-weight: 600; }
.badge-deregistered { background: #fee2e2; color: #991b1b; font-weight: 600; }

/* Detail Page */
.aviation-detail-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #0c1f33 100%);
    color: #fff;
    padding: 2rem 0;
}
.aviation-detail-header .registration {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}
.aviation-detail-header .ac-type-name {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
}

.aviation-detail-section {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    overflow: hidden;
}
.aviation-detail-section .section-header {
    background: #f8fafc;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 700;
    color: #1e3a5f;
    font-size: 0.95rem;
}
.aviation-detail-section .section-body { padding: 0; }
.aviation-detail-section table { margin-bottom: 0; }
.aviation-detail-section table td { padding: 0.6rem 1.25rem; }
.aviation-detail-section table td:first-child {
    width: 40%;
    color: #64748b;
    font-size: 0.9rem;
}
.aviation-detail-section table td:last-child { font-weight: 500; }

/* Blurred premium content */
.aviation-blurred {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}
.aviation-premium-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}
.aviation-premium-overlay .premium-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Manufacturer Page */
.aviation-mfr-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 2rem 0;
}
.aviation-mfr-header h1 { font-size: 1.75rem; font-weight: 800; color: #1e3a5f; }

/* Pagination */
.aviation-pagination .page-link {
    color: #1e3a5f;
    border-color: #e2e8f0;
}
.aviation-pagination .page-item.active .page-link {
    background: #1e3a5f;
    border-color: #1e3a5f;
}

/* Filter Bar */
.aviation-filters {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.aviation-filters .form-select {
    border-color: #cbd5e1;
    font-size: 0.9rem;
}

/* Top Manufacturers List */
.aviation-mfr-list .mfr-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.aviation-mfr-list .mfr-item:last-child { border-bottom: none; }
.aviation-mfr-list .mfr-name { font-weight: 500; }
.aviation-mfr-list .mfr-count {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 0.15rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Source Footer */
.aviation-source {
    color: #94a3b8;
    font-size: 0.8rem;
    text-align: center;
    padding: 1.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .aviation-hero h1 { font-size: 1.5rem; }
    .aviation-detail-header .registration { font-size: 2rem; }
    .aviation-stat-card .stat-value { font-size: 1.4rem; }
    .aviation-detail-section table td:first-child { width: 45%; }
}
