/* Styles de base pour la démo */
.demo-page {
    background: var(--bg-darker);
    min-height: 100vh;
}

.demo-page header {
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 5%;
}

.demo-page nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: var(--content-width);
    margin: 0 auto;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.back-button:hover {
    opacity: 0.8;
}

.demo-nav-placeholder {
    width: 100px;
}

/* Layout principal */
.demo-main {
    padding: 2rem 5%;
    max-width: var(--content-width);
    margin: 2rem auto;
}

.demo-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: var(--content-width);
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* Sidebar */
.demo-sidebar {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.demo-club-info {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.club-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.demo-club-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.demo-club-info p {
    color: var(--text-color-muted);
}

.demo-menu {
    list-style: none;
    padding: 0;
}

.demo-menu li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    color: var(--text-color-muted);
}

.demo-menu li:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

.demo-menu li.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

/* Contenu principal */
.demo-content {
    padding: 2rem;
}

.demo-tab {
    display: none;
}

.demo-tab.active {
    display: block;
}

/* Formulaire de création de match */
.match-creator {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.match-creator h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Score controls */
.score-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.team-score {
    text-align: center;
}

.team-score h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color-muted);
}

.score-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.score-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.score-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.score-btn.plus {
    background: var(--accent-color);
}

.score-btn.plus:hover {
    opacity: 0.9;
}

.score {
    font-size: 3rem;
    font-weight: 700;
    min-width: 60px;
}

.score-separator {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color-muted);
}

/* Match time */
.match-time {
    text-align: center;
    margin: 20px 0;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.live-indicator {
    background-color: #ff0000;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

/* Form actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.action-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.action-button.secondary {
    background: rgba(255, 255, 255, 0.1);
}

/* Aperçu du match */
.match-preview {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 2rem;
}

.match-preview h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.live-match {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.match-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.team {
    text-align: center;
    flex: 1;
}

.team h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding: 0;
    border: none;
}

.match-events {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.event {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-color-muted);
}

.match-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Calendrier */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calendar-nav button {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.calendar-nav button:hover {
    opacity: 0.8;
}

/* Actualités */
.news-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    color: var(--text-color-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Statistiques */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.stats-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
}

.stats-card h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking-item, .scorer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    border-radius: 8px;
    transition: var(--transition);
}

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

.ranking-item.current {
    background: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .demo-container {
        grid-template-columns: 1fr;
    }

    .demo-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

@media (max-width: 768px) {
    .demo-main {
        padding: 1rem;
    }

    .score-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .score-separator {
        display: none;
    }

    .form-actions {
        flex-direction: column;
    }

    .action-button {
        width: 100%;
        justify-content: center;
    }

    .match-content {
        flex-direction: column;
        gap: 1rem;
    }

    .match-separator {
        display: none;
    }
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f0f0f0;
}

.admin-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #333;
}

.match-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 30px 0;
}

.team {
    text-align: center;
}

.team h2 {
    margin-bottom: 15px;
    color: #444;
}

.score-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-controls button {
    width: 40px;
    height: 40px;
    font-size: 20px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

.score-controls button:hover {
    background-color: #0056b3;
}

.score-controls span {
    font-size: 24px;
    font-weight: bold;
    min-width: 40px;
}

.vs {
    font-size: 24px;
    font-weight: bold;
    color: #666;
}

#saveButton {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#saveButton:hover {
    background-color: #218838;
} 