/* Basic Setup */
:root {
    --path-card-bg: rgba(20, 20, 20, 0.6);
    --path-border: rgba(255, 255, 255, 0.08);
    --path-accent: var(--accent-primary, #FF3621);
    --success-green: #1DB954;
}

body {
    background-color: var(--bg-primary, #050505);
    color: var(--text-primary, #fff);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header Section */
.paths-header {
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.paths-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.paths-header p {
    font-size: 1.25rem;
    color: var(--text-secondary, #a1a1aa);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.gradient-text {
    background: linear-gradient(135deg, #FF3621, #FF8A00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Global Progress Card */
.global-progress-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--path-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.global-bar-bg {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0 1.5rem;
}

.global-bar-fill {
    height: 100%;
    background: var(--path-accent);
    width: 0%;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 10px rgba(255, 54, 33, 0.5);
}

.stats-row {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--path-border);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat .val {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat .lbl {
    font-size: 0.85rem;
    color: var(--text-secondary, #888);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* Paths Grid */
.paths-layout {
    padding-bottom: 6rem;
}

.paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

/* Path Card */
.path-card {
    background: var(--path-card-bg);
    border: 1px solid var(--path-border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.path-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.path-header {
    padding: 2rem;
    position: relative;
    cursor: pointer;
}

.path-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.path-card:hover .path-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.path-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.path-desc {
    color: var(--text-secondary, #aaa);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Path Module Accordion */
.path-details {
    border-top: 1px solid var(--path-border);
    background: rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.path-details.open {
    max-height: 2000px;
    /* Arbitrary large height for transition */
    padding-bottom: 1rem;
}

.module-header {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    font-weight: 600;
    color: var(--text-primary, #fff);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--path-border);
}

/* Resource Item */
.resource-item {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    text-decoration: none;
    color: inherit;
    position: relative;
}

.resource-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.check-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--text-secondary, #666);
    margin-right: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    flex-shrink: 0;
    background: transparent;
}

.resource-item.completed .check-btn {
    background: var(--success-green);
    border-color: var(--success-green);
    transform: scale(1.1);
}

.check-btn i {
    font-size: 0.7rem;
    color: #fff;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s;
}

.resource-item.completed .check-btn i {
    opacity: 1;
    transform: scale(1);
}

.res-content {
    flex-grow: 1;
}

.res-title {
    font-size: 1rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.2rem;
    transition: color 0.2s;
}

.resource-item.completed .res-title {
    color: var(--text-secondary, #666);
    text-decoration: line-through;
}

.res-meta {
    font-size: 0.8rem;
    color: var(--text-secondary, #888);
    display: flex;
    gap: 0.8rem;
}

.res-meta i {
    opacity: 0.7;
}

/* Reveal Animation (Simple) */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .paths-header h1 {
        font-size: 2.5rem;
    }

    .paths-grid {
        grid-template-columns: 1fr;
    }
}