/* ==========================================================================
   Site Theme Variables
   ========================================================================== */

:root {
    /* Colors */
    --primary-color: #ef4444;
    --secondary-color: #1e293b;
    --accent-color: #eab308;
    --text-color: #1e293b;
    --text-light: #64748b;
    --background-color: #ffffff;
    --background-alt: #f8fafc;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: var(--font-family);

    /* Spacing */
    --section-padding: 4rem 1.5rem;

    /* Borders & Shadows */
    --border-color: #e2e8f0;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}


/* ==========================================================================
   Base Styles
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    opacity: 0.9;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-top: 0;
    line-height: 1.2;
}

/* ==========================================================================
   Component Styles
   ========================================================================== */

/* Wings Network Footer */
.wings-network-footer { background: #0f172a; color: white; padding: 48px 24px 32px; }
.wings-network-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.wings-network-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.4em; color: #64748b; font-weight: 700; margin-bottom: 24px; }
.wings-network-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 28px; }
.wings-network-link { display: block; padding: 16px 12px; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; text-decoration: none; color: white; transition: all 0.15s; }
.wings-network-link:hover { border-color: #ef4444; background: rgba(239,68,68,0.08); transform: translateY(-1px); }
.wings-network-link[aria-current="page"] { border-color: #ef4444; background: rgba(239,68,68,0.12); }
.wings-network-icon { display: block; font-size: 24px; margin-bottom: 6px; }
.wings-network-name { display: block; font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.wings-network-desc { display: block; font-size: 11px; color: #94a3b8; }
.wings-network-tagline { font-size: 14px; font-style: italic; color: #64748b; margin-bottom: 12px; }
.wings-network-powered { font-size: 11px; color: #475569; }
.wings-network-powered a { color: #6366f1; text-decoration: none; }
.wings-network-powered a:hover { text-decoration: underline; }

/* Ad Slot */
.ad-slot { line-height: 1.5; }
.ad-slot a:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }

/* Wingspotr Map App */
.wsp-app { display: flex; flex-direction: column; height: 100vh; background: #0f172a; color: white; }
.wsp-topbar { display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: #1e293b; border-bottom: 1px solid rgba(255,255,255,0.08); flex-wrap: wrap; }
.wsp-brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 18px; }
.wsp-brand-emoji { font-size: 22px; }
.wsp-filters { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.wsp-filter { background: #334155; color: white; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 8px 12px; font-size: 13px; cursor: pointer; min-width: 140px; }
.wsp-filter:focus { outline: none; border-color: #ef4444; }
.wsp-clear { background: transparent; color: #94a3b8; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 8px 14px; font-size: 13px; cursor: pointer; }
.wsp-clear:hover { color: white; }
.wsp-submit-cta { background: #ef4444; color: white; padding: 8px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 13px; }
.wsp-submit-cta:hover { background: #dc2626; }
.wsp-layout { display: grid; grid-template-columns: 380px 1fr; flex: 1; overflow: hidden; }
@media (max-width: 768px) { .wsp-layout { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; } }
.wsp-list { background: #1e293b; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; border-right: 1px solid rgba(255,255,255,0.08); }
.wsp-card { background: #334155; padding: 14px 16px; border-radius: 10px; text-decoration: none; color: white; display: block; border: 1px solid transparent; transition: all 0.15s; }
.wsp-card:hover { border-color: #ef4444; transform: translateX(2px); }
.wsp-card.active { border-color: #ef4444; background: #ef4444; }
.wsp-card.hidden { display: none; }
.wsp-card-header { display: flex; justify-content: space-between; align-items: baseline; }
.wsp-card-name { font-weight: 700; font-size: 15px; }
.wsp-card-rating { background: #fbbf24; color: #78350f; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.wsp-card-meta { font-size: 12px; color: #94a3b8; margin-top: 4px; }
.wsp-card.active .wsp-card-meta { color: rgba(255,255,255,0.85); }
.wsp-card-review { font-size: 13px; color: #cbd5e1; margin-top: 6px; font-style: italic; line-height: 1.4; }
.wsp-card.active .wsp-card-review { color: rgba(255,255,255,0.9); }
.wsp-map { height: 100%; background: #0f172a; }

/* Submit a Wing Spot */
.wsp-submit { padding: 80px 20px; }
.wsp-submit-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 768px) { .wsp-submit-inner { grid-template-columns: 1fr; gap: 24px; } }
.wsp-submit-title { font-size: clamp(28px, 4vw, 44px); font-weight: 900; line-height: 1.1; margin: 0 0 16px; }
.wsp-submit-sub { font-size: 17px; opacity: 0.85; line-height: 1.5; }
.wsp-submit-form { background: white; color: #1e293b; padding: 28px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.wsp-submit-row { margin-bottom: 14px; }
.wsp-submit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 500px) { .wsp-submit-grid { grid-template-columns: 1fr; } }
.wsp-submit-row input, .wsp-submit-row textarea { width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; font-family: inherit; }
.wsp-submit-row input:focus, .wsp-submit-row textarea:focus { outline: none; border-color: #ef4444; }
.wsp-submit-btn { width: 100%; padding: 14px; background: #ef4444; color: white; border: none; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; }
.wsp-submit-btn:hover { background: #dc2626; }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
    .features.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .features.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-headline { font-size: 2rem; }
    .hero-subheadline { font-size: 1rem; }
    .features.cols-4,
    .features.cols-3,
    .features.cols-2 { grid-template-columns: 1fr; }
    .navbar-menu { display: none; }
    .navbar-menu.active { display: flex; flex-direction: column; }
    .about-container { flex-direction: column !important; }
    .about-image { width: 100% !important; }
}
