@charset "UTF-8";

/* Global Styles */
body {
    background-color: #f8fafc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

/* Improve readability for small text sizes used throughout the page */
.text-xs {
    font-size: 0.82rem !important;
    line-height: 1.2rem !important;
}

.text-sm {
    font-size: 0.95rem !important;
    line-height: 1.4rem !important;
}

.text-\[0\.65rem\] {
    font-size: 0.72rem !important;
    line-height: 1.05rem !important;
}

.text-\[10px\] {
    font-size: 11px !important;
    line-height: 1.1rem !important;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Components */
.chart-container {
    position: relative;
    height: 60vh;
    min-height: 400px;
    width: 100%;
}

.avatar-emoji {
    font-size: 4rem;
    line-height: 1;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.gradient-text {
    background: linear-gradient(to right, #f43f5e, #8b5cf6, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Function Cards (Dark Style) */
.func-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
}

.func-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

/* Card Borders */
.border-hero { border-top: 4px solid #f43f5e; }
.border-parent { border-top: 4px solid #3b82f6; }
.border-child { border-top: 4px solid #10b981; }
.border-inferior { border-top: 4px solid #cbd5e1; }
.border-opponent { border-top: 4px solid #64748b; }
.border-senex { border-top: 4px solid #475569; }
.border-trickster { border-top: 4px solid #f59e0b; }
.border-demon { border-top: 4px solid #ef4444; }

/* Modal & Transitions */
.modal-backdrop {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.transition-height {
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
    overflow: hidden;
}

/* SVG Interactive Elements */
.enneagram-node {
    transition: all 0.3s ease;
    cursor: default;
}

.enneagram-node:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Table */
.table-row-hover:hover {
    background-color: rgba(241, 245, 249, 0.8);
    transition: background 0.2s;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9; 
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; 
}
