/* Catppuccin Mocha color classes */
:root {
    --ctp-base: #1e1e2e;
    --ctp-mantle: #181825;
    --ctp-surface0: #313244;
    --ctp-surface1: #45475a;
    --ctp-surface2: #585b70;
    --ctp-overlay0: #6c7086;
    --ctp-overlay1: #7f849c;
    --ctp-overlay2: #9399b2;
    --ctp-subtext0: #a6adc8;
    --ctp-subtext1: #bac2de;
    --ctp-text: #cdd6f4;
    --ctp-yellow: #f9e2af;
    --ctp-green: #a6e3a1;
    --ctp-blue: #89b4fa;
    --ctp-pink: #f5c2e7;
    --ctp-peach: #fab387;
    --ctp-teal: #94e2d5;
    --ctp-red: #f38ba8;
    --ctp-mauve: #cba6f7;
}

.color-yellow { color: #f9e2af !important; }
.color-green { color: #a6e3a1 !important; }
.color-blue { color: #89b4fa !important; }
.color-pink { color: #f5c2e7 !important; }
.color-peach { color: #fab387 !important; }
.color-teal { color: #94e2d5 !important; }
.color-red { color: #f38ba8 !important; }
.color-mauve { color: #cba6f7 !important; }
.color-gray { color: #cdd6f4 !important; }

body {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    background-color: #1e1e2e;
    color: #cdd6f4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.main-container {
    display: flex;
    flex: 1;
}

/* Classes communes réutilisables */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--ctp-surface0);
    border-radius: 15px;
    border: 1px solid var(--ctp-surface1);
}

.empty-state h2, .empty-state h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

.empty-state p, .empty-text {
    color: var(--ctp-subtext1);
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--ctp-blue), var(--ctp-mauve));
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(137, 180, 250, 0.3);
    color: white;
    text-decoration: none;
}

/* Challenge cards styles */
.challenge-card-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
    transition: all 0.2s ease;
}

.challenge-card-link:hover {
    text-decoration: none !important;
    color: inherit;
    transform: translateY(-2px);
}

.challenge-card-link * {
    text-decoration: none !important;
}

.challenge-card {
    background: var(--ctp-surface0);
    border: 1px solid var(--ctp-surface1);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.challenge-card:hover {
    border-color: var(--ctp-blue);
    box-shadow: 0 4px 15px rgba(137, 180, 250, 0.1);
}

.challenge-card-link:hover .challenge-card {
    border-color: var(--ctp-blue);
    box-shadow: 0 4px 15px rgba(137, 180, 250, 0.1);
}

/* Draft badge for unpublished challenges */
.draft-badge {
    display: inline-block;
    background: var(--ctp-surface1);
    color: var(--ctp-yellow);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    font-weight: 500;
    border: 1px solid var(--ctp-surface2);
}
