/* WhereToFindPeptides.com - Research Portal Theme
   Design: Clean white/blue research portal style
   Framework: Custom CSS Grid (unique to this site)
   Font: IBM Plex Sans (scientific/technical feel)
*/

/* ============================================
   CSS VARIABLES - Research Portal Theme
   ============================================ */
:root {
    /* Primary Colors - Blue Research Theme */
    --primary: #0066cc;
    --primary-dark: #004c99;
    --primary-light: #e6f2ff;

    /* Secondary - Warm accent */
    --secondary: #ff6b35;
    --secondary-light: #fff0eb;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Semantic */
    --success: #059669;
    --warning: #d97706;
    --error: #dc2626;
    --info: #0284c7;

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Typography */
    --font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    /* Shadows */
    --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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-900);
}

h1 { font-size: 2.25rem; margin-bottom: var(--space-6); }
h2 { font-size: 1.75rem; margin-bottom: var(--space-5); }
h3 { font-size: 1.375rem; margin-bottom: var(--space-4); }
h4 { font-size: 1.125rem; margin-bottom: var(--space-3); }

p {
    margin-bottom: var(--space-4);
    color: var(--gray-600);
}

.lead {
    font-size: 1.125rem;
    color: var(--gray-700);
    line-height: 1.7;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container-narrow {
    max-width: 800px;
}

.main-content {
    flex: 1;
    padding: var(--space-8) 0;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-6);
}

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

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0;
    gap: var(--space-6);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gray-900);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.logo:hover {
    color: var(--primary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.main-nav a {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.main-nav a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.main-nav a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: var(--space-2);
    cursor: pointer;
    color: var(--gray-600);
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        flex-direction: column;
        padding: var(--space-4);
        box-shadow: var(--shadow-lg);
        z-index: 99;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        width: 100%;
        padding: var(--space-3) var(--space-4);
    }

    /* Add Login/Signup to mobile menu */
    .main-nav.active::after {
        content: '';
        display: block;
        height: 1px;
        background: var(--gray-200);
        margin: var(--space-3) 0;
    }

    .mobile-toggle {
        display: block;
    }

    /* Show Login link on mobile, hide only secondary button */
    .header-actions .btn-text {
        display: inline-flex;
        font-size: 0.875rem;
        padding: var(--space-2);
    }

    .header-actions .btn-secondary {
        display: none;
    }

    .header-actions .btn-primary {
        padding: var(--space-2) var(--space-3);
        font-size: 0.875rem;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-family);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

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

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

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-200);
    border-color: var(--gray-300);
    color: var(--gray-800);
}

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

.btn-accent:hover {
    background: #e55a2b;
    color: white;
}

.btn-text {
    background: transparent;
    color: var(--gray-600);
    padding: var(--space-2) var(--space-3);
}

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

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: 1rem;
}

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: 0.875rem;
}

/* Disabled Button States */
.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary:disabled {
    background: var(--gray-400);
}

.btn-secondary:disabled {
    background: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--gray-400);
}

/* Loading State */
.btn.is-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.is-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: btn-spinner 0.6s linear infinite;
}

.btn-primary.is-loading::after {
    border-top-color: white;
}

@keyframes btn-spinner {
    to { transform: rotate(360deg); }
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--gray-100);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-4) var(--space-6);
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
}

/* Feature Card */
.feature-card {
    padding: var(--space-6);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.feature-card h3 {
    margin-bottom: var(--space-2);
}

.feature-card p {
    margin-bottom: 0;
    font-size: 0.9375rem;
}

/* Resource Card */
.resource-card {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.resource-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.resource-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.resource-content h4 {
    margin-bottom: var(--space-1);
}

.resource-content p {
    margin-bottom: 0;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--space-16) 0;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 2.75rem;
    margin-bottom: var(--space-4);
}

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

.hero-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

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

.hero .btn-primary:hover {
    background: var(--gray-100);
}

.hero .btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

@media (max-width: 768px) {
    .hero {
        padding: var(--space-12) 0;
    }

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

/* ============================================
   SECTION STYLING
   ============================================ */
.section {
    padding: var(--space-16) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-header h2 {
    margin-bottom: var(--space-3);
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

.section-alt {
    background: var(--white);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
    color: var(--gray-700);
}

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-family);
    font-size: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-input::placeholder {
    color: var(--gray-400);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

.form-hint {
    margin-top: var(--space-2);
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Disabled State Styles */
.form-input:disabled,
.form-input[disabled] {
    background: var(--gray-100);
    color: var(--gray-400);
    cursor: not-allowed;
    opacity: 0.7;
}

.form-input:disabled::placeholder {
    color: var(--gray-400);
}

/* Form Validation States */
.form-input.is-invalid {
    border-color: var(--error);
}

.form-input.is-invalid:focus {
    box-shadow: 0 0 0 3px #fee2e2;
}

.form-input.is-valid {
    border-color: var(--success);
}

.form-input.is-valid:focus {
    box-shadow: 0 0 0 3px #d1fae5;
}

.form-error {
    margin-top: var(--space-2);
    font-size: 0.875rem;
    color: var(--error);
}

.form-success {
    margin-top: var(--space-2);
    font-size: 0.875rem;
    color: var(--success);
}

/* Search Box */
.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-box input {
    padding-left: var(--space-12);
    padding-right: var(--space-12);
}

.search-box .search-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.search-box .btn {
    position: absolute;
    right: var(--space-2);
    top: 50%;
    transform: translateY(-50%);
}

/* ============================================
   CHAT INTERFACE
   ============================================ */
.chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.chat-header {
    padding: var(--space-4) var(--space-6);
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.chat-status {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.chat-message {
    max-width: 80%;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
}

.chat-message.user {
    background: var(--primary);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: var(--radius-sm);
}

.chat-message.assistant {
    background: var(--gray-100);
    color: var(--gray-800);
    border-bottom-left-radius: var(--radius-sm);
}

.chat-input-area {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: var(--space-3);
}

.chat-input-area input {
    flex: 1;
}

/* ============================================
   GLOSSARY STYLES
   ============================================ */
.glossary-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
    justify-content: center;
}

.glossary-nav a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--gray-600);
    transition: all var(--transition-fast);
}

.glossary-nav a:hover,
.glossary-nav a.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.glossary-term {
    padding: var(--space-5);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    margin-bottom: var(--space-4);
}

.glossary-term h3 {
    color: var(--primary);
    margin-bottom: var(--space-2);
}

.glossary-term p {
    margin-bottom: 0;
}

/* ============================================
   FAQ STYLES
   ============================================ */
.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    margin-bottom: var(--space-4);
    overflow: hidden;
}

.faq-question {
    padding: var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-question h4 {
    margin: 0;
    font-weight: 500;
}

.faq-toggle {
    font-size: 1.25rem;
    color: var(--gray-400);
    transition: transform var(--transition-base);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--space-5) var(--space-5);
    display: none;
}

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

/* ============================================
   MEMBER PORTAL
   ============================================ */
.auth-container {
    max-width: 440px;
    margin: 0 auto;
    padding: var(--space-8);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.auth-header h1 {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
}

.auth-header p {
    margin-bottom: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin: var(--space-6) 0;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--gray-200);
    font-size: 0.9375rem;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: var(--space-6);
}

.breadcrumb a {
    color: var(--gray-500);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--gray-300);
}

/* ============================================
   ALERTS & NOTICES
   ============================================ */
.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.alert-info {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
}

.alert-warning {
    background: #fef3c7;
    border-left: 4px solid var(--warning);
}

.alert-success {
    background: #d1fae5;
    border-left: 4px solid var(--success);
}

.alert-error {
    background: #fee2e2;
    border-left: 4px solid var(--error);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: var(--space-12) 0 var(--space-6);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-10);
    margin-bottom: var(--space-10);
}

.footer-brand h3 {
    color: white;
    margin-bottom: var(--space-3);
}

.footer-brand p {
    color: var(--gray-400);
    margin-bottom: 0;
    line-height: 1.6;
}

.footer-links h4 {
    color: white;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

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

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--space-6);
    border-top: 1px solid var(--gray-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

.footer-legal a {
    color: var(--gray-500);
}

.footer-legal a:hover {
    color: white;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.hidden { display: none; }
.visible { display: block; }

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary);
}

.badge-success {
    background: #d1fae5;
    color: var(--success);
}

.badge-warning {
    background: #fef3c7;
    color: var(--warning);
}

/* Tag */
.tag {
    display: inline-block;
    padding: var(--space-1) var(--space-2);
    font-size: 0.8125rem;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: var(--radius-sm);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-top-btn {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================
   QUICK QUESTION BUTTONS (Chat)
   ============================================ */
.quick-question {
    text-align: left;
    white-space: normal;
    height: auto;
    padding: var(--space-3) var(--space-4);
}

.quick-question:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--gray-400);
}

.quick-question:disabled:hover {
    background: var(--gray-100);
    border-color: var(--gray-200);
    transform: none;
}

/* ============================================
   TYPING INDICATOR
   ============================================ */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: var(--space-3) var(--space-4);
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--gray-400);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

/* ============================================
   TOOLTIP
   ============================================ */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-2) var(--space-3);
    background: var(--gray-900);
    color: white;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    margin-bottom: var(--space-2);
    z-index: 100;
}

[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.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;
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: var(--space-2) var(--space-4);
    z-index: 1000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}
