/* ============================================================
   FletePar - Shared Styles
   Single source of truth for all public pages
   ============================================================ */

/* ============ CSS VARIABLES ============ */
:root {
    --primary: #0D1117;
    --surface: #161B22;
    --surface-light: #21262D;
    --accent: #10B981;
    --accent-dark: #059669;
    --accent-glow: rgba(16, 185, 129, 0.3);
    --blue: #3B82F6;
    --blue-dark: #2563EB;
    --orange: #F59E0B;
    --red: #EF4444;
    --red-dark: #DC2626;
    --purple: #8B5CF6;
    --cyan: #06B6D4;
    --pink: #EC4899;
    --text-primary: #F0F6FC;
    --text-secondary: #8B949E;
    --text-muted: #6E7681;
    --border: #30363D;
    --border-light: #484F58;
}

/* ============ RESET ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Push footer to bottom */
.main { flex: 1; }

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(13, 17, 23, 0.97);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.4em;
}

.logo img {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 0 10px var(--accent-glow));
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.1) rotate(-5deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95em;
    transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: var(--surface-light);
}

.nav-links a.active {
    color: var(--accent);
}

/* Mobile menu button (hamburger) */
.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============ HERO (subpages) ============ */
.hero {
    padding: 140px 32px 80px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--primary) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, var(--hero-glow, rgba(16, 185, 129, 0.15)) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--hero-color, var(--accent)), var(--hero-color-dark, var(--accent-dark)));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    box-shadow: 0 20px 40px var(--hero-glow, var(--accent-glow));
}

.hero-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.hero h1 {
    font-size: clamp(2em, 5vw, 3em);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.15em;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-meta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.meta-badge svg {
    width: 16px;
    height: 16px;
    fill: var(--accent);
}

/* ============ MAIN CONTENT ============ */
.main {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 32px 100px;
}

/* ============ ACCORDION SECTIONS ============ */
.section {
    margin-bottom: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
}

.section:hover {
    border-color: var(--border-light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.section-header {
    padding: 24px 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    transition: background 0.3s;
    user-select: none;
}

.section-header:hover {
    background: var(--surface-light);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-icon svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.section-icon.blue   { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.section-icon.green  { background: linear-gradient(135deg, #10B981, #059669); }
.section-icon.purple { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.section-icon.orange { background: linear-gradient(135deg, #F59E0B, #D97706); }
.section-icon.red    { background: linear-gradient(135deg, #EF4444, #DC2626); }
.section-icon.cyan   { background: linear-gradient(135deg, #06B6D4, #0891B2); }
.section-icon.pink   { background: linear-gradient(135deg, #EC4899, #DB2777); }

.section-text h2 {
    font-size: 1.15em;
    font-weight: 700;
    margin-bottom: 2px;
}

.section-text p {
    font-size: 0.85em;
    color: var(--text-secondary);
}

.section-toggle {
    width: 34px;
    height: 34px;
    background: var(--surface-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.section-toggle svg {
    width: 18px;
    height: 18px;
    fill: var(--text-secondary);
    transition: transform 0.3s;
}

.section.open .section-toggle {
    background: var(--accent);
}

.section.open .section-toggle svg {
    fill: white;
    transform: rotate(180deg);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.section.open .section-content {
    max-height: 5000px;
}

.section-body {
    padding: 0 28px 28px;
}

.section-body h3 {
    font-size: 1.05em;
    font-weight: 700;
    margin: 20px 0 10px;
    color: var(--text-primary);
}

.section-body p {
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.8;
}

.section-body ul, .section-body ol {
    margin: 14px 0 14px 24px;
    color: var(--text-secondary);
}

.section-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.section-body li strong {
    color: var(--text-primary);
}

/* ============ INFO BOXES ============ */
.info-box {
    padding: 20px 24px;
    margin: 20px 0;
    border-radius: 12px;
    border-left: 4px solid;
}

.info-box.blue   { background: rgba(59, 130, 246, 0.1);  border-color: var(--blue); }
.info-box.green  { background: rgba(16, 185, 129, 0.1);  border-color: var(--accent); }
.info-box.orange { background: rgba(245, 158, 11, 0.1);  border-color: var(--orange); }
.info-box.red    { background: rgba(239, 68, 68, 0.1);   border-color: var(--red); }
.info-box.purple { background: rgba(139, 92, 246, 0.1);  border-color: var(--purple); }

.info-box h4 {
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.info-box p { margin: 0; }

/* ============ CONTACT CARD ============ */
.contact-card {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 16px;
    padding: 28px 32px;
    margin: 24px 0;
    color: white;
}

.contact-card h3 {
    color: white !important;
    margin-top: 0 !important;
}

.contact-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-card li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
}

.contact-card li:last-child { border-bottom: none; }
.contact-card li strong { color: white; }

/* ============ FOOTER (multi-column) ============ */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 64px 32px 32px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo img {
    width: 36px;
    height: 36px;
}

.footer-logo span {
    font-weight: 700;
    font-size: 1.2em;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.7;
}

.footer-section h4 {
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.93em;
    padding: 6px 0;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85em;
}

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

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

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar-content { padding: 12px 20px; }

    .mobile-menu-btn { display: flex; }

    .nav-links {
        position: fixed;
        top: 66px;
        left: 0;
        right: 0;
        background: rgba(22, 27, 34, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 1.05em;
        border-radius: 12px;
    }

    .hero { padding: 120px 20px 60px; }
    .main { padding: 40px 20px 80px; }
    .section-header { padding: 20px 20px; }
    .section-body { padding: 0 20px 20px; }

    .footer { padding: 48px 20px 24px; }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .footer-brand { max-width: 100%; }
    .footer-logo { justify-content: center; }
    .footer-section a:hover { transform: none; }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8em; }
    .hero-icon { width: 64px; height: 64px; border-radius: 18px; }
    .hero-icon svg { width: 32px; height: 32px; }
    .section-icon { width: 38px; height: 38px; border-radius: 10px; }
    .section-icon svg { width: 18px; height: 18px; }
    .section-text h2 { font-size: 1em; }
}
