/* Challenges Page Main Styles */
.hero-section {
    padding: 0 0 20px 0;
}

.language-selector {
    margin-bottom: 18px;
}

.language-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.language-tab {
    font-weight: 700;
    border-radius: 8px;
    padding: 10px 22px;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-tab.active[data-language="python"] {
    background: #00C2FF;
    color: #0E1E38;
    box-shadow: 0 2px 8px rgba(0,194,255,0.12);
}

.language-tab[data-language="javascript"] {
    background: #FFC700;
    color: #0E1E38;
}

.language-tab[data-language="java"] {
    background: #E41B17;
    color: #fff;
}

.language-tab[data-language="c"] {
    background: #A020F0;
    color: #fff;
}

.language-tab[data-language="cpp"] {
    background: #00599C;
    color: #fff;
}

.language-tab.disabled {
    background: #161b22;
    color: #8b949e;
    opacity: 0.5;
    cursor: not-allowed;
}

.difficulty-filter-bar {
    background: rgba(0,194,255,0.05);
    padding: 18px 0;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,194,255,0.04);
}

.filter-container {
    display: flex;
    gap: 18px;
    justify-content: center;
}

.difficulty-filter {
    font-weight: 700;
    border-radius: 8px;
    padding: 10px 22px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.difficulty-filter.active[data-difficulty="all"] {
    background: #00C2FF;
    color: #0E1E38;
    box-shadow: 0 2px 8px rgba(0,194,255,0.12);
}

.difficulty-filter[data-difficulty="easy"] {
    background: #FFC700;
    color: #0E1E38;
}

.difficulty-filter[data-difficulty="medium"] {
    background: #E41B17;
    color: #fff;
}

.difficulty-filter[data-difficulty="hard"] {
    background: #0E1E38;
    color: #FFC700;
}

.difficulty-filter[data-difficulty="expert"] {
    background: #161b22;
    color: #00C2FF;
}

.challenges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    min-height: 300px;
    margin-bottom: 40px;
}

.loading-container {
    width: 100%;
    text-align: center;
    margin-top: 40px;
}

.loading-spinner {
    margin-bottom: 18px;
}

.challenge-card {
    background: linear-gradient(135deg, #161b22 70%, #00C2FF 100%);
    border-radius: 18px;
    padding: 28px 24px 22px 24px;
    width: 260px;
    box-shadow: 0 8px 32px rgba(0,194,255,0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.3s;
    margin-bottom: 0;
}

.challenge-status {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,194,255,0.18);
}

.status-completed {
    background: #00BF63;
}

.status-attempted {
    background: #FFC700;
}

.status-new {
    background: #00C2FF;
}

.challenge-header {
    width: 100%;
    text-align: left;
    margin-bottom: 10px;
}

.challenge-title {
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    font-size: 1.25rem;
    color: #00C2FF;
    font-weight: 700;
}

.difficulty-badge {
    background: #0E1E38;
    color: #FFC700;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    padding: 4px 12px;
    margin-top: 6px;
    display: inline-block;
}

.challenge-description {
    font-size: 1rem;
    color: #E1E6F2;
    margin-bottom: 12px;
    text-align: left;
    width: 100%;
}

.challenge-stats {
    width: 100%;
    margin-bottom: 14px;
}

.challenge-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.challenge-stat-label {
    font-size: 0.95rem;
    color: #FFC700;
    font-weight: 600;
}

.challenge-stat-value {
    font-size: 0.95rem;
    color: #00C2FF;
    font-weight: 600;
}

.challenge-actions {
    width: 100%;
    display: flex;
    justify-content: center;
}

.challenge-btn-primary {
    font-weight: 700;
    border-radius: 8px;
    padding: 10px 28px;
    font-size: 1.08rem;
    border: none;
    box-shadow: 0 2px 8px rgba(0,194,255,0.12);
    transition: background 0.3s, transform 0.2s;
    cursor: pointer;
    color: #fff;
}

.challenge-btn-primary:hover {
    background: linear-gradient(135deg, #FFC700, #E41B17) !important;
}