/* RGV FPV Theme - Directly sampled from RGVFPV Opossum Emblem Logo */
:root {
    --bg-dark: #101726;        /* Deepest Navy Background */
    --card-bg: #1B263B;        /* Slate Navy Card Background */
    --border-color: #2D3D59;   /* Subtle Navy Border */
    --accent-orange: #E65F2B;  /* Sunset Orange Accent */
    --accent-gold: #EBB86E;    /* Sand / Warm Gold */
    --text-light: #F4EFE6;     /* Cream White Text */
    --text-muted: #A0B0CB;     /* Soft Blue-Grey Muted Text */
    --glow-orange: rgba(230, 95, 43, 0.25);
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header & Sticky Top Bar */
header {
    background-color: rgba(27, 38, 59, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent-orange);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 1.5rem;
}

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

.logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-brand img {
    height: 52px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.logo-brand img:hover {
    transform: scale(1.05);
}

.brand-title {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--text-light);
}

.brand-title span {
    color: var(--accent-orange);
}

.brand-sub {
    display: block;
    font-size: 0.75rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

nav {
    display: flex;
    gap: 1.2rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--accent-orange);
    background: rgba(230, 95, 43, 0.12);
    border: 1px solid var(--accent-orange);
}

/* Layout Container */
.container {
    max-width: 1100px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    flex: 1;
}

/* Hero Display */
.hero-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--accent-orange);
    border-radius: 16px;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.hero-img {
    max-width: 260px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 20px var(--glow-orange);
    flex-shrink: 0;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--accent-orange);
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(235, 184, 110, 0.15);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Cards & Grid */
.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-orange), transparent);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.8rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
    box-shadow: 0 8px 25px var(--glow-orange);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.card h3 {
    color: var(--accent-gold);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Buttons & Inputs */
.btn-primary {
    background: var(--accent-orange);
    color: var(--text-light);
    border: none;
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--glow-orange);
}

.btn-primary:hover {
    background: #f06935;
    transform: translateY(-2px);
}

.form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
    font-weight: 700;
}

input, textarea {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-dark);
    color: var(--text-light);
    font-size: 1rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 10px var(--glow-orange);
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.alert-success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.alert-error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

/* Footer Section with Bottom Logo */
footer {
    background: var(--card-bg);
    border-top: 2px solid var(--accent-orange);
    padding: 2.5rem 1.5rem 1.5rem;
    text-align: center;
    margin-top: auto;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    max-width: 180px;
    height: auto;
    opacity: 0.9;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-copy strong {
    color: var(--accent-gold);
}

@media (max-width: 768px) {
    .hero-card {
        flex-direction: column;
        text-align: center;
    }
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
}
