/* playful.css - Playful UI with vibrant colors, emoji faces and star rating system */

:root {
    --color-primary: #FF6B6B;
    --color-secondary: #4ECDC4;
    --color-success: #95E1D3;
    --color-warning: #FFE66D;
    --color-danger: #FF6B6B;
    --color-info: #A8E6CF;
    --color-bg: #FFF9E6;
    --color-card: #FFFFFF;
    --color-text: #2C3E50;
    --color-border: #E8E8E8;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--color-bg) 0%, #FFE6E6 100%);
    margin: 0;
    padding: 20px;
    color: var(--color-text);
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background: var(--color-card);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--color-secondary);
}

h1, h2, h3 {
    color: var(--color-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-align: center;
}

h2 {
    font-size: 2em;
    margin-bottom: 15px;
}

/* Emoji faces for feedback */
.face-happy::before {
    content: "😊 ";
    font-size: 1.5em;
}

.face-sad::before {
    content: "😢 ";
    font-size: 1.5em;
}

.face-thinking::before {
    content: "🤔 ";
    font-size: 1.5em;
}

.face-star::before {
    content: "⭐ ";
    font-size: 1.5em;
}

.face-rocket::before {
    content: "🚀 ";
    font-size: 1.5em;
}

.face-trophy::before {
    content: "🏆 ";
    font-size: 1.5em;
}

/* Star rating system */
.stars {
    display: inline-flex;
    gap: 5px;
    font-size: 2em;
    color: var(--color-warning);
}

.star {
    display: inline-block;
    transition: transform 0.2s;
}

.star.filled::before {
    content: "⭐";
}

.star.empty::before {
    content: "☆";
}

.star:hover {
    transform: scale(1.2) rotate(15deg);
}

/* Button styles */
button, .btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

button:active, .btn:active {
    transform: translateY(0) scale(1);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Input fields */
input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 3px solid var(--color-border);
    border-radius: 15px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

/* Labels */
label {
    display: block;
    margin: 15px 0 8px;
    font-weight: bold;
    color: var(--color-text);
    font-size: 1.1em;
}

/* Form groups */
.form-group {
    margin-bottom: 20px;
}

/* Question cards */
.question-card {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE6E6 100%);
    border: 3px solid var(--color-primary);
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.question-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.question-number {
    background: var(--color-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 15px;
}

.question-text {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--color-text);
}

/* Answer input */
.answer-input {
    max-width: 200px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
}

/* Results */
.result-correct {
    background: linear-gradient(135deg, var(--color-success) 0%, #C8E6C9 100%);
    border-color: #4CAF50;
    color: #1B5E20;
}

.result-incorrect {
    background: linear-gradient(135deg, #FFB3B3 0%, #FFE6E6 100%);
    border-color: var(--color-danger);
    color: #C62828;
}

/* Score display */
.score-display {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--color-warning) 0%, #FFE6B3 100%);
    border-radius: 20px;
    margin: 20px 0;
    border: 3px solid #FFA000;
}

.score-number {
    font-size: 4em;
    font-weight: bold;
    color: var(--color-primary);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
}

.score-text {
    font-size: 1.5em;
    margin-top: 10px;
}

/* Navigation */
.nav {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

/* Alert messages */
.alert {
    padding: 15px 20px;
    border-radius: 15px;
    margin: 15px 0;
    font-size: 1.1em;
    border: 3px solid;
}

.alert-success {
    background: var(--color-success);
    border-color: #4CAF50;
    color: #1B5E20;
}

.alert-error {
    background: #FFB3B3;
    border-color: var(--color-danger);
    color: #C62828;
}

.alert-info {
    background: var(--color-info);
    border-color: var(--color-secondary);
    color: #00695C;
}

.alert-warning {
    background: var(--color-warning);
    border-color: #FFA000;
    color: #F57F17;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

th {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-size: 1.1em;
}

td {
    padding: 12px 15px;
    border-bottom: 2px solid var(--color-border);
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) {
    background: rgba(78, 205, 196, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        padding: 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .question-text {
        font-size: 1.1em;
    }
    
    .score-number {
        font-size: 3em;
    }
}

/* Animations */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.bounce {
    animation: bounce 0.6s ease infinite;
}

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

.pulse {
    animation: pulse 2s ease infinite;
}

/* Loading spinner */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--color-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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