/*
Theme Name: Regatul Șahului - GeneratePress Child
Theme URI: https://regatulsahului.ro
Template: generatepress
Author: Regatul Șahului
Author URI: https://regatulsahului.ro
Description: Platformă educațională de șah pentru copii cu sistem de gamification
Version: 2.0.0
License: GPL v2 or later
Text Domain: regatul-sahului
Domain Path: /languages
*/

/* Root Variables */
:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --secondary: #10B981;
    --secondary-dark: #059669;
    --danger: #EF4444;
    --warning: #F59E0B;
    --dark: #1F2937;
    --light: #F9FAFB;
    --gray: #6B7280;
}

/* General Styles */
.chess-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.chess-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.chess-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.chess-points-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: bold;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Grid System */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .chess-dashboard {
        padding: 1rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .chess-dashboard {
        padding: 1rem;
    }
}

/* Badge-uri */
.badge-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.badge-card:hover {
    transform: translateX(5px);
}

.badge-icon {
    font-size: 48px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea15, #764ba215);
    border-radius: 50%;
}

.badge-info h4 {
    margin: 0 0 5px 0;
    color: #1f2937;
}

.badge-info p {
    margin: 0 0 5px 0;
    font-size: 12px;
    color: #6b7280;
}

.badge-info small {
    font-size: 10px;
    color: #10B981;
}

/* Animație pentru badge nou */
@keyframes badgeGlow {
    0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(79, 70, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

.badge-card-new {
    animation: badgeGlow 1.5s ease-out;
}