/**
 * Rating System Styles
 * نظام تقييم الحفل السنوي 2025 - وزارة الرياضة
 * Brand Colors: Green Theme
 */

/* Variables */
:root {
    --primary-green: #1B7D4E;
    --primary-green-dark: #156340;
    --primary-green-light: #2A9D61;
    --secondary-gold: #F5A623;
    --accent-purple: #6B3FA0;
    --bg-light: #F8FAF9;
    --text-dark: #1A1A1A;
    --text-gray: #6B7280;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(27, 125, 78, 0.15);
    --shadow-hover: 0 8px 30px rgba(27, 125, 78, 0.25);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bg-light) 0%, #E8F5E9 100%);
    color: var(--text-dark);
    min-height: 100vh;
    direction: rtl;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Logo Section */
.logo-section {
    text-align: center;
    padding: 40px 20px 20px;
}

.logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}

/* Card */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
    margin: 20px 0;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

/* Page Title */
.page-title {
    color: var(--primary-green);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
}

.page-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
}

/* Question Text */
.question {
    color: var(--primary-green);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
}

.instruction {
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Emoji Rating */
.emoji-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.emoji-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.emoji-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.emoji-btn.excellent { border-color: #22C55E; }
.emoji-btn.excellent:hover, .emoji-btn.excellent.selected { background: #DCFCE7; }

.emoji-btn.good { border-color: #84CC16; }
.emoji-btn.good:hover, .emoji-btn.good.selected { background: #ECFCCB; }

.emoji-btn.neutral { border-color: #EAB308; }
.emoji-btn.neutral:hover, .emoji-btn.neutral.selected { background: #FEF9C3; }

.emoji-btn.poor { border-color: #F97316; }
.emoji-btn.poor:hover, .emoji-btn.poor.selected { background: #FFEDD5; }

.emoji-btn.bad { border-color: #EF4444; }
.emoji-btn.bad:hover, .emoji-btn.bad.selected { background: #FEE2E2; }

.emoji-btn.selected {
    transform: scale(1.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* SVG Emoji Faces */
.emoji-face {
    width: 60px;
    height: 60px;
}

/* Category Buttons */
.category-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.category-btn {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    min-width: 140px;
}

.category-btn:hover {
    background: var(--primary-green-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.category-btn:active {
    transform: translateY(0);
}

/* Thank You Page */
.thank-you-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: block;
}

.thank-you-title {
    color: var(--primary-green);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
}

.thank-you-message {
    color: var(--text-gray);
    font-size: 1.2rem;
    text-align: center;
    line-height: 1.8;
}

/* Loading Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-light);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 30px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer a {
    color: var(--primary-green);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .card {
        padding: 25px;
    }
    
    .logo {
        max-width: 220px;
    }
    
    .page-title {
        font-size: 1.6rem;
    }
    
    .question {
        font-size: 1.3rem;
    }
    
    .emoji-btn {
        width: 65px;
        height: 65px;
        font-size: 40px;
    }
    
    .emoji-face {
        width: 50px;
        height: 50px;
    }
    
    .category-btn {
        padding: 12px 20px;
        font-size: 1rem;
        min-width: 120px;
    }
    
    .emoji-container {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .emoji-btn {
        width: 55px;
        height: 55px;
    }
    
    .emoji-face {
        width: 40px;
        height: 40px;
    }
    
    .category-container {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Animation */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for selected items */
.pulse {
    animation: pulse 0.3s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
