/* Flyxchain - Jurisdiction pages shared styles
   Mirrors the design system of index.html (tokens, nav, footer, sections)
   and adds components specific to jurisdiction profile pages. */

:root {
    --primary: #1E90FF;
    --primary-dark: #0066CC;
    --dark: #0A0A0A;
    --gray: #333333;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, #1E90FF 0%, #00BFFF 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
}

/* ---------- Navigation ---------- */
nav {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000; transition: all 0.3s ease; will-change: box-shadow;
}
nav.scrolled { box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1); }
.nav-container {
    max-width: 1400px; margin: 0 auto; padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { height: 45px; width: auto; transition: transform 0.3s ease; }
.logo:hover { transform: scale(1.05); }
.nav-links { display: flex; gap: 2.5rem; align-items: center; list-style: none; }
.nav-links a {
    text-decoration: none; color: var(--gray); font-weight: 500;
    font-size: 0.95rem; letter-spacing: 0.3px; transition: color 0.3s ease; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--gradient); transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.language-selector { display: flex; gap: 0.5rem; background: var(--light-gray); padding: 0.5rem; border-radius: 25px; }
.language-selector button {
    background: transparent; border: none; padding: 0.4rem 1rem; border-radius: 20px;
    cursor: pointer; font-weight: 500; font-size: 0.9rem; transition: all 0.3s ease; color: var(--gray);
}
.language-selector button.active { background: var(--gradient); color: var(--white); }
.language-selector button:hover:not(.active) { background: rgba(30, 144, 255, 0.1); color: var(--primary); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray); }

/* ---------- Buttons ---------- */
.btn {
    padding: 1rem 2.5rem; border: none; border-radius: 50px; font-weight: 600; font-size: 1rem;
    cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: inline-block; letter-spacing: 0.5px;
}
.btn-primary { background: var(--gradient); color: var(--white); box-shadow: 0 10px 30px rgba(30, 144, 255, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(30, 144, 255, 0.4); }
.btn-secondary { background: transparent; color: var(--gray); border: 2px solid var(--gray); }
.btn-secondary:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }

/* ---------- Sections ---------- */
section { padding: 5rem 2rem; position: relative; }
.section-container { max-width: 1100px; margin: 0 auto; }
.section-wide { max-width: 1400px; margin: 0 auto; }
.section-subtitle {
    font-size: 0.9rem; color: var(--primary); font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; margin-bottom: 1rem;
}
h1 {
    font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.1; color: var(--dark); margin-bottom: 1.2rem; font-weight: 700;
}
h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--dark); margin-bottom: 1.2rem; font-weight: 700; }
h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--dark); margin-bottom: 0.8rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { max-width: 1100px; margin: 0 auto; padding: 7rem 2rem 0; font-size: 0.85rem; color: #888; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; color: #bbb; }

/* ---------- Page hero ---------- */
.page-hero {
    padding: 2.5rem 2rem 3rem;
    background: linear-gradient(135deg, #FAFAFA 0%, #FFFFFF 100%);
    position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; top: -40%; right: -10%; width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(30, 144, 255, 0.08) 0%, transparent 70%); border-radius: 50%;
}
.page-hero .section-container { position: relative; z-index: 1; }
.hero-prefix {
    display: inline-block; background: var(--gradient); color: var(--white);
    font-weight: 700; letter-spacing: 1px; padding: 0.35rem 1rem; border-radius: 8px; font-size: 0.95rem; margin-bottom: 1rem;
}
.page-hero p.lead { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--gray); max-width: 760px; font-weight: 300; line-height: 1.8; }
.hero-actions { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- Facts grid ---------- */
.facts { background: var(--light-gray); }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.2rem; }
.fact-card {
    background: var(--white); border-radius: 14px; padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05); border-top: 3px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.fact-card:hover { transform: translateY(-6px); border-top-color: var(--primary); }
.fact-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: #999; font-weight: 600; margin-bottom: 0.4rem; }
.fact-value { font-size: 1.05rem; color: var(--dark); font-weight: 600; line-height: 1.4; }
.fact-value.prefix { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--primary); }

/* ---------- Axis blocks ---------- */
.axis { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: start; margin-bottom: 3rem; }
.axis:last-child { margin-bottom: 0; }
.axis-head { display: flex; flex-direction: column; gap: 0.6rem; }
.axis-icon {
    width: 56px; height: 56px; background: var(--light-gray); border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.axis h2 { margin-bottom: 0; font-size: 1.5rem; }
.axis-body p { font-size: 1.05rem; line-height: 1.85; color: var(--gray); }

/* ---------- Insight / disclaimer ---------- */
.insight {
    background: rgba(30, 144, 255, 0.06); border-left: 4px solid var(--primary);
    border-radius: 10px; padding: 1.5rem 1.8rem; margin-top: 1rem;
}
.insight p { font-size: 0.98rem; color: var(--gray); }
.disclaimer { font-size: 0.82rem; color: #999; max-width: 1100px; margin: 0 auto; padding: 0 2rem 1rem; font-style: italic; }

/* ---------- Help / CTA band ---------- */
.help { background: linear-gradient(135deg, var(--dark) 0%, #1a1a1a 100%); color: var(--white); text-align: center; }
.help h2 { color: var(--white); }
.help p { color: rgba(255, 255, 255, 0.8); max-width: 760px; margin: 0 auto 2rem; font-size: 1.08rem; }

/* ---------- Hub grid ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.8rem; margin-top: 1rem; }
.hub-card {
    display: block; text-decoration: none; background: var(--white); border-radius: 18px; padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07); transition: all 0.35s ease; position: relative; overflow: hidden;
    border: 1px solid #eee;
}
.hub-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient);
    transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.hub-card:hover { transform: translateY(-8px); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12); }
.hub-card:hover::before { transform: scaleX(1); }
.hub-badge {
    display: inline-block; background: var(--light-gray); color: var(--primary); font-weight: 700;
    font-family: 'Playfair Display', serif; padding: 0.25rem 0.8rem; border-radius: 8px; font-size: 1rem; margin-bottom: 1rem;
}
.hub-card h3 { color: var(--dark); margin-bottom: 0.6rem; font-size: 1.35rem; }
.hub-card p { color: var(--gray); font-size: 0.95rem; line-height: 1.65; margin-bottom: 1rem; }
.hub-card .hub-link { color: var(--primary); font-weight: 600; font-size: 0.9rem; }

/* ---------- Rules cards ---------- */
.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.rule-card { background: var(--white); border-radius: 14px; padding: 1.8rem; box-shadow: 0 8px 24px rgba(0,0,0,0.05); }
.rule-num { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--primary); font-weight: 700; margin-bottom: 0.5rem; }
.rule-card p { font-size: 0.95rem; color: var(--gray); }

/* ---------- Footer ---------- */
footer { background: var(--dark); color: var(--white); padding: 3rem 2rem 2rem; text-align: center; }
footer p { color: rgba(255, 255, 255, 0.6); margin-top: 1rem; font-size: 0.9rem; }
footer a { color: var(--primary); text-decoration: none; }

/* ---------- Fade-in ---------- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
    .nav-links {
        position: fixed; top: 72px; left: -100%; flex-direction: column; background: var(--white);
        width: 100%; padding: 2rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); transition: left 0.3s ease;
    }
    .nav-links.active { left: 0; }
    .mobile-menu-btn { display: block; }
    .axis { grid-template-columns: 1fr; gap: 1rem; }
    .axis-head { flex-direction: row; align-items: center; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
}
