/* ==========================================
   Fifi në Botën e Shkronjave 🦋
   Prototip për 3-5 vjeç - Stil i butë
   ========================================== */

/* === VARIO & RIVENDOSJE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 30%, #e8eaf6 60%, #e0f7fa 100%);
    font-family: 'Segoe UI', 'Comic Sans MS', 'Chalkboard SE', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* === KONTEJNERI KRYESOR === */
.game-container {
    width: 100%;
    max-width: 800px;
    min-height: 600px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 40px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

/* === TITULLI I KOKËS === */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.header-center {
    display: flex;
    align-items: center;
    gap: 12px;
}

.piket {
    font-size: 1.3rem;
    font-weight: bold;
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.niveli {
    font-size: 1rem;
    padding: 6px 16px;
    background: linear-gradient(135deg, #a78bfa, #818cf8);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* === BUTONAT === */
.btn-main {
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-main:active {
    transform: scale(0.97);
}

.btn-purple {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    color: white;
}

.btn-pink {
    background: linear-gradient(135deg, #f472b6, #ec4899);
    color: white;
}

.btn-green {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: white;
}

.btn-amber {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.btn-main:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* === EKRANI I FILLIMIT (SCREEN 1) === */
.screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: flex;
}

/* === Fifi Logo Big === */
.fifi-big {
    width: 160px;
    height: 160px;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

/* === Titulli Kryesor === */
.main-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    line-height: 1.2;
    text-align: center;
}

.title-gradient {
    background: linear-gradient(135deg, #7c3aed, #ec4899, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 30px;
    text-align: center;
    max-width: 400px;
}

.mosha-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(167, 139, 250, 0.15);
    border: 2px solid #a78bfa;
    border-radius: 30px;
    color: #7c3aed;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* === EKRANI I LOJËS (SCREEN 2) === */
.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}

.game-question {
    font-size: 2rem;
    font-weight: 700;
    color: #374151;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.4;
}

.highlight-letter {
    display: inline-block;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 8px;
}

/* === KAFSHËT GRID === */
.kafshe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

/* === RRJETI I FIGURAVE === */
.grid-figurat {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

.figura-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 20px;
    padding: 18px 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 3px solid transparent;
    aspect-ratio: 1;
    gap: 8px;
}

.figura-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #a78bfa;
}

.figura-item:active {
    transform: scale(0.95);
}

.figura-item.selected {
    border-color: #34d399;
    background: #f0fdf4;
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.3);
}

.figura-item.correct {
    border-color: #34d399;
    background: #d1fae5;
    animation: correctPulse 0.6s ease;
}

.figura-item.wrong {
    border-color: #f87171;
    background: #fee2e2;
    animation: shake 0.4s ease;
}

.figura-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.figura-icon svg {
    width: 100%;
    height: 100%;
}

.figura-emri {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

@media (max-width: 600px) {
    .grid-figurat {
        grid-template-columns: repeat(2, 1fr);
    }
    .figura-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 400px) {
    .figura-item {
        padding: 12px 6px 8px;
    }
    .figura-emri {
        font-size: 0.85rem;
    }
}

/* === EKRANI I FUNDIT (SCREEN 3) === */
.bravo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.bravo-fifi {
    width: 130px;
    height: 130px;
    animation: bounce 1s ease infinite;
}

.bravo-mesazh {
    font-size: 1.3rem;
    color: #6b7280;
    text-align: center;
    margin: 5px 0 20px;
    max-width: 350px;
}

/* === CONFETTI === */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    animation: confettiFall 3s ease-in forwards;
    top: -20px;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .game-container {
        padding: 20px;
        min-height: auto;
        border-radius: 25px;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .kafshe-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .kafshe-icon {
        width: 50px;
        height: 50px;
    }
    
    .game-question {
        font-size: 1.5rem;
    }
    
    .highlight-letter {
        font-size: 2.8rem;
    }
    
    .fifi-big {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 400px) {
    .game-container {
        padding: 12px;
        border-radius: 20px;
    }
    
    .kafshe-item {
        padding: 12px 6px 8px;
    }
    
    .kafshe-emri {
        font-size: 0.85rem;
    }
    
    .btn-main {
        padding: 14px 30px;
        font-size: 1rem;
    }
}