/* Golf Rules Exam - Main Stylesheet */
:root {
    --primary-green: #198754;
    --dark-green: #146c43;
    --light-green: #d1e7dd;
    --gold: #ffc107;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Cards */
.feature-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

/* Exam Timer */
.exam-timer {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    padding: 15px;
    border-bottom: 3px solid var(--primary-green);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timer-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
}

.timer-display.warning {
    color: #dc3545;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Question Card */
.question-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    background: white;
}

.question-number {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    margin-right: 10px;
}

.option-label {
    display: block;
    padding: 12px 20px;
    margin: 8px 0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-label:hover {
    border-color: var(--primary-green);
    background-color: var(--light-green);
}

.option-label input[type="radio"] {
    margin-right: 10px;
}

.option-label input[type="radio"]:checked + span {
    font-weight: 600;
}

input[type="radio"]:checked + span {
    color: var(--primary-green);
}

.question-card:has(input[type="radio"]:checked) {
    border-color: var(--primary-green);
    background-color: #f8fff8;
}

/* Progress */
.exam-progress {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Result Page */
.result-card {
    border-radius: 15px;
    overflow: hidden;
}

.result-passed {
    background: linear-gradient(135deg, #198754, #20c997);
}

.result-failed {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
}

.score-display {
    font-size: 4rem;
    font-weight: 700;
}

/* Video Section */
.video-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-3px);
}

.video-card .card-body {
    padding: 15px;
}

.platform-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
}

/* Leaderboard */
.leaderboard-table {
    border-radius: 12px;
    overflow: hidden;
}

.leaderboard-table th {
    background: var(--primary-green);
    color: white;
    font-weight: 600;
}

.rank-1 { color: #ffd700; font-weight: 700; }
.rank-2 { color: #c0c0c0; font-weight: 700; }
.rank-3 { color: #cd7f32; font-weight: 700; }

/* Certificate */
.certificate-preview {
    border: 3px solid var(--gold);
    border-radius: 15px;
    padding: 40px;
    background: white;
    text-align: center;
}

/* Admin Panel */
.admin-sidebar {
    background: #2c3e50;
    min-height: 100vh;
    padding-top: 20px;
}

.admin-sidebar .nav-link {
    color: #ecf0f1;
    padding: 12px 20px;
    border-radius: 5px;
    margin: 2px 10px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--primary-green);
    color: white;
}

.admin-content {
    padding: 30px;
}

/* Auth Pages */
.auth-container {
    max-width: 450px;
    margin: 60px auto;
}

.auth-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .timer-display {
        font-size: 1.5rem;
    }
    .score-display {
        font-size: 3rem;
    }
}
