/* GetCited Shared CSS - v5.0 */
/* Unified design system: Space Grotesk + JetBrains Mono */

/* ================================================================
   CSS VARIABLES
   ================================================================ */
:root {
    /* Brand Colors */
    --gc-orange: #F47B20;
    --gc-orange-dark: #d96a15;
    --gc-orange-light: rgba(244, 123, 32, 0.1);
    --gc-orange-glow: rgba(244, 123, 32, 0.15);
    --gc-cyan: #00b8d9;
    --gc-cyan-light: rgba(0, 184, 217, 0.1);
    --gc-green: #22c55e;
    --gc-green-light: rgba(34, 197, 94, 0.15);
    --gc-red: #ef4444;

    /* Light Theme */
    --gc-bg: #fafafa;
    --gc-surface: #ffffff;
    --gc-border: #e0e0e8;
    --gc-border-light: #eaeaef;

    /* Dark Theme */
    --gc-dark-bg: #0a0a0f;
    --gc-dark-surface: #12121a;
    --gc-dark-elevated: #1a1a24;
    --gc-dark-border: #2a2a3a;

    /* Text */
    --gc-text-primary: #1a1a2e;
    --gc-text-secondary: #555566;
    --gc-text-dim: #888899;
    --gc-text-light: #e8e8ed;
    --gc-text-light-secondary: #8888a0;

    /* Typography */
    --gc-font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --gc-font-mono: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
}

/* ================================================================
   BASE STYLES
   ================================================================ */
.gc-section {
    font-family: var(--gc-font-display);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

.gc-section * {
    box-sizing: border-box;
}

.gc-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.gc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--gc-font-mono);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.3px;
}

.gc-btn-primary {
    background: var(--gc-orange);
    color: #fff;
    border: 1px solid var(--gc-orange);
}

.gc-btn-primary:hover {
    background: var(--gc-orange-dark);
    border-color: var(--gc-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--gc-orange-glow);
    color: #fff;
}

.gc-btn-secondary {
    background: var(--gc-dark-elevated);
    color: var(--gc-text-light);
    border: 1px solid var(--gc-dark-border);
}

.gc-btn-secondary:hover {
    background: var(--gc-dark-surface);
    border-color: var(--gc-text-dim);
    color: #fff;
}

/* Light context button variant */
.gc-btn-light {
    background: var(--gc-surface);
    color: var(--gc-text-primary);
    border: 1px solid var(--gc-border);
}

.gc-btn-light:hover {
    background: var(--gc-bg);
    border-color: var(--gc-orange);
    color: var(--gc-orange);
}

/* ================================================================
   HEADER
   ================================================================ */
.gc-header {
    background: var(--gc-dark-bg);
    padding: 0;
    position: relative;
    z-index: 1002;
    border-bottom: 1px solid var(--gc-dark-border);
}

.gc-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gc-logo {
    font-family: var(--gc-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gc-text-light);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.gc-logo span {
    color: var(--gc-orange);
}

.gc-logo:hover {
    color: #fff;
}

.gc-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.gc-nav a {
    font-family: var(--gc-font-mono);
    color: var(--gc-text-light-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s ease;
    letter-spacing: 0.3px;
}

.gc-nav a:hover {
    color: #fff;
}

.gc-nav .gc-btn {
    padding: 8px 16px;
    font-size: 16px;
}

/* ================================================================
   FOOTER
   ================================================================ */
.gc-footer {
    background: var(--gc-dark-bg);
    padding: 0;
    border-top: 1px solid var(--gc-dark-border);
}

.gc-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.gc-footer-copy {
    font-family: var(--gc-font-mono);
    font-size: 16px;
    color: var(--gc-text-dim);
}

.gc-footer-copy a {
    color: var(--gc-orange);
    text-decoration: none;
    transition: color 0.2s ease;
}

.gc-footer-copy a:hover {
    color: #ff9544;
}

.gc-footer-links {
    display: flex;
    gap: 24px;
}

.gc-footer-links a {
    font-family: var(--gc-font-mono);
    color: var(--gc-text-light-secondary);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease;
}

.gc-footer-links a:hover {
    color: #fff;
}

/* ================================================================
   SECTION LABELS & TITLES (shared)
   ================================================================ */
.gc-section-label {
    display: inline-block;
    font-family: var(--gc-font-mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--gc-cyan);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.gc-section-title {
    font-family: var(--gc-font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--gc-text-primary);
    margin: 0 0 12px;
    text-align: center;
}

.gc-section-subtitle {
    font-family: var(--gc-font-mono);
    font-size: 1rem;
    color: var(--gc-text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ================================================================
   LEGACY SUPPORT (for any old markup still using these)
   ================================================================ */
.gc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gc-orange-light);
    color: var(--gc-orange);
    padding: 8px 16px;
    border-radius: 100px;
    font-family: var(--gc-font-mono);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gc-check { color: var(--gc-green); }
.gc-x { color: var(--gc-red); }

/* ================================================================
   MOBILE MENU
   ================================================================ */
.gc-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.gc-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gc-text-light);
    margin: 5px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.gc-menu-toggle:hover span {
    background: var(--gc-orange);
}

/* Hamburger animation to X */
.gc-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.gc-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.gc-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay menu */
.gc-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--gc-dark-bg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gc-mobile-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.gc-mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.gc-mobile-menu-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 80px 24px 40px;
    gap: 8px;
    position: relative;
}

.gc-mobile-menu a {
    font-family: var(--gc-font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gc-text-light-secondary);
    text-decoration: none;
    padding: 16px 24px;
    transition: all 0.2s ease;
    transform: translateY(20px);
    opacity: 0;
    letter-spacing: -0.5px;
}

.gc-mobile-menu.active a {
    transform: translateY(0);
    opacity: 1;
}

.gc-mobile-menu a:nth-child(1) { transition-delay: 0.1s; }
.gc-mobile-menu a:nth-child(2) { transition-delay: 0.15s; }
.gc-mobile-menu a:nth-child(3) { transition-delay: 0.2s; }
.gc-mobile-menu a:nth-child(4) { transition-delay: 0.25s; }
.gc-mobile-menu a:nth-child(5) { transition-delay: 0.3s; }
.gc-mobile-menu a:nth-child(6) { transition-delay: 0.35s; }

.gc-mobile-menu a:hover,
.gc-mobile-menu a:focus {
    color: #fff;
}

.gc-mobile-menu a.gc-mobile-cta {
    margin-top: 24px;
    font-family: var(--gc-font-mono);
    font-size: 1rem;
    background: var(--gc-dark-elevated);
    border: 1px solid var(--gc-dark-border);
    border-radius: 8px;
    color: var(--gc-text-light);
}

.gc-mobile-menu a.gc-mobile-cta:hover {
    border-color: var(--gc-orange);
    color: var(--gc-orange);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
    .gc-nav {
        display: none;
    }

    .gc-menu-toggle {
        display: block;
    }

    .gc-mobile-menu {
        display: block;
    }

    .gc-footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .gc-footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .gc-header-inner {
        padding: 12px 16px;
    }

    .gc-footer-inner {
        padding: 20px 16px;
    }

    .gc-btn {
        padding: 10px 20px;
        font-size: 16px;
    }

    .gc-mobile-menu a {
        font-size: 1.5rem;
        padding: 14px 20px;
    }
}
