/* For Impact ATL - Main Stylesheet */

/* ========== CSS Variables ========== */
:root {
    /* Brand Colors — punk palette */
    --color-primary: #2c209b;       /* Punk Blue (Deep Blue) */
    --color-primary-dark: #211878;   /* Punk Blue darker */
    --color-primary-light: #4a3ec0;  /* Punk Blue lighter */
    --color-secondary: #64748b;
    --color-accent: #f44c27;         /* Punk Orange (Fire Orange) */
    --color-accent-dark: #d93d1a;    /* Punk Orange darker */
    --color-teal: #84d6be;           /* Punk Turquoise (Cool Turquoise) */
    --color-teal-dark: #5cc4a4;      /* Punk Turquoise darker */
    --color-success: #22c55e;
    --color-error: #ef4444;
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ========== Reset & Base ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-weight: 600;
    line-height: 1.25;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Wrap in @layer base so Tailwind utility classes (e.g. text-punk-turquoise
   on blue buttons) can override the default link color. Without this,
   unlayered CSS always beats Tailwind v4's @layer utilities. */
@layer base {
    a {
        color: var(--color-primary);
        text-decoration: none;
    }

    a:hover {
        text-decoration: underline;
    }
}

.lead {
    font-size: 1.25rem;
    color: var(--color-text-muted);
}

/* ========== Header ========== */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo:hover {
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--color-text);
    font-weight: 500;
}

.nav-links a:not(.btn):hover {
    color: var(--color-primary);
    text-decoration: none;
}

/* Preserve button styling in nav */
.nav-links .btn:hover {
    color: var(--color-on-primary, white);
}

.nav-link-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
}

.nav-link-btn:hover {
    color: var(--color-primary);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--color-text);
}

.mobile-menu-btn .close-icon {
    display: none;
}

.mobile-menu-btn.active .menu-icon {
    display: none;
}

.mobile-menu-btn.active .close-icon {
    display: block;
}

.mobile-menu {
    display: none;
    background: var(--color-bg);
    padding: 1rem;
    border-top: 1px solid var(--color-border, #e5e7eb);
}

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

.mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-links li {
    margin-bottom: 0.5rem;
}

.mobile-nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text);
    font-weight: 500;
    border-radius: 0.375rem;
}

.mobile-nav-links a:hover {
    background: var(--color-primary);
    color: white;
    text-decoration: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .main-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* ========== Footer ========== */
.site-footer {
    background: var(--color-text);
    color: var(--color-bg);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

/* Override base <a> color inside the dark footer so Tailwind
   color utilities (text-white/70, hover:text-punk-orange, etc.)
   are not masked by the global a { color: --color-primary } rule.
   Unlayered CSS beats Tailwind v4's @layer utilities, so we need
   a more-specific unlayered selector here. */
footer[role="contentinfo"] a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}
footer[role="contentinfo"] a:hover {
    color: #f44c27; /* punk-orange */
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-secondary {
    background: var(--color-secondary);
    color: white;
}

.btn-outline {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== Forms ========== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ========== Alerts ========== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* ========== Directory Hero ========== */
.directory-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e40af 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.directory-hero h1 {
    margin-bottom: 1rem;
}

.directory-hero .lead {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== Filters ========== */
.directory-filters {
    background: var(--color-surface);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.filter-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    font-size: 1rem;
}

/* ========== Organization Grid ========== */
.directory-grid {
    padding: 3rem 0;
}

.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.org-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.org-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.org-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.org-card-image.placeholder {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e40af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    font-weight: 700;
}

.org-card-content {
    padding: 1.5rem;
}

.org-card-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.org-type {
    background: var(--color-bg);
    color: var(--color-text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
}

.org-neighborhood {
    color: var(--color-text-muted);
}

.org-card h3 {
    margin-bottom: 0.75rem;
}

.org-card h3 a {
    color: var(--color-text);
}

.org-card h3 a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.org-card-causes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.cause-tag {
    background: #eff6ff;
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

/* ========== Organization Detail ========== */
.org-hero {
    background: var(--color-surface);
    padding: 3rem 0;
    border-bottom: 1px solid var(--color-border);
}

.org-hero-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.org-logo {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.org-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.org-type-badge {
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.founding-partner-badge {
    background: var(--color-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.org-location {
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* ========== Interest Section ========== */
.interest-section {
    padding: 2rem 0;
    background: #eff6ff;
}

.interest-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}

.interest-prompt h3 {
    margin-bottom: 0.75rem;
}

.interest-prompt p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.interest-form {
    margin-top: 1rem;
}

.login-prompt {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.interest-status {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.interest-expressed {
    background: #dcfce7;
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.status-icon {
    font-size: 2rem;
    color: var(--color-success);
}

.status-text h3 {
    color: #166534;
    margin-bottom: 0.5rem;
}

.status-text p {
    color: #166534;
    margin-bottom: 0;
}

.status-note {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* ========== Organization About ========== */
.org-about {
    padding: 3rem 0;
}

.org-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.org-main h2 {
    margin-bottom: 1.5rem;
}

.org-mission {
    margin: 2rem 0;
}

.org-mission blockquote {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--color-text-muted);
    border-left: 4px solid var(--color-primary);
    padding-left: 1.5rem;
    margin: 0;
}

.org-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-section {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-section h4 {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cause-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

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

.contact-list li {
    margin-bottom: 0.5rem;
}

.zine-link {
    font-weight: 500;
}

/* ========== Opportunities ========== */
.org-opportunities {
    background: var(--color-bg);
    padding: 3rem 0;
}

.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.opportunity-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.opp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.opp-header h3 {
    margin: 0;
    font-size: 1.125rem;
}

.urgency-badge {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.urgency-badge.urgent {
    background: #fef2f2;
    color: #dc2626;
}

.urgency-badge.high {
    background: #fef3c7;
    color: #d97706;
}

.opp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.opp-skills {
    margin-top: 1rem;
    font-size: 0.875rem;
}

.skill-tag {
    display: inline-block;
    background: var(--color-bg);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    margin: 0.25rem 0.25rem 0.25rem 0;
}

/* ========== Pagination ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.page-info {
    color: var(--color-text-muted);
}

/* ========== Empty State ========== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state h2 {
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--color-text-muted);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .org-content-grid {
        grid-template-columns: 1fr;
    }

    .org-hero-content {
        flex-direction: column;
        text-align: center;
    }

    .org-meta {
        justify-content: center;
    }

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

    .filter-group {
        width: 100%;
    }

    .nav-links {
        gap: 1rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

/* ========== Homepage Hero ========== */
.hero {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.95;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-accent {
    background: var(--color-accent);
    color: white;
}

.btn-accent:hover {
    background: var(--color-accent-dark);
}

.btn-teal {
    background: var(--color-teal);
    color: white;
}

.btn-teal:hover {
    background: var(--color-teal-dark);
}

.btn-white {
    background: white;
    color: var(--color-primary-dark);
}

.btn-white:hover {
    background: #f1f5f9;
}

/* ========== Two Ways Section ========== */
.two-ways {
    padding: 5rem 0;
    background: var(--color-bg);
}

.two-ways h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--color-text);
}

.ways-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.way-card {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.way-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.way-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.way-card h3 {
    margin-bottom: 1rem;
    font-size: 1.375rem;
}

.way-card p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.way-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.way-link.purple {
    color: var(--color-primary);
}

.way-link.purple:hover {
    color: var(--color-primary-dark);
}

.way-link.teal {
    color: var(--color-teal);
}

.way-link.teal:hover {
    color: var(--color-teal-dark);
}

/* ========== How It Works ========== */
.how-it-works {
    padding: 5rem 0;
    background: var(--color-surface);
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--color-text-muted);
}

/* ========== Featured Organizations ========== */
.featured-orgs {
    padding: 5rem 0;
    background: var(--color-bg);
}

.featured-orgs h2 {
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

/* ========== CTA Section ========== */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

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

.cta-section p {
    opacity: 0.95;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

/* ========== Stats Section ========== */
.stats-section {
    padding: 3rem 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========== Homepage Responsive ========== */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        padding: 0 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

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

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

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

/* ========== Scroll-Reveal Animations ========== */
/* Scoped to html.js so content remains visible when JS is disabled */
html.js .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html.js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========== Navigation Link Underline Animation ========== */
.nav-link-underline {
    position: relative;
}

.nav-link-underline::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: width 0.25s ease, left 0.25s ease;
}

.nav-link-underline:hover::after,
.nav-link-underline:focus::after {
    width: 60%;
    left: 20%;
}

/* ========== Organization Detail: Brush Underlines ========== */
.brush-underline-orange {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'%3E%3Cpath d='M2 8c30-6 60-2 90 1s70 4 106-3' fill='none' stroke='%23f44c27' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% 12px;
    padding-bottom: 8px;
}
.brush-underline-blue {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'%3E%3Cpath d='M2 8c30-6 60-2 90 1s70 4 106-3' fill='none' stroke='%232c209b' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% 12px;
    padding-bottom: 8px;
}

/* ========== Organization Detail: Grunge Texture ========== */
.grunge-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* ========== Organization Detail: Service Cards ========== */
.service-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.2s;
}
.service-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}
.service-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}
.service-info-item strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.25rem;
}
.service-info-item p {
    font-size: 1rem;
    color: #1f2937;
    margin: 0;
}
.service-info-item .cost-free {
    color: #059669;
    font-weight: 600;
}

/* ========== Directory: Filter Pills Scroll ========== */
.filter-pills-scroll {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.filter-pills-scroll::-webkit-scrollbar {
    display: none;
}

/* ========== Directory: Service Org Cards ========== */
.service-org-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s;
}
.service-org-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ========== Directory: Hub Selector Hero Overrides ========== */
.hero-hub .hub-selector { margin-bottom: 0; }
.hero-hub .hub-selector-button {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    color: white;
}
.hero-hub .hub-selector-button:hover {
    border-color: #f44c27;
    color: #f44c27;
}
.hero-hub .hub-icon { color: #f44c27; }
.hero-hub .hub-info-banner {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
}
.hero-hub .hub-info-banner strong { color: white; }

/* ========== Gamification Form Inputs ========== */
/* Style Django auto-generated form widgets for gamification pages */
.gamification-form select,
.gamification-form input[type="text"],
.gamification-form input[type="number"],
.gamification-form input[type="date"],
.gamification-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.875rem;
    border: 2px solid #d1d5db;
    border-radius: 0.75rem;
    background: white;
    color: #1a1a2e;
    outline: none;
    transition: border-color 0.2s;
}

.gamification-form select:focus,
.gamification-form input[type="text"]:focus,
.gamification-form input[type="number"]:focus,
.gamification-form input[type="date"]:focus,
.gamification-form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(44, 32, 155, 0.1);
}

.gamification-form textarea {
    min-height: 100px;
    resize: vertical;
}

.gamification-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}
