/*
Theme Name: Chessland Child - Regatul Șahului
Theme URI: https://chessland.nikki.ro
Template: generatepress
Author: Chessland Team
Author URI: https://chessland.nikki.ro
Description: Temă copil pentru platforma educațională Regatul Șahului - învață șah prin povești magice
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chessland
Domain Path: /languages
Tags: education, chess, kids, storytelling, gamification

==========================================
REGATUL ȘAHULUI - CHESSLAND
Platformă educațională pentru copii
==========================================
*/

/* Importă stilurile părinte */
@import url('../generatepress/style.css');

/* ========================================
   VARIABILE CSS PERSONALIZATE
   ======================================== */
:root {
    /* Paleta principală - Regatul Magic */
    --chess-primary: #6B4E3E;
    --chess-secondary: #D4AF37;
    --chess-accent: #9B6B43;
    --chess-magic: #6A4E9B;
    --chess-forest: #2D5A3B;
    --chess-sky: #87CEEB;
    --chess-sunset: #FF6B6B;
    
    /* Culori pentru stele și progres */
    --star-gold: #FFD700;
    --star-silver: #C0C0C0;
    --star-bronze: #CD7F32;
    
    /* Culori pentru piese */
    --piece-white: #FFF8E7;
    --piece-black: #2C2C2C;
    
    /* Culori pentru feedback */
    --correct-move: #4CAF50;
    --wrong-move: #F44336;
    --hint-color: #FFC107;
    
    /* Fonturi */
    --font-story: 'Comic Neue', 'Comic Neue', cursive;
    --font-title: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Animații */
    --transition-speed: 0.3s;
}

/* ========================================
   TIPOGRAFIE MAGICĂ
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&family=Poppins:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    color: #2c3e50;
}

h1, h2, h3, .story-title {
    font-family: var(--font-title);
    font-weight: 700;
    background: linear-gradient(135deg, var(--chess-primary), var(--chess-magic));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.story-text, .character-speech {
    font-family: var(--font-story);
    font-size: 1.2rem;
    line-height: 1.6;
    color: #2c3e50;
}

/* ========================================
   LAYOUT PRINCIPAL - FULL WIDTH
   ======================================== */
.site-content {
    padding: 0 !important;
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Eliminăm sidebar-ul complet */
#right-sidebar,
#left-sidebar {
    display: none !important;
}

.content-area {
    width: 100% !important;
    max-width: 100% !important;
}

/* ========================================
   HEADER MAGIC
   ======================================== */
.site-header {
    background: linear-gradient(135deg, var(--chess-primary), var(--chess-accent));
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.2)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.2)"/><circle cx="50" cy="80" r="2" fill="rgba(255,255,255,0.2)"/></svg>');
    pointer-events: none;
}

.site-branding {
    text-align: center;
    padding: 20px 0;
}

.site-title a {
    color: white !important;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* ========================================
   CONTAINER PAGINĂ JOC
   ======================================== */
.chessland-game-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

/* ========================================
   TABLĂ DE ȘAH STILIZATĂ
   ======================================== */
#chessboard {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Pătratele tablei */
.white-square {
    background-color: #F0D9B5 !important;
}

.black-square {
    background-color: #B58863 !important;
}

/* Piese șah - stil magic */
.chess-piece {
    transition: transform var(--transition-speed);
    cursor: pointer;
}

.chess-piece:hover {
    transform: scale(1.05);
}

/* Mutări posibile - evidențiere */
.highlight-move {
    box-shadow: inset 0 0 0 3px var(--star-gold);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,215,0,0.3), transparent);
}

/* Mutare corectă */
.correct-move {
    animation: correctPulse 0.5s ease;
}

@keyframes correctPulse {
    0% { box-shadow: 0 0 0 0 rgba(76,175,80,0.7); }
    70% { box-shadow: 0 0 0 20px rgba(76,175,80,0); }
    100% { box-shadow: 0 0 0 0 rgba(76,175,80,0); }
}

/* Mutare greșită */
.wrong-move {
    animation: wrongShake 0.3s ease;
}

@keyframes wrongShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ========================================
   ZONA POVESTE ȘI PERSONAJE
   ======================================== */
.story-area {
    background: linear-gradient(135deg, #FFF8E7, #FFE4B5);
    border-radius: 30px;
    padding: 25px;
    margin: 20px 0;
    border: 3px solid var(--chess-secondary);
    position: relative;
}

.character-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.character-avatar {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform var(--transition-speed);
}

.character-avatar:hover {
    transform: scale(1.05);
}

.character-avatar img {
    width: 80%;
    height: auto;
}

.character-speech-bubble {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 20px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.character-speech-bubble::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 40px;
    border: 8px solid transparent;
    border-right-color: white;
    border-left: 0;
}

.character-name {
    font-weight: bold;
    color: var(--chess-primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* ========================================
   SISTEM PROGRES ȘI STELE
   ======================================== */
.progress-container {
    background: #f0f0f0;
    border-radius: 30px;
    padding: 15px 20px;
    margin: 20px 0;
}

.progress-bar {
    height: 20px;
    background: linear-gradient(90deg, var(--chess-forest), var(--chess-secondary));
    border-radius: 10px;
    transition: width 0.5s ease;
}

.stars-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
}

.star {
    font-size: 30px;
    color: #ccc;
    transition: all var(--transition-speed);
    cursor: pointer;
}

.star.active {
    color: var(--star-gold);
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
}

.star.silver {
    color: var(--star-silver);
}

.star.bronze {
    color: var(--star-bronze);
}

/* ========================================
   BUTOANE MAGICE
   ======================================== */
.magic-button {
    background: linear-gradient(135deg, var(--chess-secondary), #FFA500);
    border: none;
    color: white;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-family: var(--font-title);
}

.magic-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.magic-button:active {
    transform: translateY(0);
}

.magic-button.secondary {
    background: linear-gradient(135deg, var(--chess-primary), var(--chess-accent));
}

/* ========================================
   ANIMAȚII SPECIALE
   ======================================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.bounce-animation {
    animation: bounce 0.5s ease;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin-animation {
    animation: spin 1s ease;
}

/* Confetti effect */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--star-gold);
    position: absolute;
    animation: confetti-fall 2s linear forwards;
}

@keyframes confetti-fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ========================================
   LOADING SCREEN
   ======================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--chess-primary), var(--chess-magic));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255,255,255,0.3);
    border-top-color: var(--chess-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* ========================================
   MODAL-URI
   ======================================== */
.chess-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 30px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: var(--chess-primary);
}

/* ========================================
   DASHBOARD PĂRINȚI
   ======================================== */
.dashboard-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed);
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.copil-card {
    border-left: 5px solid var(--chess-secondary);
}

.progress-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--chess-secondary) 0deg, #f0f0f0 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .character-container {
        flex-direction: column;
        text-align: center;
    }
    
    .character-speech-bubble::before {
        left: 50%;
        top: -15px;
        transform: translateX(-50%);
        border-right-color: transparent;
        border-bottom-color: white;
        border-top: 0;
    }
    
    .site-title a {
        font-size: 1.5rem;
    }
    
    #chessboard {
        max-width: 100%;
    }
    
    .magic-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .stars-container .star {
        font-size: 20px;
    }
    
    .story-text {
        font-size: 1rem;
    }
}