/* ==========================================================================
   Insula Literelor - Stiluri globale
   ========================================================================== */

/* Variabile CSS - Tema Fete (roz) */
:root, [data-theme="girl"] {
    --color-primary: #FF6B9D;
    --color-secondary: #C44569;
    --color-success: #6BCF7F;
    --color-warning: #FFA502;
    --color-danger: #FF4757;
    --color-bg: #FFF5F7;
    --color-card-bg: #FFFFFF;
    --color-text: #2C3E50;
    --color-text-light: #7F8C8D;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --transition: all 0.3s ease;
    --font-size-base: 18px;
    --font-size-lg: 24px;
    --font-size-xl: 32px;
    --font-size-letter: 120px;
}

/* Tema Băieți (albastru) */
[data-theme="boy"] {
    --color-primary: #4A90E2;
    --color-secondary: #2E5C8A;
    --color-success: #6BCF7F;
    --color-warning: #FFA502;
    --color-danger: #FF4757;
    --color-bg: #F0F8FF;
    --color-card-bg: #FFFFFF;
    --color-text: #2C3E50;
    --color-text-light: #7F8C8D;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --transition: all 0.3s ease;
    --font-size-base: 18px;
    --font-size-lg: 24px;
    --font-size-xl: 32px;
    --font-size-letter: 120px;
}

/* Reset și bază */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Font educațional pentru litere, cuvinte și silabe */
.educational-text,
.sound-hunt__letter,
.syllable-chef__target,
.syllable-chef__slot,
.syllable-chef__letter,
.letter-match__word,
.letter-match__letter-btn,
.letter-garden__current,
.welcome-modal__input {
    font-family: 'Andika', 'Comic Sans MS', 'Trebuchet MS', sans-serif !important;
}

/* Reduce motion pentru accesibilitate */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
    animation: none !important;
    transition: none !important;
}

/* Layout principal */
#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    width: 100%;
}

.screen--home {
    max-width: none;
}

/* Header */
.header {
    text-align: left;
    margin-bottom: 30px;
}

.header__title {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hub - Ecran principal */
.hub {
    display: flex;
    flex-direction: row;
    gap: 30px;
    width: 100%;
    align-items: flex-start;
}

.hub__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hub__games {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

.hub__sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

@media (max-width: 1024px) {
    .hub {
        flex-direction: column;
    }

    .hub__sidebar {
        width: 100%;
        position: static;
    }
}

/* Card - Butoane jocuri */
.card {
    background: var(--color-card-bg);
    border: none;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.card:hover,
.card:focus {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

.card:active {
    transform: translateY(-2px);
}

.card__icon {
    font-size: 64px;
}

.card__title {
    font-size: var(--font-size-lg);
    color: var(--color-text);
    font-weight: 700;
}

.card__desc {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
}

/* Panou progres */
.progress-panel {
    background: var(--color-card-bg);
    border-radius: var(--radius);
    padding: 20px 30px;
    box-shadow: var(--shadow);
    width: 100%;
}

.progress-panel__title {
    font-size: var(--font-size-lg);
    margin-bottom: 15px;
    color: var(--color-primary);
}

.progress-panel__content {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-around;
}

.progress-panel__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.progress-panel__stat--clickable {
    background: none;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-panel__stat--clickable:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.progress-panel__icon {
    font-size: 32px;
    margin-bottom: 5px;
}

.progress-panel__label {
    font-size: 14px;
    color: var(--color-text-light);
    text-align: center;
}

.progress-panel__value {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
}

/* Rewards Panel */
.rewards-panel {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rewards-panel__btn {
    background: var(--color-card-bg);
    border: 3px solid transparent;
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.rewards-panel__btn:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.rewards-panel__btn--points:hover {
    background: linear-gradient(135deg, #FFE66D, #FFA502);
}

.rewards-panel__btn--album:hover {
    background: linear-gradient(135deg, #FF6B9D, #C44569);
}

.rewards-panel__btn--info {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.rewards-panel__btn--info:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

.rewards-panel__btn--info .rewards-panel__info {
    color: white;
}

.rewards-panel__btn--info .rewards-panel__label {
    color: white;
    font-weight: bold;
}

.rewards-panel__icon {
    font-size: 48px;
    flex-shrink: 0;
}

.rewards-panel__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.rewards-panel__label {
    font-size: 14px;
    color: var(--color-text-light);
    font-weight: 600;
}

.rewards-panel__value {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
}

/* Butoane */
.btn {
    border: none;
    border-radius: var(--radius);
    padding: 15px 30px;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

.btn--primary {
    background: var(--color-primary);
    color: white;
    box-shadow: var(--shadow);
}

.btn--primary:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
}

.btn--secondary {
    background: var(--color-card-bg);
    color: var(--color-text);
    border: 2px solid var(--color-text-light);
}

.btn--secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn--danger {
    background: var(--color-danger);
    color: white;
}

.btn--danger:hover {
    background: #E84051;
}

.btn--icon {
    font-size: 28px;
    padding: 10px;
    background: var(--color-card-bg);
    border: 2px solid var(--color-text-light);
}

.btn--icon:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn--settings {
    margin-top: 10px;
}

/* Game Header */
.game-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--color-card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.game-header__info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-header__title {
    font-size: var(--font-size-lg);
    color: var(--color-primary);
}

.game-header__round {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-text-light);
}

/* Game Area */
.game-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 20px;
}

/* Game Footer */
.game-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--color-card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-control input[type="range"] {
    width: 120px;
}

/* Autentificare */
.auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--color-bg);
}

.auth-panel {
    width: min(100%, 460px);
    background: var(--color-card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 32px;
}

.auth-panel--wide {
    width: min(100%, 720px);
}

.auth-panel__title {
    color: var(--color-primary);
    font-size: var(--font-size-xl);
    text-align: center;
    margin-bottom: 8px;
}

.auth-panel__subtitle {
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 24px;
}

.auth-panel__switch {
    width: 100%;
    margin-top: 18px;
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form.hidden {
    display: none;
}

.auth-form__title {
    color: var(--color-text);
    font-size: 22px;
    text-align: center;
}

.auth-form__label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--color-text);
    font-weight: 700;
}

.auth-form__input {
    border: 2px solid #D8DEE9;
    border-radius: 10px;
    font: inherit;
    padding: 12px 14px;
}

.auth-form__input:focus {
    border-color: var(--color-primary);
    outline: 3px solid rgba(255, 107, 157, 0.2);
}

.auth-form__remember {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-light);
    font-size: 15px;
}

.auth-form__error {
    min-height: 22px;
    color: var(--color-danger);
    font-size: 15px;
    font-weight: 700;
}

.auth-form__submit {
    width: 100%;
}

.profile-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.profile-card {
    background: #FFFFFF;
    border: 3px solid transparent;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 160px;
    padding: 20px;
    transition: var(--transition);
}

.profile-card:hover,
.profile-card:focus {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    outline: none;
}

.profile-card__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
}

.profile-card__name {
    color: var(--color-text);
    font-size: 18px;
    font-weight: 700;
}

.profile-card__hint {
    color: var(--color-text-light);
    font-size: 14px;
}

/* Joc 1: Vânătoarea de sunete */
.sound-hunt {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.sound-hunt__prompt {
    text-align: center;
}

.sound-hunt__instruction {
    font-size: var(--font-size-xl);
    color: var(--color-text);
    margin-bottom: 20px;
}

.sound-hunt__play-btn {
    font-size: 64px;
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.sound-hunt__play-btn:hover,
.sound-hunt__play-btn:focus {
    transform: scale(1.1);
    background: var(--color-secondary);
}

.sound-hunt__options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 700px;
}

.sound-hunt__letter {
    background: var(--color-card-bg);
    border: 4px solid var(--color-text-light);
    border-radius: var(--radius);
    padding: 40px;
    font-size: var(--font-size-letter);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-hunt__letter:hover,
.sound-hunt__letter:focus {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.sound-hunt__letter.correct {
    background: var(--color-success);
    color: white;
    border-color: var(--color-success);
    animation: bounce 0.5s ease;
}

.sound-hunt__letter.wrong {
    background: var(--color-danger);
    color: white;
    border-color: var(--color-danger);
    animation: shake 0.5s ease;
}

/* Joc 2: Bucătarul de silabe */
.syllable-chef {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.syllable-chef__instruction {
    font-size: var(--font-size-lg);
    text-align: center;
    color: var(--color-text);
}

.syllable-chef__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.syllable-chef__target {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary);
    padding: 20px 40px;
    background: var(--color-card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 0;
}

.syllable-chef__speak-btn {
    font-size: 48px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.syllable-chef__speak-btn:hover {
    transform: scale(1.1);
}

.syllable-chef__tips {
    background: #FFF3CD;
    border: 2px solid #FFA502;
    border-radius: 12px;
    padding: 15px;
    text-align: left;
    margin-bottom: 20px;
}

.syllable-chef__tips-toggle {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 0;
    width: 100%;
    text-align: left;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 8px;
}

.syllable-chef__tips-toggle:hover {
    opacity: 0.8;
}

.syllable-chef__tips-content {
    margin-top: 10px;
    display: none;
}

.syllable-chef__tips ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.syllable-chef__tips li {
    font-size: 15px;
    line-height: 1.8;
    margin: 5px 0;
    color: #856404;
}

.syllable-chef__layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.syllable-chef__left {
    flex: 1;
    max-width: 600px;
}

.syllable-chef__right {
    flex: 0 0 auto;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.syllable-chef__workspace {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-end;
    margin: 20px 0;
}

.syllable-chef__slot {
    width: 200px;
    height: 180px;
    border: 4px dashed var(--color-text-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    font-weight: 700;
    background: var(--color-card-bg);
    transition: var(--transition);
}

.syllable-chef__slot.drag-over {
    border-color: var(--color-primary);
    background: rgba(255, 107, 157, 0.1);
}

.syllable-chef__slot.filled {
    border-style: solid;
    border-color: var(--color-primary);
}

.syllable-chef__letters {
    display: grid;
    grid-template-columns: repeat(5, 80px);
    gap: 15px;
    justify-content: center;
    max-width: 100%;
    padding: 10px 0;
}

.syllable-chef__letter {
    width: 80px;
    min-width: 80px;
    height: 100px;
    flex-shrink: 0;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 48px;
    font-weight: 700;
    cursor: grab;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    touch-action: none;
}

.syllable-chef__letter:active {
    cursor: grabbing;
    opacity: 0.7;
}

.syllable-chef__letter.dragging {
    opacity: 0.5;
}

.syllable-chef__letter.used {
    opacity: 0.3;
    cursor: not-allowed;
}

.syllable-chef__actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* Joc 3: Potrivește Literele */
.letter-match {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.letter-match__instruction {
    font-size: var(--font-size-lg);
    text-align: center;
    color: var(--color-text);
}

.letter-match__layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.letter-match__left {
    flex: 1;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.letter-match__right {
    flex: 0 0 auto;
    width: 300px;
}

.letter-match__images {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.letter-match__image-card {
    width: 180px;
    padding: 20px;
    background: var(--color-card-bg);
    border: 4px solid var(--color-text-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.letter-match__image-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.letter-match__image-card.selected {
    border-color: var(--color-primary);
    border-width: 6px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.letter-match__image-card.selected .letter-match__emoji,
.letter-match__image-card.selected .letter-match__word {
    color: white;
}

.letter-match__image-card.matched {
    border-color: var(--color-success);
    background: #E8F5E9;
    cursor: default;
    opacity: 0.7;
}

.letter-match__image-card.matched:hover {
    transform: none;
}

.letter-match__emoji {
    font-size: 80px;
    margin-bottom: 10px;
}

.letter-match__word {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-text);
    filter: blur(5px);
    transition: filter 0.3s ease;
}

.letter-match__image-card.matched .letter-match__word {
    filter: blur(0);
}

.letter-match__letters {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.letter-match__letter-btn {
    width: 100%;
    aspect-ratio: 1;
    font-size: 64px;
    font-weight: bold;
    color: white;
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
}

.letter-match__letter-btn:hover {
    background: var(--color-secondary);
    transform: scale(1.05);
}

.letter-match__letter-btn:active {
    transform: scale(0.95);
}

.letter-match__tips {
    background: #FFF3CD;
    border: 2px solid #FFA502;
    border-radius: 12px;
    padding: 15px;
    text-align: left;
}

.letter-match__tips-toggle {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 0;
    width: 100%;
    text-align: left;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 8px;
}

.letter-match__tips-toggle:hover {
    opacity: 0.8;
}

.letter-match__tips-content {
    margin-top: 10px;
}

.letter-match__tips ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.letter-match__tips li {
    font-size: 15px;
    line-height: 1.8;
    margin: 5px 0;
    color: #856404;
}

.letter-match__feedback {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px 40px;
    border-radius: var(--radius);
    font-size: 24px;
    font-weight: bold;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

.letter-match__feedback--success {
    background: var(--color-success);
    color: white;
}

.letter-match__feedback--error {
    background: var(--color-danger);
    color: white;
}

.letter-match__feedback--info {
    background: var(--color-warning);
    color: white;
}

.letter-match__feedback-icon {
    font-size: 24px;
    display: inline;
    vertical-align: baseline;
}

@keyframes slideUp {
    from {
        bottom: -100px;
        opacity: 0;
    }
    to {
        bottom: 50px;
        opacity: 1;
    }
}

/* Sticker Reward Animation */
.sticker-reward__backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.sticker-reward__card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: stickerPopIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.sticker-reward__rarity {
    position: absolute;
    top: -15px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sticker-reward__rarity--common {
    background: linear-gradient(135deg, #78909C, #90A4AE);
}

.sticker-reward__rarity--rare {
    background: linear-gradient(135deg, #5E35B1, #7E57C2);
}

.sticker-reward__rarity--epic {
    background: linear-gradient(135deg, #F57C00, #FFB300);
}

.sticker-reward__title {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.sticker-reward__emoji {
    font-size: 120px;
    margin: 20px 0;
    animation: stickerBounce 0.6s ease infinite;
}

.sticker-reward__name {
    font-size: 32px;
    font-weight: bold;
    color: var(--color-text);
    margin-bottom: 10px;
}

.sticker-reward__category {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 30px;
}

.sticker-reward__close {
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sticker-reward__close:hover {
    background: var(--color-secondary);
    transform: scale(1.05);
}

.sticker-reward__confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.sticker-reward__confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    opacity: 0;
    animation: confettiFall 3s linear forwards;
}

@keyframes stickerPopIn {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Joc 4: Grădina literelor */
.letter-garden {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.letter-garden__instruction {
    font-size: var(--font-size-lg);
    text-align: center;
}

.letter-garden__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.letter-garden__current {
    font-size: 72px;
    font-weight: 700;
    color: var(--color-primary);
}

.letter-garden__speak-btn {
    font-size: 48px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.letter-garden__speak-btn:hover {
    transform: scale(1.1);
}

.letter-garden__layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.letter-garden__left {
    flex: 0 0 auto;
}

.letter-garden__right {
    flex: 0 0 300px;
}

.letter-garden__tips {
    background: #FFF3CD;
    border: 2px solid #FFA502;
    border-radius: 12px;
    padding: 15px;
    text-align: left;
}

.letter-garden__tips-toggle {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 0;
    width: 100%;
    text-align: left;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 8px;
}

.letter-garden__tips-toggle:hover {
    opacity: 0.8;
}

.letter-garden__tips-content {
    margin-top: 10px;
}

.letter-garden__tips ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.letter-garden__tips li {
    font-size: 15px;
    line-height: 1.8;
    margin: 5px 0;
    color: #856404;
}

.letter-garden__canvas-wrapper {
    position: relative;
    background: var(--color-card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 20px;
}

.letter-garden__canvas {
    border: 3px solid var(--color-text-light);
    border-radius: 8px;
    touch-action: none;
    cursor: crosshair;
}

.letter-garden__actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.letter-garden__actions .btn {
    width: 100%;
}

/* Joc 5: Familia Literelor */
.letter-family {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.letter-family__header {
    text-align: center;
    width: 100%;
}

.letter-family__instruction {
    font-size: var(--font-size-xl);
    color: var(--color-text);
    font-weight: 600;
}

.letter-family__columns {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1000px;
    justify-content: center;
    align-items: flex-start;
}

.letter-family__column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 450px;
}

.letter-family__column-title {
    font-size: var(--font-size-lg);
    color: var(--color-primary);
    text-align: center;
    font-weight: 700;
    padding: 15px;
    background: var(--color-card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.letter-family__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    padding: 20px;
    background: var(--color-card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.letter-family__letter {
    aspect-ratio: 1;
    background: var(--color-card-bg);
    border: 4px solid var(--color-text-light);
    border-radius: var(--radius);
    font-size: 56px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    font-family: 'Andika', 'Comic Sans MS', 'Trebuchet MS', sans-serif !important;
}

.letter-family__letter:hover {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.letter-family__letter:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.letter-family__letter--lowercase {
    color: var(--color-primary);
}

.letter-family__letter--uppercase {
    color: var(--color-secondary);
}

.letter-family__letter--selected {
    border-color: var(--color-primary);
    border-width: 6px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(196, 69, 105, 0.1));
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.4);
}

.letter-family__letter--matched {
    background: var(--color-success);
    color: white;
    border-color: var(--color-success);
    animation: matchSuccess 0.6s ease;
}

.letter-family__letter--wrong {
    animation: shake 0.5s ease;
    border-color: var(--color-danger);
}

@keyframes matchSuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15) rotate(5deg);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive pentru Familia Literelor */
@media (max-width: 900px) {
    .letter-family__columns {
        flex-direction: column;
        gap: 30px;
    }

    .letter-family__column {
        max-width: 100%;
    }
}

/* Joc 6: Detectivul de Cuvinte */
.word-detective {
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.word-detective__header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.word-detective__title {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    font-weight: 700;
}

.word-detective__instruction {
    font-size: 22px;
    color: var(--color-text);
}

.word-detective__emoji {
    font-size: 96px;
    line-height: 1;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.18));
}

.word-detective__word {
    display: flex;
    gap: 18px;
    padding: 24px 36px;
    background: var(--color-card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-height: 150px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.word-detective__letter {
    font-size: 70px;
    font-weight: 700;
    min-width: 60px;
    text-align: center;
    transition: transform 0.2s ease, color 0.2s ease;
    font-family: 'Andika', 'Comic Sans MS', 'Trebuchet MS', sans-serif !important;
}

.word-detective__letter--missing {
    color: var(--color-text-light);
    position: relative;
}

.word-detective__letter--missing::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -8px;
    height: 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
}

.word-detective__letter--revealed {
    color: var(--color-success);
    transform: scale(1.05);
    text-shadow: 0 6px 12px rgba(107, 207, 127, 0.6);
}

.word-detective__keyboard {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: var(--color-card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.word-detective__keyboard-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.word-detective__key {
    min-width: 54px;
    padding: 12px 0;
    border-radius: 12px;
    border: 3px solid var(--color-primary);
    background: white;
    color: var(--color-primary);
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.word-detective__key:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.word-detective__key:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.word-detective__key--wrong {
    animation: shake 0.4s ease;
    border-color: var(--color-danger);
    color: var(--color-danger);
}

.word-detective__tips {
    background: linear-gradient(135deg, #FFF3CD, #FFF8E1);
    border-radius: var(--radius);
    padding: 18px 24px;
    border: 2px solid #FFA502;
    font-size: 18px;
    color: #856404;
    width: 100%;
    box-shadow: var(--shadow);
}

.word-detective__tips p:first-child {
    font-weight: 600;
}

.word-detective__feedback {
    min-height: 32px;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    color: var(--color-text);
}

.word-detective__feedback--success {
    color: var(--color-success);
}

.word-detective__feedback--error {
    color: var(--color-danger);
}

@media (max-width: 900px) {
    .word-detective__word {
        padding: 20px;
        gap: 12px;
    }

    .word-detective__letter {
        font-size: 56px;
        min-width: 48px;
    }

    .word-detective__key {
        min-width: 48px;
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .word-detective {
        gap: 18px;
    }

    .word-detective__instruction {
        font-size: 18px;
    }

    .word-detective__letter {
        font-size: 46px;
        min-width: 40px;
    }

    .word-detective__keyboard {
        padding: 14px;
    }

    .word-detective__key {
        min-width: 44px;
        font-size: 20px;
        padding: 10px 0;
    }
}

@media (max-width: 600px) {
    .letter-family__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 15px;
    }

    .letter-family__letter {
        font-size: 40px;
        min-height: 80px;
    }

    .letter-family__instruction {
        font-size: var(--font-size-lg);
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal__content {
    background: var(--color-card-bg);
    border-radius: var(--radius);
    padding: 30px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.modal__content--settings {
    max-width: 720px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 20px;
}

.modal__title {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    margin-bottom: 25px;
    text-align: center;
}

/* Setări */
.settings-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 24px;
}

.settings-tabs__btn {
    border: 2px solid #D8DEE9;
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--color-text);
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    min-height: 48px;
    padding: 10px;
    transition: var(--transition);
}

.settings-tabs__btn:hover,
.settings-tabs__btn:focus {
    border-color: var(--color-primary);
    outline: none;
}

.settings-tabs__btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #FFFFFF;
}

.settings-panel {
    display: none;
    min-height: 300px;
}

.settings-panel.active {
    display: block;
}

.settings__group {
    margin-bottom: 25px;
}

.settings__group:last-child {
    margin-bottom: 0;
}

.settings__section-title {
    color: var(--color-text);
    font-size: 20px;
    margin-bottom: 15px;
}

.settings__description {
    color: var(--color-text-light);
    font-size: 15px;
    margin-bottom: 15px;
}

.settings__note {
    background: #FFF3CD;
    border: 2px solid #FFA502;
    border-radius: 8px;
    padding: 15px;
}

.settings__note p {
    color: #856404;
    font-size: 14px;
    margin: 0;
}

.settings__label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--font-size-base);
    cursor: pointer;
}

.settings__checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.settings__slider {
    width: 100%;
    margin-top: 10px;
}

.settings__select {
    border: 2px solid #D8DEE9;
    border-radius: 10px;
    font: inherit;
    padding: 10px;
    width: 100%;
}

.settings__select:focus {
    border-color: var(--color-primary);
    outline: 3px solid rgba(255, 107, 157, 0.2);
}

.settings__inline-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 12px;
}

.settings__button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.settings__button-row .btn {
    flex: 1 1 180px;
}

.avatar-picker {
    display: grid;
    gap: 18px;
}

.avatar-picker__group {
    background: #F8FAFC;
    border: 2px solid #E8ECF1;
    border-radius: 8px;
    padding: 14px;
}

.avatar-picker__title {
    color: var(--color-text);
    font-size: 16px;
    margin-bottom: 10px;
}

.avatar-picker__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.avatar-picker__btn {
    aspect-ratio: 1;
    background: #FFFFFF;
    border: 2px solid #D8DEE9;
    border-radius: 8px;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    min-width: 0;
    padding: 0;
    transition: var(--transition);
}

.avatar-picker__btn:hover,
.avatar-picker__btn:focus {
    border-color: var(--color-primary);
    outline: none;
    transform: translateY(-2px);
}

.avatar-picker__btn.active {
    background: rgba(255, 107, 157, 0.12);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.2);
}

.settings__actions {
    position: sticky;
    bottom: -20px;
    background: var(--color-card-bg);
    border-top: 2px solid #E8ECF1;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 30px -30px 0;
    padding: 18px 30px 0;
}

.settings__actions .btn {
    flex: 1 1 140px;
}

@media (max-width: 700px) {
    .modal__content--settings {
        max-width: 100%;
        padding: 22px;
    }

    .settings-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings__inline-grid {
        grid-template-columns: 1fr;
    }

    .avatar-picker__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .settings__actions {
        margin-inline: -22px;
        padding-inline: 22px;
    }
}

/* Theme Toggle */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.theme-toggle__name {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-primary);
    background: white;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle__btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: white;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle__btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.theme-toggle__btn.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary);
}

/* Welcome Modal */
.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.welcome-modal__content {
    background: var(--color-card-bg);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.welcome-modal__title {
    font-size: 36px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.welcome-modal__subtitle {
    font-size: 20px;
    color: var(--color-text);
    margin-bottom: 30px;
}

.welcome-modal__input {
    width: 100%;
    padding: 15px;
    font-size: 20px;
    border: 2px solid var(--color-text-light);
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.welcome-modal__themes {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.welcome-modal__theme-btn {
    width: 120px;
    height: 120px;
    border: 4px solid transparent;
    border-radius: 20px;
    background: white;
    font-size: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.welcome-modal__theme-btn:hover {
    transform: scale(1.05);
}

.welcome-modal__theme-btn.selected {
    border-color: var(--color-primary);
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.3);
}

.welcome-modal__theme-label {
    display: block;
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
}

/* Feedback */
.feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-card-bg);
    padding: 40px 60px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: var(--font-size-xl);
    font-weight: 700;
    text-align: center;
    z-index: 999;
    animation: fadeInOut 2s ease;
}

.feedback--success {
    color: var(--color-success);
}

.feedback--error {
    color: var(--color-danger);
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 20px;
    background: #E0E0E0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width 0.5s ease;
    border-radius: 10px;
}

/* Animații */
@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    15%, 85% { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .hub__games {
        grid-template-columns: 1fr;
    }

    .sound-hunt__options {
        grid-template-columns: repeat(2, 1fr);
    }

    .sound-hunt__letter {
        font-size: 80px;
        min-height: 150px;
    }

    .game-footer {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-base: 16px;
        --font-size-lg: 20px;
        --font-size-xl: 26px;
        --font-size-letter: 80px;
    }

    .card {
        padding: 20px;
        min-height: 160px;
    }

    .screen {
        padding: 15px;
    }
}

/* Utilități */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* ==========================================================================
   Animații medalii
   ========================================================================== */

.medal-celebration {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: medalPopIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 300px;
}

.medal-celebration__backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.medal-celebration__icon {
    font-size: 120px;
    animation: medalBounce 1s ease infinite;
    display: block;
    margin-bottom: 20px;
}

.medal-celebration__type {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
    opacity: 0.7;
}

.medal-celebration__type--bronze { color: #CD7F32; }
.medal-celebration__type--silver { color: #C0C0C0; }
.medal-celebration__type--gold { color: #FFD700; }
.medal-celebration__type--diamond { color: #B9F2FF; }

.medal-celebration__name {
    font-size: 28px;
    font-weight: bold;
    color: var(--color-text);
    margin-bottom: 10px;
}

.medal-celebration__description {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 30px;
}

.medal-celebration__confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    animation: confettiFall 3s linear;
}

@keyframes medalPopIn {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes medalBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-5px) rotate(5deg);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==========================================================================
   Album de stickere
   ========================================================================== */

.sticker-album-modal {
    max-width: 1400px;
    width: 90vw;
    height: 85vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.sticker-album {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* Header cu progres total și puncte */
.sticker-album__header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    flex-shrink: 0;
}

.sticker-album__total-progress {
    flex: 1;
    min-width: 200px;
}

.sticker-album__total-text {
    display: block;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.sticker-album__progress-bar {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    height: 12px;
    overflow: hidden;
}

.sticker-album__progress-fill {
    background: linear-gradient(90deg, #FFD700, #FFA500);
    height: 100%;
    border-radius: 20px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.sticker-album__points {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 18px;
}

.sticker-album__points-icon {
    font-size: 24px;
}

/* Header categorie */
.sticker-album__category-header {
    background: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #f0f0f0;
    flex-shrink: 0;
}

.sticker-album__category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: bold;
}

.sticker-album__category-icon {
    font-size: 32px;
}

.sticker-album__category-progress {
    font-size: 20px;
    font-weight: bold;
    color: #666;
}

/* Grid cu stickere */
.sticker-album__grid {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    background: #fafafa;
    align-items: start;
}

/* Card sticker */
.sticker-card {
    background: white;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    height: 200px; /* Fixed height instead of min-height */
    overflow: hidden; /* Prevent overflow */
}

.sticker-card:hover:not(.sticker-card--locked) {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.sticker-card--locked:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sticker-card--owned {
    border-color: #4CAF50;
}

.sticker-card--locked {
    background: #f5f5f5;
    opacity: 0.6;
    cursor: pointer;
}

.sticker-card--preview {
    opacity: 0.8 !important;
    background: #e8f5e9 !important;
    transform: scale(1.02);
}

.sticker-card--new {
    animation: stickerPulse 2s ease infinite;
}

.sticker-card__emoji {
    font-size: 50px;
    margin: 5px 0;
    line-height: 1;
}

.sticker-card__name {
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    color: #333;
    margin: 0;
    max-height: 32px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticker-card__rarity {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 12px;
    color: white;
}

.sticker-card__rarity--common {
    background: linear-gradient(135deg, #78909C, #90A4AE);
}

.sticker-card__rarity--rare {
    background: linear-gradient(135deg, #5E35B1, #7E57C2);
}

.sticker-card__rarity--epic {
    background: linear-gradient(135deg, #F57C00, #FFB300);
}

/* Badge NOU */
.sticker-card__new-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #FF4081;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 64, 129, 0.4);
    animation: newBadgeBounce 1s ease infinite;
}

/* Buton favorite */
.sticker-card__favorite {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 0;
    line-height: 1;
}

.sticker-card__favorite:hover {
    transform: scale(1.3);
}

.sticker-card__favorite--active {
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.8));
}

/* Buton cumpărare */
.sticker-card__buy {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.3);
    line-height: 1.2;
    width: 100%;
    max-width: 85px;
}

.sticker-card__buy-text {
    display: block;
}

.sticker-card__buy:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.5);
}

.sticker-card__buy:active {
    transform: scale(0.95);
}

/* Navigare */
.sticker-album__navigation {
    background: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 3px solid #f0f0f0;
    gap: 15px;
    flex-shrink: 0;
}

.sticker-album__nav-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 200px;
}

.sticker-album__nav-btn:hover:not(:disabled) {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.sticker-album__nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.sticker-album__page-indicator {
    font-size: 18px;
    font-weight: bold;
    color: #666;
    min-width: 60px;
    text-align: center;
}

/* Footer */
.sticker-album__footer {
    background: white;
    padding: 15px 25px;
    display: flex;
    justify-content: center;
    border-top: 2px solid #f0f0f0;
    flex-shrink: 0;
}

.sticker-album__close-btn {
    min-width: 200px;
}

/* Animații */
@keyframes stickerPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 2px 20px rgba(255, 64, 129, 0.5);
    }
}

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

/* Responsive */
@media (max-width: 1200px) {
    .sticker-album__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .sticker-album__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sticker-album-modal {
        max-width: 98vw;
        width: 98vw;
        height: 90vh;
    }

    .sticker-album__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px;
    }

    .sticker-card {
        height: 180px;
        padding: 12px;
    }

    .sticker-card__emoji {
        font-size: 44px;
    }

    .sticker-album__header {
        flex-direction: column;
        padding: 20px;
    }

    .sticker-album__category-title {
        font-size: 20px;
    }

    .sticker-album__nav-btn {
        font-size: 14px;
        padding: 10px 18px;
    }
}

/* Modal litere exersate */
.letters-modal {
    padding: 20px;
}

@media (max-width: 900px) {
    .letters-modal div[style*="grid-template-columns: repeat(7, 1fr)"] {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .letters-modal div[style*="grid-template-columns"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ==========================================================================
   Info Modal
   ========================================================================== */

.info-modal {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 85vh;
}

.info-modal__title {
    text-align: center;
    color: var(--color-primary);
    font-size: 32px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--color-primary);
}

.info-modal__content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 10px;
}

.info-section {
    margin-bottom: 40px;
}

.info-section__title {
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.info-grid--medals {
    grid-template-columns: repeat(4, 1fr);
}

.info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-card--full {
    grid-column: 1 / -1;
}

.info-card--tips {
    background: linear-gradient(135deg, #FFF3CD, #FFF8E1);
    border-color: #FFA502;
}

.info-card__icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 15px;
}

.info-card h4 {
    font-size: 18px;
    color: var(--color-text);
    margin-bottom: 10px;
}

.info-card p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 10px;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.info-card ul li {
    padding: 5px 0;
    font-size: 14px;
    line-height: 1.5;
}

.sticker-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.sticker-category {
    background: white;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: bold;
    color: var(--color-text);
}

.info-modal__footer {
    padding: 20px;
    border-top: 2px solid #e9ecef;
    text-align: center;
    background: white;
    flex-shrink: 0;
}

.info-modal__close-btn {
    min-width: 250px;
    font-size: 18px;
    padding: 15px 30px;
}

/* Responsive Info Modal */
@media (max-width: 900px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-grid--medals {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-modal__title {
        font-size: 24px;
    }

    .info-section__title {
        font-size: 20px;
    }
}

@media (max-width: 600px) {
    .info-grid--medals {
        grid-template-columns: 1fr;
    }

    .info-card__icon {
        font-size: 36px;
    }

    .sticker-categories {
        flex-direction: column;
    }
}
