/*
Nashville Area Chamber of Commerce - Official Brand Styles
Based on 2025 Brand Guidelines
*/

@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@200;400;600;700;900&family=Source+Sans+3:wght@300;400;600;700;900&display=swap');

/* Official Brand Colors (Page 6 of Brand Guide) */
:root {
    /* Primary Palette */
    --navy: #222936;              /* Dark backgrounds, headers */
    --chamber-blue-dark: #004f87; /* Primary blue - buttons, key elements */
    --chamber-blue: #007ed9;      /* Bright blue - interactive states */
    --white: #ffffff;
    --gray: #a6a7a7;              /* Secondary text, borders */

    /* Secondary Palette */
    --red: #c02b2a;               /* At-risk, alerts */
    --red-light: #de372d;
    --teal: #007744a;             /* Success, growth */
    --teal-light: #00905b;
    --green: #007744a;
    --orange: #f75000;
    --orange-light: #fb6100;
    --yellow: #eeab18;
    --yellow-bright: #ffc500;
    --purple: #45348d;
    --purple-light: #5f3faa;

    /* Accent Palette */
    --gray-light: #e5e5e3;
    --gray-medium: #cfcfce;
    --gray-dark: #dddddd;

    /* Semantic Colors */
    --success: var(--teal);
    --warning: var(--orange);
    --danger: var(--red);
    --info: var(--chamber-blue);
}

/* Typography (Page 7 of Brand Guide) */
body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--navy);
    background: var(--gray-light);
}

/* Headlines - Avenir Black (use Crimson Pro as fallback) */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Pro', Georgia, serif;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.2;
}

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

/* Data & Analytics - Source Sans Variable */
.stat-number, .metric, [data-type="number"] {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 900;
}

/* Body Copy - Avenir Medium / Source Sans */
p, span, div {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

/* Professional Buttons (No Emojis) */
.btn-primary {
    background: var(--chamber-blue-dark);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Source Sans 3', sans-serif;
}

.btn-primary:hover {
    background: var(--chamber-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 79, 135, 0.2);
}

.btn-secondary {
    background: white;
    color: var(--chamber-blue-dark);
    border: 1.5px solid var(--chamber-blue-dark);
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--chamber-blue-dark);
    color: white;
}

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

.btn-danger:hover {
    background: var(--red-light);
}

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

.btn-success:hover {
    background: var(--teal-light);
}

/* Navigation Bar */
.chamber-nav {
    background: var(--navy);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.nav-link:hover {
    background: rgba(0, 126, 217, 0.2);
    color: var(--chamber-blue);
}

.nav-link.active {
    background: var(--chamber-blue-dark);
    color: white;
}

/* Member Cards - Professional */
.member-card {
    background: white;
    border-left: 4px solid var(--chamber-blue-dark);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.member-card:hover {
    box-shadow: 0 8px 24px rgba(0, 79, 135, 0.12);
    transform: translateY(-2px);
    border-left-color: var(--chamber-blue);
}

/* Tier Badges - Official Colors */
.tier-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 0.25rem;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tier-visionary {
    background: var(--purple);
    color: white;
}

.tier-influence {
    background: var(--chamber-blue-dark);
    color: white;
}

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

.tier-prosper {
    background: var(--green);
    color: white;
}

/* Status Indicators (No Emojis) */
.status-excellent {
    color: var(--teal);
    font-weight: 600;
}

.status-good {
    color: var(--chamber-blue);
    font-weight: 600;
}

.status-declining {
    color: var(--orange);
    font-weight: 600;
}

.status-at-risk {
    color: var(--red);
    font-weight: 600;
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-top: 3px solid var(--chamber-blue-dark);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--chamber-blue-dark);
    font-family: 'Source Sans 3', sans-serif;
}

.stat-card .stat-label {
    color: var(--gray);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modal - Professional */
.modal-overlay {
    background: rgba(34, 41, 54, 0.85);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-top: 4px solid var(--chamber-blue-dark);
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--navy);
    color: white;
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--gray-light);
    font-family: 'Source Sans 3', sans-serif;
}

.data-table tr:hover {
    background: rgba(0, 126, 217, 0.05);
}

/* Icons (Heroicons) - No Emojis! */
.icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gray);
}

.icon-primary {
    color: var(--chamber-blue-dark);
}

/* Loading States */
.loading {
    border: 3px solid var(--gray-light);
    border-top-color: var(--chamber-blue);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    animation: spin 1s linear infinite;
}

.loading-spinner {
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert Boxes */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    border-left: 4px solid;
    font-weight: 500;
}

.alert-info {
    background: rgba(0, 126, 217, 0.1);
    border-left-color: var(--chamber-blue);
    color: var(--navy);
}

.alert-success {
    background: rgba(0, 119, 74, 0.1);
    border-left-color: var(--teal);
    color: var(--navy);
}

.alert-warning {
    background: rgba(247, 80, 0, 0.1);
    border-left-color: var(--orange);
    color: var(--navy);
}

.alert-danger {
    background: rgba(192, 43, 42, 0.1);
    border-left-color: var(--red);
    color: var(--navy);
}

/* Professional Form Elements */
input[type="text"],
input[type="search"],
textarea,
select {
    border: 1.5px solid var(--gray-medium);
    border-radius: 0.375rem;
    padding: 0.625rem 1rem;
    font-family: 'Source Sans 3', sans-serif;
    transition: all 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--chamber-blue);
    box-shadow: 0 0 0 3px rgba(0, 126, 217, 0.1);
}

/* Consistent Spacing */
.section-spacing {
    padding: 2rem 0;
}

.card-spacing {
    padding: 1.5rem;
}

/* Professional Shadows */
.shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.shadow-md { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15); }

/* Brand-Compliant Transitions */
.transition-all {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Remove Tailwind Emoji Classes */
.no-emoji::before {
    content: none !important;
}
