@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');
/* Academy Core Styles - Production v1.1 */

:root {
    --academy-bg: radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
    radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%);
    --duo-green: #58cc02;
    --duo-green-dark: #46a002;
    --fluency-blue: #00d2ff;
    --glass-white: rgba(255, 255, 255, 0.1);
    --glass-white-hover: rgba(255, 255, 255, 0.15);
}

/* --- Global Utilities & Resets --- */

.bg-academy-dark {
    background-color: #0a0b1e;
    background-image: var(--academy-bg);
}

.text-gradient {
    background: linear-gradient(135deg, #fff 30%, var(--fluency-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ls-1 {
    letter-spacing: 1px;
}

.text-tiny {
    font-size: 0.75rem;
}

.sticky-2 {
    top: 2rem !important;
}

.w-20 {
    width: 20px !important;
}

.btn-circle {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- Components: Glassmorphism --- */

.card-glass {
    background-color: var(--glass-white) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.topic-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.4) !important;
    background-color: var(--glass-white-hover) !important;
}

/* --- Section: Mastery Path (Node Visualization) --- */

.path-container {
    position: relative;
    padding: 100px 0 140px 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}

.path-container::-webkit-scrollbar {
    display: none;
}

.path-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%);
    border-radius: 10px;
    z-index: 0;
}

.path-node-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 160px;
}

.path-node {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: #1e2a38;
    border: 5px solid #37464f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.path-node.current {
    background: var(--fluency-blue);
    border-color: #fff;
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.6);
    transform: scale(1.1);
    animation: float 3s ease-in-out infinite;
}

.path-node.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.node-label {
    position: absolute;
    top: 100%;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    padding: 10px 18px;
    border-radius: 12px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    pointer-events: none;
}

.level-code {
    font-size: 0.65rem;
    text-transform: uppercase;
    display: block;
    color: var(--fluency-blue);
    font-weight: 700;
}

@keyframes float {
    0%, 100% {
        transform: scale(1.1) translateY(0);
    }
    50% {
        transform: scale(1.1) translateY(-5px);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shake-animation {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

.pop-effect {
    animation: pop 0.2s ease-out;
}

@keyframes pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* --- Section: Interactive Player --- */

.player-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

.player-navbar {
    flex-shrink: 0;
    height: 70px;
    z-index: 1060;
}

.player-content-area {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem 8rem 1rem;
}

.player-content-area > .container {
    max-width: 700px;
    margin: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Refactored Feedback Sheet for a slim, professional height */
.feedback-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 90px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    z-index: 1070;
    padding: 1rem 0;
}

.feedback-sheet.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.feedback-sheet.correct {
    background-color: #d7ffb8 !important;
    border-top: 3px solid #a8d67a;
}

.feedback-sheet.incorrect {
    background-color: #ffdfe0 !important;
    border-top: 3px solid #ff9196;
}

.interaction-card {
    border: 2px solid #e2e8f0;
    border-bottom: 4px solid #e2e8f0;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: white;
}

.interaction-card:hover:not(.selected) {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.interaction-card.selected {
    background-color: #f0f9ff;
    border-color: #3b82f6;
    border-bottom-color: #2563eb;
    color: #1d4ed8;
    transform: translateY(2px);
}

.interaction-key {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    background-color: white;
}

.interaction-card.selected .interaction-key {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
}

.mic-btn, .audio-play-btn {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.progress-pill {
    height: 1.25rem;
    background-color: var(--bs-gray-200);
    border-radius: 50rem;
}

.progress-bar-duo {
    background-color: var(--duo-green);
    transition: width 0.6s ease;
}

/* --- Section: Mission Control & Setup --- */

.academy-hero {
    padding: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 3rem;
}

.hero-icon-glow,
.topic-icon-wrapper {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    flex-shrink: 0;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.hero-icon-glow {
    background: rgba(0, 210, 255, 0.1);
    color: var(--fluency-blue);
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
}

.topic-icon-wrapper {
    background: rgba(255, 255, 255, 0.05);
}

.hero-icon-glow i,
.hero-icon-glow span,
.topic-icon-wrapper i,
.topic-icon-wrapper span {
    font-size: 2rem !important;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.1));
}

.progress-academy {
    background-color: rgba(255, 255, 255, 0.1) !important;
    height: 8px;
    border-radius: 10px;
}

.progress-academy .progress-bar {
    background-color: var(--duo-green);
}

.setup-radio-input:checked + .setup-radio-label {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: var(--bs-primary) !important;
}

.setup-radio-input:checked + .setup-radio-label .h3 {
    color: var(--fluency-blue) !important;
}

.setup-card {
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.setup-card:hover {
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-3px);
}

.setup-radio-input:checked + .setup-card {
    background: rgba(0, 210, 255, 0.15) !important;
    border-color: var(--fluency-blue) !important;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}

/* --- Section: Content Briefing --- */

.briefing-list-item {
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.briefing-list-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.briefing-number {
    font-weight: 800;
    font-size: 1.1rem;
    width: 25px;
    text-align: center;
}

/* --- Section: Breadcrumbs --- */

.breadcrumb-academy .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.3);
}

.breadcrumb-academy a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
}

.breadcrumb-academy a:hover {
    color: var(--fluency-blue);
}

/* --- Helper: Legacy Text Force White --- */
.legacy-text-force-white p,
.legacy-text-force-white span,
.legacy-text-force-white li,
.legacy-text-force-white div {
    color: rgba(255, 255, 255, 0.7) !important;
}

.legacy-text-force-white h1,
.legacy-text-force-white h2,
.legacy-text-force-white h3,
.legacy-text-force-white h4,
.legacy-text-force-white h5,
.legacy-text-force-white h6 {
    color: white !important;
}

/* --- Section: User Profile Page --- */

.profile-hero {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.xp-badge-large {
    background: linear-gradient(135deg, rgba(var(--blue_500), 0.2), rgba(var(--purple_500), 0.2));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    min-width: 150px;
}

.stats-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.achievement-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-timeline .list-group-item {
    transition: background-color 0.2s ease;
}

.activity-timeline .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.course-progress-card {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .profile-hero {
        padding: 1.5rem;
        text-align: center;
    }

    .xp-badge-large {
        margin-top: 1rem;
    }

    .hero-icon-glow {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Hero Icon Color Variants */
.hero-icon-purple {
    background: rgba(131, 25, 230, 0.1) !important;
    color: rgb(var(--purple_400)) !important;
}

.hero-icon-teal {
    background: rgba(25, 230, 168, 0.1) !important;
    color: rgb(var(--teal_400)) !important;
}

/* Border Colors */
.border-blue-400 {
    border-color: rgba(var(--blue_400), 0.5) !important;
}

/* Activity Heatmap */
.activity-heatmap {
    font-size: 12px;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    padding: 8px;
}

.heatmap-cell {
    aspect-ratio: 1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.heatmap-date {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Intensity Levels - GitHub style */
.heatmap-intensity-0 {
    background-color: rgba(255, 255, 255, 0.05);
}

.heatmap-intensity-1 {
    background-color: rgba(var(--green_400), 0.2);
}

.heatmap-intensity-2 {
    background-color: rgba(var(--green_400), 0.4);
}

.heatmap-intensity-3 {
    background-color: rgba(var(--green_400), 0.6);
}

.heatmap-intensity-4 {
    background-color: rgba(var(--green_400), 0.8);
}

.heatmap-cell:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.heatmap-today {
    border: 2px solid rgba(var(--blue_400), 0.8);
}

.heatmap-legend .legend-cell {
    width: 14px;
    height: 14px;
    cursor: default;
}

.heatmap-legend .legend-cell:hover {
    transform: none;
    box-shadow: none;
}

/* Circular Progress Ring */
.progress-ring-circle {
    stroke-linecap: round;
}

/* Responsive */
@media (max-width: 768px) {
    .heatmap-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 3px;
    }

    .heatmap-date {
        font-size: 8px;
    }
}

