/* ============================================
   539th TLAW - Shared Stylesheet
   COLOR SCHEME - Edit these to change site colors
   Based on 539th TLAW patch
   ============================================ */
:root {
    --primary-blue: #2b5a8a;        /* Shield blue */
    --primary-blue-dark: #1e3d5c;   /* Darker blue for hover states */
    --primary-blue-darker: #162d45; /* Darkest blue for backgrounds */
    --accent-gold: #c9a227;         /* Gold trim */
    --accent-gold-light: #d4b84a;   /* Lighter gold for hover */
    --accent-red: #b83232;          /* Banner red */
    --accent-red-dark: #8a2424;     /* Darker red for hover */
    --bg-dark: #1a1a1a;             /* Main background */
    --bg-darker: #0d0d0d;           /* Header/footer background */
    --bg-card: #2a2a2a;             /* Card backgrounds */
    --text-light: #e0e0e0;          /* Main text */
    --text-muted: #888;             /* Muted text */
    --text-subtle: #c0c0c0;         /* Subtle text */
}

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

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* ============================================
   HEADER STYLES
   ============================================ */
.header {
    background-color: var(--bg-darker);
    padding: 20px 0;
    border-bottom: 3px solid var(--accent-gold);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.logo-section a {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
}

.header-content nav {
    flex-shrink: 0;
}

.header-content .apply-btn {
    flex-shrink: 0;
}

.logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.title-section h1 {
    font-size: 28px;
    color: var(--accent-gold);
    margin-bottom: 5px;
}

.title-section h2 {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: normal;
}

nav {
    display: flex;
    gap: 30px;
    position: relative;
    z-index: 100;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
    z-index: 101;
    cursor: pointer;
    pointer-events: auto !important;
    display: inline-block;
    padding: 10px 5px;
}

nav a:hover,
nav a.active {
    color: var(--accent-gold);
}

.apply-btn {
    background-color: var(--accent-red);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s;
    position: relative;
    z-index: 101;
}

.apply-btn:hover {
    background-color: var(--accent-red-dark);
}

/* ============================================
   HERO STYLES
   ============================================ */
.hero {
    background: linear-gradient(rgba(22, 45, 69, 0.7), rgba(22, 45, 69, 0.7)), url('539th_formation.png');
    background-color: var(--primary-blue-darker);
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
    color: #fff;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.discord-btn {
    background-color: #5865F2;
    color: white;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.discord-btn:hover {
    background-color: #4752C4;
}

.secondary-btn {
    background-color: var(--accent-red);
    color: white;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s;
}

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

/* ============================================
   PAGE HEADER (for non-home pages)
   ============================================ */
.page-header {
    background: linear-gradient(rgba(22, 45, 69, 0.9), rgba(22, 45, 69, 0.9));
    background-color: var(--primary-blue-darker);
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    color: #fff;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    color: var(--text-subtle);
}

/* ============================================
   CONTENT SECTION
   ============================================ */
.content-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.intro {
    text-align: center;
    margin-bottom: 60px;
}

.intro h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.intro p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-subtle);
    max-width: 900px;
    margin: 0 auto;
}

.motto {
    color: var(--accent-red);
    font-weight: bold;
    font-style: italic;
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.stat-card {
    background-color: var(--bg-card);
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    border: 2px solid #333;
    transition: transform 0.3s, border-color 0.3s;
}

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

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    color: var(--text-muted);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    margin: 80px 0;
}

.features-section h2,
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--accent-gold);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--primary-blue);
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--accent-gold);
}

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

/* ============================================
   SQUADRONS SECTION
   ============================================ */
.squadrons-section {
    margin: 80px 0;
}

.squadrons-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--accent-gold);
}

.squadron-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.squadron-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #333;
    transition: transform 0.3s, border-color 0.3s;
}

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

.squadron-header {
    background-color: var(--bg-dark);
    padding: 30px;
    text-align: center;
}

.squadron-patch {
    width: 200px;
    height: 200px;
    background-color: #333;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    object-fit: contain;
}

img.squadron-patch {
    background-color: transparent;
}

.squadron-name {
    font-size: 28px;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.squadron-aircraft {
    font-size: 18px;
    color: var(--text-muted);
}

.squadron-body {
    padding: 30px;
}

.squadron-body p {
    color: var(--text-subtle);
    line-height: 1.8;
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

/* ============================================
   TESTIMONIAL
   ============================================ */
.testimonial {
    background-color: var(--bg-card);
    padding: 40px;
    margin: 60px 0;
    border-left: 5px solid var(--accent-red);
    border-radius: 5px;
}

.testimonial-text {
    font-size: 20px;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
}

.testimonial-author {
    font-size: 16px;
    color: var(--text-muted);
    text-align: right;
}

/* ============================================
   DOCUMENTATION / FAQ STYLES
   ============================================ */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.doc-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #333;
    transition: transform 0.3s, border-color 0.3s;
}

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

.doc-card h3 {
    font-size: 22px;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.doc-card p {
    color: var(--text-subtle);
    line-height: 1.6;
    margin-bottom: 20px;
}

.doc-card a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
}

.doc-card a:hover {
    color: var(--accent-gold);
}

.faq-item {
    background-color: var(--bg-card);
    padding: 25px 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-blue);
}

.faq-item h3 {
    font-size: 20px;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.faq-item p {
    color: var(--text-subtle);
    line-height: 1.7;
}

/* ============================================
   MEDIA GALLERY
   ============================================ */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.media-item {
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #333;
    transition: transform 0.3s, border-color 0.3s;
}

.media-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.media-placeholder {
    width: 100%;
    height: 200px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.media-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.media-item p {
    padding: 15px;
    color: var(--text-subtle);
    text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background-color: var(--bg-darker);
    padding: 40px 20px;
    margin-top: 80px;
    border-top: 3px solid var(--accent-gold);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-content a {
    color: var(--accent-gold);
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero h1,
    .page-header h1 {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .stats-grid,
    .features-grid,
    .squadron-grid,
    .doc-grid,
    .media-grid {
        grid-template-columns: 1fr;
    }
}
