/* LegionFinder - Premium Veterans Directory */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #0D1117;
    --bg-card: #161B22;
    --border-subtle: #30363D;
    --text-primary: #E6EDF3;
    --text-secondary: #8B949E;
    --gold-accent: #C9A84C;
    --gold-hover: #D4B85C;
    --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', Georgia, serif;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

h2 {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

a {
    color: var(--gold-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold-hover);
    text-decoration: underline;
}

/* Header */
header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-subtle);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-accent);
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    color: var(--gold-accent);
    border-bottom-color: var(--gold-accent);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.05) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.hero-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: block;
}

.hero-tagline {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--gold-accent);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero h1 .gold {
    color: var(--gold-accent);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Bar */
.search-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--gold-accent);
}

.btn {
    padding: 1rem 2rem;
    background: var(--gold-accent);
    color: var(--bg-dark);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
}

.btn:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--gold-accent);
    border: 2px solid var(--gold-accent);
}

.btn-secondary:hover {
    background: rgba(201, 168, 76, 0.1);
}

/* Quick Chips */
.quick-chips {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.chip {
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.chip:hover {
    border-color: var(--gold-accent);
    color: var(--gold-accent);
}

/* Stats Section */
.stats-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 4rem 2rem;
    margin: 3rem 0;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat {
    padding: 2rem;
}

.stat-number {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Section Label */
.section-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-accent);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* Main Content */
main {
    padding: 3rem 0;
}

section {
    margin-bottom: 4rem;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--gold-accent);
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}

.post-card {
    background: var(--bg-card);
    border-left: 4px solid var(--gold-accent);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.post-card:hover {
    border-left-color: var(--gold-hover);
    box-shadow: var(--shadow-card);
}

.post-card h3 {
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.post-card h3 a {
    color: var(--gold-accent);
}

.post-card h3 a:hover {
    color: var(--gold-hover);
}

/* Contact Info */
.contact-section {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-icon {
    font-size: 1.2rem;
    min-width: 20px;
}

.contact-label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 80px;
}

.contact-value {
    flex: 1;
    word-break: break-word;
}

.contact-value a {
    color: var(--gold-accent);
}

/* Organization Badge */
.organization-badge {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--gold-accent);
    color: var(--gold-accent);
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-top: 0.5rem;
}

.org-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--gold-accent);
    border-radius: 50%;
    margin-right: 0.5rem;
}

/* State/City Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.state-card, .city-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
}

.state-card:hover, .city-card:hover {
    border-color: var(--gold-accent);
    box-shadow: var(--shadow-card);
}

.state-card a, .city-card a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold-accent);
}

.post-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Breadcrumb */
.breadcrumb {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb li:not(:last-child)::after {
    content: ' / ';
    margin-left: 0.5rem;
}

.breadcrumb a {
    color: var(--gold-accent);
}

/* Featured Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.featured-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.featured-card:hover {
    border-color: var(--gold-accent);
    box-shadow: var(--shadow-card);
}

.featured-card h3 {
    color: var(--gold-accent);
    margin-bottom: 1rem;
}

.featured-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Tools/Features Section */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 2.5rem 2rem;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
}

.tool-card:hover {
    border-color: var(--gold-accent);
    box-shadow: var(--shadow-card);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tool-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.tool-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* FAQ Section */
.faq-item {
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem 0;
    color: var(--text-primary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--gold-accent);
}

.faq-arrow {
    color: var(--gold-accent);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 1rem 0;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Newsletter Section */
.newsletter-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 4px;
    margin: 3rem 0;
}

.newsletter-section h2 {
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 2rem auto;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--gold-accent);
}

.newsletter-privacy {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Footer */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: var(--gold-accent);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--gold-accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Stat Boxes */
.stat-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 1.5rem;
    text-align: center;
    border-radius: 4px;
}

.stat-box-number {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-accent);
    margin-bottom: 0.5rem;
}

.stat-box-label {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .search-container {
        flex-direction: column;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-chips {
        flex-direction: column;
    }

    .chip {
        width: 100%;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* US Map Section Styles */
.map-section {
    margin: 0;
    padding: 4rem 0 2rem;
    position: relative;
}

.map-section .section-heading {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.map-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 1rem;
    background: transparent;
    padding: 0;
    position: relative;
    overflow: visible;
}

.us-map {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* Floating tooltip for map hover */
.map-tooltip {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: linear-gradient(135deg, rgba(13,17,23,0.97), rgba(22,27,34,0.97));
    border: 1px solid rgba(201,168,76,0.4);
    border-radius: 10px;
    padding: 12px 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(201,168,76,0.08);
    backdrop-filter: blur(12px);
    min-width: 160px;
    text-align: center;
    transform: translateY(8px);
}
.map-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}
.map-tooltip .tt-name {
    color: #C9A84C;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.map-tooltip .tt-count {
    color: #e6edf3;
    font-size: 0.85rem;
    font-weight: 400;
}
.map-tooltip .tt-count strong {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}
.map-tooltip .tt-cta {
    color: rgba(201,168,76,0.6);
    font-size: 0.7rem;
    margin-top: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .map-container {
        padding: 0;
    }

    .map-section {
        padding: 2rem 0 1rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
}
