/* ADAPT Self-Assessment Tool — Custom Styles */
/* Used alongside Tailwind CSS */

body {
    font-family: 'Inter', system-ui, sans-serif;
}

.font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

.page-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-container.active {
    opacity: 1;
    transform: translateY(0);
}

.modal-backdrop {
    backdrop-filter: blur(4px);
}

@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white;
    }

    .page-container {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        page-break-after: always;
    }

    @page {
        margin: 0.5in;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
    background: #94A3B8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748B;
}

.hero-gradient {
    background: linear-gradient(135deg, #1E3A5F 0%, #2D5A8A 50%, #0F1D30 100%);
}

.compass-icon {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.insight-card {
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}

.ranking-bar {
    transition: width 0.8s ease-out;
}

.reflection-quote {
    border-left: 3px solid #94A3B8;
    background: linear-gradient(90deg, #F8FAFC 0%, transparent 100%);
}

.quadrant-strength {
    border-left: 4px solid #059669;
}

.quadrant-hidden {
    border-left: 4px solid #0EA5E9;
}

.quadrant-stretch {
    border-left: 4px solid #DC2626;
}

.quadrant-growing {
    border-left: 4px solid #F59E0B;
}

/* Collapsible card styles */
.card-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease;
    opacity: 0;
}

.card-detail.expanded {
    max-height: 4000px;
    opacity: 1;
    transition: max-height 0.6s ease-in, opacity 0.3s ease;
}

.card-toggle-icon {
    transition: transform 0.3s ease;
}

.card-expanded .card-toggle-icon {
    transform: rotate(180deg);
}

.domain-group-header {
    position: sticky;
    top: 110px;
    z-index: 10;
}

/* AI Loading Overlay */
.ai-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 29, 48, 0.92);
    backdrop-filter: blur(8px);
    transition: opacity 0.6s ease;
}

.ai-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.ai-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top-color: #60A5FA;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.ai-quote {
    transition: opacity 0.5s ease;
}

.ai-quote.fade {
    opacity: 0;
}

/* Domain bar chart */
.domain-bar-container { display: flex; flex-direction: column; gap: 0.75rem; }
.domain-bar-row { display: flex; align-items: center; gap: 0.75rem; }
.domain-bar-label { width: 140px; flex-shrink: 0; font-size: 0.8125rem; font-weight: 600; color: #334155; text-align: right; }
.domain-bar-track { flex: 1; height: 2rem; background: #f1f5f9; border-radius: 0.5rem; overflow: hidden; position: relative; }
.domain-bar-fill { height: 100%; border-radius: 0.5rem; transition: width 0.8s ease-out; display: flex; align-items: center; justify-content: flex-end; padding-right: 0.75rem; min-width: 2.5rem; }
.domain-bar-score { font-size: 0.75rem; font-weight: 700; color: white; }
.domain-bar-level { width: 80px; flex-shrink: 0; font-size: 0.6875rem; color: #64748b; }

/* Time-horizon badges */
.tier-badge { display: inline-block; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.125rem 0.5rem; border-radius: 9999px; border: 1px solid; }
