/* Interactive Class Explorer */
.class-explorer {
    display: flex;
    flex-direction: row;
}

.class-nav {
    width: 200px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.class-nav-item {
    background: transparent;
    border: none;
    padding: 20px;
    text-align: left;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
}

.class-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
}

.class-nav-item.active {
    background: rgba(255, 215, 0, 0.1);
    color: var(--color-accent-gold);
    border-left-color: var(--color-accent-gold);
}

.class-nav-item .class-icon {
    font-size: 1.2rem;
}

.class-display {
    flex: 1;
    padding: 40px;
    position: relative;
    min-height: 400px;
}

.class-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.class-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.class-header {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.class-header h3 {
    font-size: 2rem;
    margin: 0;
}

.class-role {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.class-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #ddd;
}

.class-stats {
    margin-bottom: 30px;
}

.stat-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.stat-row span {
    width: 40px;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.stat-bar {
    height: 8px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.class-skills {
    display: flex;
    gap: 10px;
}

.skill-tag {
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .class-explorer {
        flex-direction: column;
    }

    .class-nav {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .class-nav-item {
        padding: 15px;
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
    }

    .class-nav-item.active {
        border-left-color: transparent;
        border-bottom-color: var(--color-accent-gold);
    }

    .class-display {
        padding: 20px;
    }
}