/**
 * Custom Styles for Portuguese Language Drills
 * V6.0 - Notion Design System
 */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    scroll-behavior: smooth;
    /* Notion-style warm background */
    background: #fbfbfa;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Notion-style modal container */
.glassmorphic-card {
    background: #ffffff;
    border: none;
    box-shadow: rgba(15, 15, 15, 0.05) 0px 0px 0px 1px,
                rgba(15, 15, 15, 0.1) 0px 3px 6px,
                rgba(15, 15, 15, 0.2) 0px 9px 24px;
}

/* Notion-style panel (for question cards) */
.glass-panel {
    background: #ffffff;
    border: 1px solid rgba(55, 53, 47, 0.09);
    box-shadow: none;
    transition: background 0.2s ease-in-out;
}

.glass-panel:hover {
    background: rgba(55, 53, 47, 0.03);
}

/* Enhanced chip/button */
.glass-chip {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08),
                0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    color: #1a1a1a;
}

.glass-chip:hover {
    background: linear-gradient(to bottom, #f0f7ff, #e3f2ff);
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15),
                0 2px 6px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
    color: #1e40af;
}

/* Notion-style callout boxes */
.glass-info {
    background: #faf5ed;
    border: 1px solid rgba(55, 53, 47, 0.09);
    border-left: 3px solid #d9730d;
    box-shadow: none;
}

.glass-success {
    background: #edf3ec;
    border: 1px solid rgba(55, 53, 47, 0.09);
    border-left: 3px solid #448361;
    box-shadow: none;
}

/* Notion-style drill card */
.drill-card {
    visibility: visible;
    opacity: 1;
    transition: background 0.2s ease-in-out;
    background: #ffffff;
    border: 1px solid rgba(55, 53, 47, 0.09);
    box-shadow: none;
}

.drill-card.hidden {
    visibility: hidden;
    opacity: 0;
    position: absolute;
}

.drill-card.highlight {
    background: #ffffff;
    border-color: rgba(35, 131, 226, 0.28);
    box-shadow: rgba(35, 131, 226, 0.14) 0px 0px 0px 1px inset;
}

.drill-card.highlight:hover {
    background: rgba(35, 131, 226, 0.04);
}

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

/* Learning Path Animations */
#path-display-container .learning-path {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.5s ease-out forwards;
}

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

/* Learning Path Structure */
.learning-path ol {
    position: relative;
    padding-left: 2rem;
    list-style: none;
}

.learning-path > ol > li {
    position: relative;
    padding-bottom: 1.5rem;
}

.learning-path > ol > li:last-child {
    padding-bottom: 0;
}

/* Node style (the circle) for TOP-LEVEL items only */
.learning-path > ol > li::before {
    content: '';
    position: absolute;
    left: -1.75rem;
    top: 0.4rem;
    width: 1rem;
    height: 1rem;
    border-radius: 9999px;
    background-color: #fff;
    border: 3px solid #6366f1; /* indigo-600 */
    z-index: 1;
}

/* Connecting line for TOP-LEVEL items only */
.learning-path > ol > li::after {
    content: '';
    position: absolute;
    left: -1.2rem;
    top: 0.5rem;
    bottom: -0.5rem;
    width: 2px;
    background-color: #6366f1; /* Solid indigo for core path */
}

.learning-path > ol > li:last-child::after {
    display: none;
}

/* Style for supplemental path nodes (TOP-LEVEL) */
.learning-path > ol > li.supplemental-step::before {
    background-color: #f8fafc; /* bg-slate-50 */
    border: 2px dashed #94a3b8; /* slate-400 */
}

.learning-path > ol > li.supplemental-step::after {
    background-image: linear-gradient(to bottom, #94a3b8 60%, transparent 40%);
    background-size: 2px 8px;
    background-repeat: repeat-y;
    background-color: transparent; /* Remove solid color */
}

/* Learning Bundles */
.learning-bundle {
    background-color: #f8fafc; /* slate-50 */
    border: 1px solid #e2e8f0; /* slate-200 */
    border-radius: 0.75rem;
    padding: 1rem;
}

.learning-bundle-title {
    font-weight: 600;
    color: #475569; /* slate-600 */
    margin-bottom: 0.75rem;
}