/* ==========================================================================
   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; position: relative; min-height: 1.4em; }
.wings-footer-tagline { position: absolute; left: 0; right: 0; opacity: 0; transition: opacity 0.8s ease; }
.wings-footer-tagline.active { opacity: 1; }
.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; }

/* Navigation Bar */

.navbar { padding: 0 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.navbar-sticky { position: sticky; top: 0; z-index: 100; }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; height: 70px; }
.nav-logo img { height: 50px; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; transition: opacity 0.3s; }
.nav-links a:hover { opacity: 0.7; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: inherit; flex-direction: column; padding: 20px; }
    .nav-container.open .nav-links { display: flex; }
}


/* Text Block */

.text-block { display: flex; justify-content: center; }
.text-content { width: 100%; }
.width-narrow .text-content { max-width: 600px; }
.width-medium .text-content { max-width: 800px; }
.width-wide .text-content { max-width: 1000px; }
.width-full .text-content { max-width: 100%; }
.padding-none { padding: 0; }
.padding-small { padding: 24px 20px; }
.padding-medium { padding: 60px 20px; }
.padding-large { padding: 100px 20px; }
.text-block h2 { font-size: 2.5rem; margin-bottom: 24px; }
.text-body { line-height: 1.8; font-size: 1.1rem; }
.text-body p { margin-bottom: 16px; }


/* Feature Grid */

.feature-section { padding: 80px 20px; }
.feature-container { max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 16px; }
.section-subtitle { text-align: center; color: var(--text-light, #666); max-width: 600px; margin: 0 auto 48px; }
.feature-grid { display: grid; gap: 30px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.style-cards .feature-card { background: white; padding: 40px 24px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); text-align: center; transition: transform 0.3s; }
.style-cards .feature-card:hover { transform: translateY(-5px); }
.style-minimal .feature-card { text-align: center; padding: 20px; }
.feature-icon { font-size: 48px; margin-bottom: 20px; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.feature-card p { color: var(--text-light, #666); line-height: 1.6; }
@media (max-width: 768px) { .cols-3, .cols-4 { grid-template-columns: 1fr; } .cols-2 { grid-template-columns: 1fr; } }


/* 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; }
}


/* Detail: Blog Post Detail */
.blog-post { padding: 40px 24px 80px; }
.blog-post-inner { max-width: 760px; margin: 0 auto; }
.blog-post-hero { margin: 0 -24px 32px; }
.blog-post-hero img { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: 12px; }
.blog-post-header { margin-bottom: 40px; }
.blog-post-cat { font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: #ef4444; font-weight: 700; margin-bottom: 12px; }
.blog-post-title { font-size: clamp(32px, 5vw, 52px); font-weight: 900; line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; color: #1e293b; }
.blog-post-meta { font-size: 14px; color: #94a3b8; }
.blog-post-body { font-size: 17px; line-height: 1.8; color: #334155; }
.blog-post-body h2 { font-size: 26px; font-weight: 800; margin: 40px 0 16px; color: #1e293b; }
.blog-post-body h3 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; color: #1e293b; }
.blog-post-body p { margin: 0 0 20px; }
.blog-post-body ul, .blog-post-body ol { margin: 0 0 20px; padding-left: 28px; }
.blog-post-body li { margin-bottom: 6px; }
.blog-post-body blockquote { border-left: 4px solid #ef4444; padding: 12px 20px; margin: 24px 0; background: #fef2f2; font-style: italic; color: #475569; }
.blog-post-body img { max-width: 100%; border-radius: 8px; margin: 24px 0; }
.blog-post-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid #e2e8f0; }
.blog-post-back { color: #6366f1; text-decoration: none; font-weight: 600; font-size: 15px; }
.blog-post-back:hover { text-decoration: underline; }
.blog-post-empty { text-align: center; padding: 80px 20px; color: #94a3b8; }