/* Variables CSS pour les thèmes */
:root {
    /* Thème Light */
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --background-color: #ffffff;
    --surface-color: #f8f9fa;
    --text-color: #212529;
    --border-color: #dee2e6;
    --card-bg: #ffffff;
    --navbar-bg: #0d6efd;
    --footer-bg: #212529;
}

[data-bs-theme="dark"] {
    /* Thème Dark */
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --background-color: #1a1a1a;
    --surface-color: #2d2d2d;
    --text-color: #ffffff;
    --border-color: #404040;
    --card-bg: #2d2d2d;
    --navbar-bg: #1a1a1a;
    --footer-bg: #000000;
}

/* Styles généraux */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation */
.navbar {
    background-color: var(--navbar-bg) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    color: white;
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.8) 0%, rgba(26, 26, 26, 0.8) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: white;
}

.server-status-card {
    animation: fadeInUp 0.8s ease-out;
}

.status-indicator {
    font-weight: bold;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.status-indicator.online {
    background-color: rgba(25, 135, 84, 0.15);
    color: #198754;
    border-color: #198754;
    box-shadow: 0 2px 4px rgba(25, 135, 84, 0.2);
}

.status-indicator.online i {
    animation: pulse 2s infinite;
}

.status-indicator.offline {
    background-color: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.player-count {
    font-weight: bold;
    color: var(--primary-color);
    padding: 12px;
    background-color: rgba(45, 45, 45, 0.1);
    border-radius: 8px;
    margin: 10px 0;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.player-count:hover {
    background-color: rgba(45, 45, 45, 0.2);
    transform: translateY(-1px);
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Theme Toggle Button */
#themeToggle {
    border-radius: 50px;
    padding: 8px 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#themeToggle:hover {
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    background-color: var(--footer-bg) !important;
}

.social-links a {
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding-top: 100px;
    }
    
    .server-status-card {
        margin-top: 2rem;
    }
}

/* Dark theme specific styles */
[data-bs-theme="dark"] .card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .bg-light {
    background-color: var(--surface-color) !important;
}

[data-bs-theme="dark"] .text-muted {
    color: #adb5bd !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2d2d2d;
} 

/* Development Steps - Horizontal Timeline */
.development-steps {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(0, 86, 179, 0.05) 100%);
}

.development-timeline {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    padding: 2rem 0;
}

.timeline-item {
    flex: 1 1 300px;
    max-width: 350px;
    position: relative;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

/* Styles pour les étapes terminées (completed) */
.timeline-item.completed {
    border-color: #198754;
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.2);
}

.timeline-item.completed .timeline-marker {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
}

.timeline-item.completed .timeline-number {
    background: rgba(255, 255, 255, 0.95);
    color: #198754;
}

/* Styles pour les étapes en cours (in_progress) */
.timeline-item.in_progress {
    border-color: #ffc107;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.timeline-item.in_progress .timeline-marker {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    animation: pulse-orange 2s infinite;
}

.timeline-item.in_progress .timeline-number {
    background: rgba(255, 255, 255, 0.95);
    color: #ffc107;
}

/* Styles pour les étapes prévues (planned) */
.timeline-item.planned {
    opacity: 0.5 !important;
    border-color: #6c757d;
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.2);
}

.timeline-item.planned .timeline-marker {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.timeline-item.planned .timeline-number {
    background: rgba(255, 255, 255, 0.95);
    color: #6c757d;
}

.timeline-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #0056b3 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.timeline-item:hover::before {
    transform: scaleX(1);
}

.timeline-marker {
    position: relative;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.timeline-marker::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.timeline-item:hover .timeline-marker::before {
    left: 100%;
}

.timeline-number {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-number {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.timeline-status {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.timeline-status.planned {
    background-color: #6c757d;
}

.timeline-status.in_progress {
    background-color: #ffc107;
    animation: pulse 2s infinite;
}

.timeline-status.completed {
    background-color: #198754;
}

.timeline-content {
    padding: 1.5rem;
    position: relative;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.timeline-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.timeline-badge.planned {
    background-color: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

.timeline-badge.in_progress {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.timeline-badge.completed {
    background-color: rgba(25, 135, 84, 0.2);
    color: #198754;
}

.timeline-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.timeline-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-color);
}

.timeline-date i {
    color: var(--primary-color);
}

/* Animation pour les étapes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes pulse-orange {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
}

.timeline-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive design */
@media (max-width: 768px) {
    .development-timeline {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .timeline-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .timeline-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .timeline-badge {
        align-self: flex-start;
    }
}

@media (max-width: 576px) {
    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-marker {
        height: 60px;
    }
    
    .timeline-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .development-timeline {
        gap: 1rem;
    }
} 

/* Styles pour les badges de priorité des bug reports */
.badge.priority-low {
    background-color: #28a745;
    color: white;
}

.badge.priority-medium {
    background-color: #ffc107;
    color: #212529;
}

.badge.priority-high {
    background-color: #fd7e14;
    color: white;
}

.badge.priority-critical {
    background-color: #dc3545;
    color: white;
}

/* Styles pour les badges de statut des bug reports */
.badge.status-open {
    background-color: #17a2b8;
    color: white;
}

.badge.status-in_progress {
    background-color: #ffc107;
    color: #212529;
}

.badge.status-resolved {
    background-color: #28a745;
    color: white;
}

.badge.status-closed {
    background-color: #6c757d;
    color: white;
}

/* Styles pour le tableau des bug reports */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: #343a40;
    color: white;
    border-color: #454d55;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

/* Styles pour le mode sombre */
[data-bs-theme="dark"] .table {
    color: #ffffff;
}

[data-bs-theme="dark"] .table tbody tr {
    background-color: #2d2d2d;
    border-color: #404040;
}

[data-bs-theme="dark"] .table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.2);
}

[data-bs-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
    background-color: #343a40;
}

[data-bs-theme="dark"] .table-striped tbody tr:nth-of-type(odd):hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Styles pour les articles de blog */
.news-article {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.news-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.news-article .card-title {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.news-article .card-title:hover {
    color: var(--primary-color);
}

.news-article .card-text {
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.8;
}

/* Animation pour les articles */
.news-article {
    animation: fadeInUp 0.6s ease-out;
}

.news-article:nth-child(1) { animation-delay: 0.1s; }
.news-article:nth-child(2) { animation-delay: 0.2s; }
.news-article:nth-child(3) { animation-delay: 0.3s; }
.news-article:nth-child(4) { animation-delay: 0.4s; }
.news-article:nth-child(5) { animation-delay: 0.5s; }

/* Styles pour l'avatar des nouvelles */
.news-avatar {
    text-align: center;
}

.news-avatar img {
    transition: box-shadow 0.3s ease;
    border-radius: 6px;
    border: 1px solid #495057;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive pour l'avatar */
@media (max-width: 768px) {
    .news-avatar {
        margin-bottom: 1rem;
    }
    
    .news-avatar img {
        width: 100px !important;
        height: 100px !important;
    }
} 