/**
 * W5OBM Main Theme Styles
 * File: css/w5obm-main.css
 * Central stylesheet for theme-based website architecture
 * Consolidates all common styles for theme compatibility
 */

/* Import Hero Logo Styles */
@import 'hero-logo-styles.css';

/* ===== CSS VARIABLES (THEME READY) ===== */
:root {
    /* Primary Brand Colors */
    --primary-blue: #031A54;
    --secondary-blue: #145EFF;
    --accent-gold: #FFD700;
    --accent-gold-dark: #FFC700;

    /* Status Colors */
    --success-green: #28a745;
    --warning-orange: #ffc107;
    --danger-red: #dc3545;
    --info-blue: #17a2b8;

    /* Text Colors */
    --text-primary: #2c3e50;
    --text-secondary: #5a6c7d;
    --text-muted: #8b9dc3;
    --text-light: #ffffff;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-light: #f4f6f9;
    --bg-dark: #2c3e50;

    /* Border & Shadow */
    --border-light: #e9ecef;
    --border-medium: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

    /* Layout */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
}

/* ===== THEME OVERRIDES (FOR FUTURE THEMES) ===== */
[data-theme="dark"] {
    --text-primary: #ffffff;
    --text-secondary: #b0b8c5;
    --text-muted: #6c757d;
    --bg-primary: #1a1d23;
    --bg-secondary: #2d3748;
    --bg-light: #374151;
}

[data-theme="high-contrast"] {
    --primary-blue: #000080;
    --secondary-blue: #0000ff;
    --text-primary: #000000;
    --bg-primary: #ffffff;
    --border-light: #000000;
}

/* ===== BASE RESETS ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    margin: 0;
    padding: 0;
}

/* ===== IMAGE GUIDELINES ===== */
.img-header-200,
.img-header-lg,
.img_header-200,
.img_header-lg {
    width: 200px !important;
    height: 200px !important;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px auto;
}


.img-card-175,
.img_card-175 {
    width: 175px !important;
    height: 175px !important;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px auto;
}


.img-card-150,
.img_card-150 {
    width: 150px !important;
    height: 150px !important;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px auto;
}


.img-icon-64,
.img_icon-64 {
    width: 64px !important;
    height: 64px !important;
    object-fit: contain;
}


/* ===== HERO SECTIONS ===== */
.hero-section,
.page-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 8rem 0 4rem;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.hero-section::before,
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/patterns/grid.png') repeat;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-callsign {
    font-size: 6rem;
    font-weight: 900;
    color: var(--accent-gold);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 0;
    line-height: 0.8;
    letter-spacing: -2px;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CARD COMPONENTS ===== */
.content-card,
.info-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.content-card:hover,
.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.content-card h3,
.info-card h3 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.content-card h3 i,
.info-card h3 i {
    margin-right: 0.75rem;
    color: var(--secondary-blue);
}

/* ===== STATISTICS & METRICS ===== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    padding: 4rem 0;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -15%;
    width: 80%;
    height: 200%;
    background: rgba(255, 255, 255, 0.02);
    transform: rotate(-45deg);
}

.stat-item {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent-gold);
    display: block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* ===== TABLES ===== */
.data-table {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)) !important;
    color: var(--text-light) !important;
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.table tbody td {
    padding: 0.875rem 1rem;
    border-color: var(--border-light);
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: rgba(20, 94, 255, 0.05);
}

.table tbody tr td a {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 600;
}

.table tbody tr td a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 12px 24px;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--text-light);
}

.btn-outline-primary {
    border: 2px solid var(--secondary-blue);
    color: var(--secondary-blue);
    background: transparent;
    border-radius: var(--border-radius-sm);
    padding: 10px 22px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--secondary-blue);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* ===== FORMS ===== */
.form-control {
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 0.2rem rgba(20, 94, 255, 0.25);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* ===== ALERTS ===== */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 4px solid var(--success-green);
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 4px solid var(--danger-red);
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border-left: 4px solid var(--warning-orange);
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border-left: 4px solid var(--info-blue);
}

/* ===== BADGES & LABELS ===== */
.license-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.license-extra {
    background: linear-gradient(45deg, var(--success-green), #20c997);
    color: var(--text-light);
}

.license-general {
    background: linear-gradient(45deg, var(--info-blue), #6610f2);
    color: var(--text-light);
}

.license-technician {
    background: linear-gradient(45deg, var(--warning-orange), #fd7e14);
    color: #212529;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {

    .hero-section,
    .page-hero {
        padding: 6rem 0 3rem;
    }

    .hero-callsign {
        font-size: 4rem;
    }

    .content-section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .content-card,
    .info-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-callsign {
        font-size: 3rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .content-card,
    .info-card {
        padding: 1.25rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-primary-custom {
    color: var(--primary-blue) !important;
}

.text-secondary-custom {
    color: var(--secondary-blue) !important;
}

.text-accent {
    color: var(--accent-gold) !important;
}

.bg-primary-custom {
    background-color: var(--primary-blue) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-blue) !important;
}

.bg-accent {
    background-color: var(--accent-gold) !important;
}

.shadow-custom-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-custom-md {
    box-shadow: var(--shadow-md) !important;
}

.shadow-custom-lg {
    box-shadow: var(--shadow-lg) !important;
}

.border-radius-custom {
    border-radius: var(--border-radius) !important;
}

.border-radius-sm-custom {
    border-radius: var(--border-radius-sm) !important;
}

.border-radius-lg-custom {
    border-radius: var(--border-radius-lg) !important;
}

/* ===== ANIMATION KEYFRAMES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* ===== FOOTER STYLES ===== */
.footer-spacing {
    padding-top: 10px;
}

footer {
    border-top: 2px solid var(--accent-gold);
}