/* ========================================
   DEČIJA PLANETA - Main Stylesheet
   ======================================== */

/* --- CSS Variables --- */
:root {
    --color-primary: #FF5A36;
    --color-secondary: #00B4D8;
    --color-accent: #FFD166;
    --color-purple: #8338EC;
    --color-pink: #FF006E;
    --color-blue: #3A86FF;
    --color-green: #06D6A0;
    --color-yellow: #FFBE0B;
    --color-dark: #1E293B;
    --color-light: #F8FAFC;
    --color-white: #FFFFFF;
    --color-bg-soft: #F0F4F8;
    
    --font-main: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(30, 41, 59, 0.06);
    --shadow-md: 0 6px 18px rgba(30, 41, 59, 0.08);
    --shadow-lg: 0 12px 28px rgba(30, 41, 59, 0.12);
    
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 36px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: #F8FAFC;
    color: var(--color-dark);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 70px; /* Space for bottom floating nav on mobile */
}

img { max-width: 100%; }

a {
    text-decoration: none;
    color: inherit;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid #E2E8F0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 6px 0;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.logo-icon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 900;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text h1::after {
    content: 'beta';
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: lowercase;
    color: #FFFFFF;
    background: var(--color-green);
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    -webkit-text-fill-color: #FFFFFF;
    padding: 2px 7px;
    border-radius: 8px;
    line-height: 1.3;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.logo-tagline {
    font-size: 0.7rem;
    color: #64748B;
    font-weight: 700;
}

.main-nav > ul {
    display: flex;
    list-style: none;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: var(--radius-xl);
    font-weight: 800;
    font-size: 0.85rem;
    color: #475569;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: #F1F5F9;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: #E2E8F0;
    color: var(--color-primary);
    transform: translateY(-2px);
}

.nav-link.active {
    background: #FFF1EE;
    color: var(--color-primary);
    border-color: #FFD5CC;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
    overflow: hidden;
    /* Пастелно море: светао плави + ментолни + лила градијент */
    background:
        radial-gradient(circle at 15% 25%, rgba(186, 230, 253, 0.55) 0%, transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(221, 214, 254, 0.55) 0%, transparent 42%),
        radial-gradient(circle at 50% 90%, rgba(167, 243, 208, 0.45) 0%, transparent 50%),
        linear-gradient(165deg, #EFF6FF 0%, #F0FDFA 55%, #FAF5FF 100%);
    border-bottom: 2px solid #E0E7FF;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.25;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--color-primary), var(--color-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 32px;
    color: #475569;
    font-weight: 600;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Buttons (Modern Clean Kids Style) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    text-decoration: none;
    position: relative;
}

.btn-primary {
    background: #FF5A36;
    color: white;
    box-shadow: 0 4px 14px rgba(255, 90, 54, 0.35);
}

.btn-primary:hover {
    background: #E84A26;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 90, 54, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 90, 54, 0.3);
}

.btn-secondary {
    background: #00B4D8;
    color: white;
    box-shadow: 0 4px 14px rgba(0, 180, 216, 0.35);
}

.btn-secondary:hover {
    background: #0096C7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.45);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 180, 216, 0.3);
}

.btn-purple {
    background: var(--color-purple);
    color: white;
    box-shadow: 0 4px 14px rgba(131, 56, 236, 0.35);
}

.btn-purple:hover {
    background: #6E22DB;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(131, 56, 236, 0.45);
}

.btn-purple:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(131, 56, 236, 0.3);
}

.btn-fact {
    background: #8338EC;
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-xl);
    font-family: var(--font-main);
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    box-shadow: 0 3px 10px rgba(131, 56, 236, 0.3);
}

.btn-fact:hover {
    background: #6E22DB;
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(131, 56, 236, 0.4);
}

.btn-fact:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(131, 56, 236, 0.25);
}

/* --- Hero Decoration --- */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.cloud {
    position: absolute;
    font-size: 4rem;
    opacity: 0.3;
    animation: floatCloud 20s ease-in-out infinite;
}

.cloud-1 { top: 5%; left: 10%; animation-delay: 0s; }
.cloud-2 { top: 15%; right: 15%; animation-delay: -7s; font-size: 3rem; }
.cloud-3 { bottom: 10%; left: 25%; animation-delay: -14s; font-size: 3.5rem; }

/* --- Fun Fact Banner & Daily Mission --- */
.quick-hub-section {
    padding: 24px 0 10px;
}

.hub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.daily-mission-card {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border: 2px solid #A7F3D0;
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.mission-icon {
    font-size: 2.6rem;
    flex-shrink: 0;
    animation: pulse 2s infinite ease-in-out;
}

.mission-content {
    flex: 1;
}

.mission-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #065F46;
    background: #A7F3D0;
    padding: 3px 10px;
    border-radius: var(--radius-xl);
    display: inline-block;
    margin-bottom: 6px;
}

.mission-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #064E3B;
    margin-bottom: 4px;
}

.mission-desc {
    font-size: 0.95rem;
    color: #047857;
    margin-bottom: 12px;
}

.mission-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #059669;
    color: white;
    border-radius: var(--radius-xl);
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.3);
    transition: all 0.2s ease;
}

.mission-btn:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(5, 150, 105, 0.4);
}

.mission-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.fun-fact-banner {
    padding: 0;
}

.fact-box {
    background: linear-gradient(135deg, #FEF3C7 0%, #FFFBEB 100%);
    border: 2px solid #FDE68A;
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.fact-icon {
    font-size: 2.6rem;
    flex-shrink: 0;
}

.fact-box strong {
    display: block;
    font-size: 1.1rem;
    color: #92400E;
    margin-bottom: 4px;
}

.fact-box span {
    font-size: 0.95rem;
    color: #78350F;
    line-height: 1.5;
}

.fact-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
}

/* --- Category Hub Carousel / Grid (Na početnoj) --- */
.category-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 30px 0 50px;
}

.hub-tile {
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    text-decoration: none;
    color: var(--color-dark);
}

.hub-tile:hover {
    transform: translateY(-4px);
    border-color: #CBD5E1;
    box-shadow: var(--shadow-md);
}

.hub-tile:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.hub-tile-icon {
    font-size: 3rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
    transition: transform 0.3s ease;
}

.hub-tile:hover .hub-tile-icon {
    transform: scale(1.15) rotate(5deg);
}

.hub-tile-title {
    font-size: 1.15rem;
    font-weight: 900;
    margin-top: 4px;
}

.hub-tile-count {
    font-size: 0.8rem;
    font-weight: 800;
    color: #64748B;
    background: #F1F5F9;
    padding: 4px 10px;
    border-radius: var(--radius-xl);
}

.hub-tile-price:hover { border-color: #FF5A36; }
.hub-tile-enciklopedija:hover { border-color: #8338EC; }
.hub-tile-igre:hover { border-color: #00B4D8; }
.hub-tile-radionica:hover { border-color: #FF006E; }
.hub-tile-priroda:hover { border-color: #06D6A0; }

/* --- Content Sections --- */
.content-section {
    padding: 50px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 36px;
}

.section-icon {
    font-size: 3.2rem;
    display: block;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 8px;
    color: #0F172A;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 1.15rem;
    color: #64748B;
    font-weight: 600;
}

/* --- Cards Grid & Modern Bubble Cards --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

/* --- Cards --- */
.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid #E2E8F0;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #CBD5E1;
    box-shadow: var(--shadow-md);
}

.card:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.card-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.card-story .card-image { background: linear-gradient(135deg, #FFE0E6, #FFF0F5); }
.card-game .card-image { background: linear-gradient(135deg, #D4F0FF, #E8F7FF); }
.card-experiment .card-image { background: linear-gradient(135deg, #E0FFD4, #F0FFE8); }
.card-creative .card-image { background: linear-gradient(135deg, #FFE4D4, #FFF0E8); }
.card-nature .card-image { background: linear-gradient(135deg, #D4FFE0, #E8FFF0); }
.card-parents .card-image { background: linear-gradient(135deg, #E4D4FF, #F0E8FF); }
.card-encyclopedia .card-image { background: linear-gradient(135deg, #E0E7FF, #EEF2FF); }

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.card-tag-story { background: #FFE0E6; color: #D63384; }
.card-tag-game { background: #D4F0FF; color: #0C8599; }
.card-tag-experiment { background: #E0FFD4; color: #2B8A3E; }
.card-tag-creative { background: #FFE4D4; color: #C2410C; }
.card-tag-nature { background: #D4FFE0; color: #2F855A; }
.card-tag-parents { background: #E4D4FF; color: #6B21A8; }
.card-tag-encyclopedia { background: #E0E7FF; color: #3730A3; }

/* --- Encyclopedia styling --- */
.encyclopedia-hero-img {
    width: 100%;
    max-height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    background: #0F172A;
}

.encyclopedia-hero-img img,
.encyclopedia-hero-img svg {
    width: 100%;
    height: auto;
    display: block;
}

.article-diagram {
    width: 100%;
    margin: 25px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: #0F172A;
}

.article-diagram img,
.article-diagram svg {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Story Hero Image styling --- */
.story-hero-img {
    width: 100%;
    max-height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    background: #0F172A;
}

.story-hero-img img,
.story-hero-img svg {
    width: 100%;
    height: auto;
    display: block;
}

.story-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: var(--radius-xl);
    font-size: 0.95rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-top: 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.encyclopedia-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.encyclopedia-container h2 {
    font-size: 1.8rem;
    color: #1E1B4B;
    margin-bottom: 20px;
    border-left: 5px solid #4F46E5;
    padding-left: 16px;
}

.encyclopedia-container h3 {
    font-size: 1.4rem;
    color: #4338CA;
    margin-top: 30px;
    margin-bottom: 15px;
}

.encyclopedia-container p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #495057;
    margin-bottom: 16px;
}

.encyclopedia-didyouknow {
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 30px;
    border-left: 6px solid #4F46E5;
}

.encyclopedia-didyouknow h3 {
    margin-top: 0 !important;
    color: #312E81 !important;
    font-size: 1.3rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.encyclopedia-didyouknow ul {
    margin-left: 20px;
    color: #3730A3;
    line-height: 1.8;
}

.encyclopedia-didyouknow li {
    margin-bottom: 8px;
}

.encyclopedia-box {
    background: #F8FAFC;
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 20px 0;
    border: 1px solid #E2E8F0;
}

.encyclopedia-box h4 {
    color: #1E293B;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.vocab-box {
    background: #FFFBEB;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 25px;
    border-left: 5px solid #F59E0B;
}

.vocab-box h4 {
    color: #92400E;
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.vocab-box ul {
    margin-left: 20px;
    color: #78350F;
}

.vocab-box li {
    margin-bottom: 6px;
    line-height: 1.7;
}

.quiz-cta-box {
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 30px;
    text-align: center;
    border: 2px dashed #10B981;
}

.quiz-cta-box h3 {
    margin-top: 0 !important;
    color: #065F46 !important;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.quiz-cta-box p {
    color: #047857 !important;
    margin-bottom: 15px !important;
}

.quiz-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #059669;
    color: white !important;
    border-radius: var(--radius-xl);
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quiz-cta-btn:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-body h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.card-body p {
    color: #6C757D;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.card-meta {
    font-size: 0.85rem;
    color: #ADB5BD;
    font-weight: 600;
}

/* --- Quiz Section --- */
.quiz-section {
    padding: 60px 0;
}

.quiz-container {
    background: linear-gradient(135deg, var(--color-purple), #7C3AED);
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    text-align: center;
    color: white;
}

.quiz-container h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.quiz-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.quiz-area {
    max-width: 600px;
    margin: 0 auto;
}

.quiz-question {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quiz-option {
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.03);
}

.quiz-option.correct {
    background: rgba(6, 214, 160, 0.5);
    border-color: #06D6A0;
}

.quiz-option.wrong {
    background: rgba(239, 68, 68, 0.5);
    border-color: #EF4444;
}

.quiz-result {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    min-height: 30px;
}

.quiz-btn {
    margin-top: 24px;
}

.hidden { display: none !important; }

/* --- Footer --- */
.main-footer {
    background: linear-gradient(135deg, var(--color-dark), #1A1C2E);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.footer-brand p {
    opacity: 0.8;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* --- Page Hero (sekcije) --- */
.page-hero {
    padding: 50px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.page-hero::before {
    content: '🌟';
    position: absolute;
    font-size: 8rem;
    opacity: 0.15;
    top: -20px;
    right: 10%;
    animation: float 3s ease-in-out infinite;
}

.page-hero h1 { font-size: 2.6rem; font-weight: 900; margin-bottom: 10px; letter-spacing: -0.5px; }
.page-hero p { font-size: 1.25rem; opacity: 0.95; font-weight: 600; max-width: 600px; margin: 0 auto; }

/* --- Content Wrapper --- */
.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* --- Back Home --- */
.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #FFFFFF;
    color: #475569;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-xl);
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.back-home:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.back-home:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* --- Level & Age Selector (igre) --- */
.level-selector,
.age-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: nowrap;
}

.level-btn,
.age-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-family: var(--font-main);
    font-weight: 800;
    border: 2px solid #E2E8F0;
    background: white;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.level-btn.active,
.age-btn.active {
    background: #00B4D8;
    color: white;
    border-color: #0096C7;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.35);
}

.level-btn:hover:not(.active),
.age-btn:hover:not(.active) {
    transform: translateY(-2px);
    border-color: #CBD5E1;
    box-shadow: var(--shadow-md);
}

.level-btn:active,
.age-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* --- Category Bar (Compact Pills with Smooth Scroll on Mobile) --- */
.category-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-btn {
    min-height: 44px;
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 0.88rem;
    border: 2px solid #E2E8F0;
    background: #F8FAFC;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.category-btn:hover:not(.active) {
    background: #F1F5F9;
    border-color: #CBD5E1;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.category-btn.active {
    background: #FF5A36;
    color: white;
    border-color: #FF5A36;
    box-shadow: 0 4px 12px rgba(255, 90, 54, 0.35);
}

.category-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* --- Overlay избор категорије (игре): дугме + цео екран са плочицама --- */
.cat-picker-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 48px;
    padding: 10px 22px;
    border-radius: var(--radius-xl);
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1rem;
    border: 2px solid #E2E8F0;
    background: white;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    max-width: 100%;
}

.cat-picker-btn strong {
    color: var(--color-primary);
}

.cat-picker-btn:hover {
    transform: translateY(-2px);
    border-color: #CBD5E1;
    box-shadow: var(--shadow-md);
}

.cat-picker-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.cat-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cat-overlay.open {
    display: flex;
}

.cat-overlay-inner {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px;
    box-shadow: var(--shadow-lg);
}

.cat-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cat-overlay-header h2 {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--color-dark);
}

.cat-overlay-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #E2E8F0;
    background: #F8FAFC;
    font-size: 1.2rem;
    font-weight: 900;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.cat-overlay-close:hover {
    background: #FEE2E2;
    border-color: #FCA5A5;
    color: #DC2626;
}

.cat-overlay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 84px;
    padding: 12px 8px;
    border-radius: var(--radius-md);
    border: 2px solid #E2E8F0;
    background: #F8FAFC;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 0.9rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.cat-tile:hover {
    transform: translateY(-2px);
    border-color: #CBD5E1;
    background: white;
    box-shadow: var(--shadow-md);
}

.cat-tile:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.cat-tile.active {
    background: #FFF1EE;
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 3px 10px rgba(255, 90, 54, 0.2);
}

.cat-tile-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.cat-tile-label {
    line-height: 1.2;
    text-align: center;
}

@media (max-width: 768px) {
    .cat-overlay {
        padding: 0;
        align-items: stretch;
    }
    .cat-overlay-inner {
        max-width: none;
        max-height: none;
        border-radius: 0;
        padding: 16px 12px;
    }
    .cat-overlay-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cat-tile {
        min-height: 72px;
    }
}

/* --- Audio Player „Послушај причу" (MP3 Player) --- */
.story-audio-player {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto 25px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 2px solid #FDBA74;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.sap-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1rem;
    color: #9A3412;
}

.sap-icon {
    font-size: 1.3rem;
    line-height: 1;
    display: inline-block;
}

.story-audio-player.playing .sap-icon {
    animation: pulse 1.2s infinite ease-in-out;
}

.sap-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sap-time {
    font-size: 0.8rem;
    font-weight: 700;
    color: #9A3412;
    min-width: 40px;
    font-variant-numeric: tabular-nums;
}

.sap-time-end {
    text-align: right;
}

.sap-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #FED7AA;
    outline: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sap-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #EA580C;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease;
}

.sap-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.sap-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #EA580C;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sap-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.sap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sap-btn:hover {
    transform: scale(1.08);
}

.sap-btn-seek {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFFFFF;
    color: #9A3412;
    border: 1px solid #FED7AA;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.12);
}

.sap-btn-seek svg {
    width: 20px;
    height: 20px;
}

.sap-btn-play,
.sap-btn-pause {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EA580C, #F97316);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

.sap-btn-play:hover,
.sap-btn-pause:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.45);
}

.sap-btn-play svg,
.sap-btn-pause svg {
    width: 28px;
    height: 28px;
}

/* Мобилни: центриран компактан плејер */
@media (max-width: 768px) {
    .story-audio-player {
        max-width: 400px;
        gap: 10px;
        padding: 14px 16px;
    }
    .sap-btn-seek {
        width: 36px;
        height: 36px;
    }
    .sap-btn-seek svg {
        width: 19px;
        height: 19px;
    }
    .sap-btn-play,
    .sap-btn-pause {
        width: 52px;
        height: 52px;
    }
    .sap-btn-play svg,
    .sap-btn-pause svg {
        width: 26px;
        height: 26px;
    }
}

/* --- Animations --- */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes floatCloud {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(30px); }
}

/* --- Age Filter / Category Filter Controls --- */
.filter-section {
    margin: 10px 0 32px;
    text-align: center;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: center;
    align-items: center;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    border: 2px solid #E2E8F0;
    background: white;
    color: #475569;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.filter-btn:hover {
    border-color: #D63384;
    color: #D63384;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.filter-btn.active {
    background: linear-gradient(135deg, #D63384 0%, #E91E63 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(214, 51, 132, 0.3);
    transform: translateY(-2px);
}

.filter-btn .badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 12px;
    background: #F1F5F9;
    color: #475569;
    transition: all 0.2s ease;
}

.filter-btn.active .badge-count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.filter-empty-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    background: #FFF7ED;
    border: 2px dashed #FDBA74;
    border-radius: var(--radius-lg);
    color: #9A3412;
    font-size: 1.15rem;
    font-weight: 700;
    display: none;
}

/* --- Таблет опсег (769–1024px): компактнија навигација у једном реду --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .logo-tagline { display: none; }
    .logo-icon { font-size: 1.6rem; }
    .logo-text h1 { font-size: 1rem; }
    .logo { gap: 6px; }
    .nav-link {
        padding: 5px 7px;
        font-size: 0.72rem;
        gap: 3px;
    }
    .main-nav > ul { gap: 3px; }
    .nav-stars-badge { padding: 4px 8px; font-size: 0.7rem; gap: 4px; }
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }

    /* Минимално мобилно заглавље: без слогана и beta беџа */
    .logo-tagline { display: none; }
    .logo-text h1::after { display: none; }
    .logo-icon { font-size: 1.9rem; }
    .logo-text h1 { font-size: 1.25rem; }
    .main-header { padding: 8px 0; }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
    }
    
    .main-nav.active { transform: translateY(0); }
    
    .main-nav > ul {
        flex-direction: column;
        gap: 8px;
    }
    
    .nav-link {
        text-align: center;
    }
    
    .hero-title { font-size: 1.7rem; white-space: nowrap; }
    .hero-subtitle { font-size: 1.05rem; }
    
    .cards-grid { grid-template-columns: 1fr; }
    
    .fun-fact-box { flex-direction: column; text-align: center; }
    
    .quiz-options { grid-template-columns: 1fr; }
    
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    
    .social-links { justify-content: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.35rem; white-space: nowrap; }
    .section-header h2 { font-size: 1.5rem; }
    .quiz-container { padding: 30px 20px; }
}

/* --- Tally.so Feedback Dugme у футеру --- */
.footer-feedback-btn {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-feedback-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* --- Навигација: Бројач звездица (⭐) --- */
.nav-stars-item {
    display: flex;
    align-items: center;
}

.nav-stars-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #FFD166, #FF9F1C);
    color: #5C3D00;
    padding: 5px 12px;
    border-radius: var(--radius-xl);
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(255, 209, 102, 0.4);
    border: 2px solid #FFF3BF;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
    user-select: none;
}

.nav-stars-badge.star-pop {
    animation: starPopAnim 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes starPopAnim {
    0% { transform: scale(1); }
    50% { transform: scale(1.35) rotate(10deg); box-shadow: 0 8px 24px rgba(255, 209, 102, 0.8); }
    100% { transform: scale(1); }
}

/* --- Ознака „⭐ Решено / Прочитано” на картицама --- */
.card {
    position: relative;
}

.card-completed-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #06D6A0, #05B386);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 10px rgba(6, 214, 160, 0.4);
    z-index: 3;
    pointer-events: none;
    animation: badgeAppear 0.4s ease;
}

@keyframes badgeAppear {
    0% { opacity: 0; transform: scale(0.6); }
    100% { opacity: 1; transform: scale(1); }
}

/* --- Toast Нотификације за беџеве и звездице --- */
.dp-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 360px;
}

.dp-toast {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
    border-left: 6px solid var(--color-primary);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
}

.dp-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.dp-toast-icon {
    font-size: 2rem;
    flex-shrink: 0;
    animation: bounceIcon 1s infinite alternate;
}

@keyframes bounceIcon {
    from { transform: translateY(0); }
    to { transform: translateY(-4px); }
}

.dp-toast-title {
    font-weight: 800;
    font-size: 1rem;
    color: var(--color-dark);
    margin-bottom: 2px;
}

.dp-toast-desc {
    font-size: 0.85rem;
    color: #6C757D;
    line-height: 1.3;
}

/* --- Mobile Floating Bottom Navigation Bar (Thumb-Friendly Kids UI) --- */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 12px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 2px solid #E2E8F0;
    z-index: 998;
    padding: 6px 12px;
}

.bottom-nav-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bottom-nav-item {
    flex: 1;
    text-align: center;
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    border-radius: var(--radius-md);
    color: #64748B;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.75rem;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav-icon {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.bottom-nav-link:hover .bottom-nav-icon,
.bottom-nav-link.active .bottom-nav-icon {
    transform: scale(1.2);
}

.bottom-nav-link.active {
    color: var(--color-primary);
    background: #FFF1EE;
}

/* --- Reader Font Size & Mode Controls (Приче и Енциклопедија) --- */
.reader-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-xl);
    padding: 8px 16px;
    margin-bottom: 24px;
    gap: 12px;
    flex-wrap: wrap;
}

.reader-label {
    font-weight: 800;
    font-size: 0.9rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reader-btn-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

.reader-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 0.85rem;
    color: #334155;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.reader-btn:hover {
    background: #F1F5F9;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.reader-btn:active,
.reader-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(255, 90, 54, 0.3);
    transform: translateY(0);
}

.font-size-small { font-size: 1rem !important; line-height: 1.7 !important; }
.font-size-medium { font-size: 1.15rem !important; line-height: 1.85 !important; }
.font-size-large { font-size: 1.35rem !important; line-height: 2 !important; }

/* --- Shared Game UI (Tactile Buttons & Viewport Fit) --- */
.game-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    box-shadow: var(--shadow-md);
    border: 2px solid #E2E8F0;
    margin-bottom: 24px;
    text-align: center;
}

.game-container h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.instruction {
    font-size: 1.05rem;
    color: #64748B;
    margin-bottom: 20px;
    line-height: 1.6;
}

.score-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 2px solid rgba(0, 0, 0, 0.05);
}

.score-item {
    font-size: 1.05rem;
    font-weight: 800;
}

.score-item span {
    font-size: 1.35rem;
    font-weight: 900;
}

.btn-game {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 1.15rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-game:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.btn-game:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* --- Responsive Updates for Mobile First Kids UI --- */
@media (max-width: 768px) {
    body {
        padding-bottom: 84px; /* Space for bottom nav */
    }
    .page-hero {
        padding: 30px 16px;
    }
    .page-hero h1 {
        font-size: 1.8rem;
    }
    .page-hero p {
        font-size: 1rem;
    }
    .content-wrapper {
        padding: 16px 12px;
    }
    .game-container {
        padding: 20px 14px;
        border-radius: var(--radius-md);
    }
    .score-bar {
        padding: 10px 12px;
        margin-bottom: 14px;
    }
    .score-item {
        font-size: 0.9rem;
    }
    .score-item span {
        font-size: 1.15rem;
    }
    .level-selector,
    .age-bar {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 6px;
        margin-bottom: 12px;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }
    .level-btn,
    .age-btn {
        flex: 1 1 auto;
        padding: 6px 10px;
        font-size: 0.8rem;
        border-radius: var(--radius-lg);
        text-align: center;
    }
    .category-bar {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 4px 6px 8px;
        margin-bottom: 14px;
        scrollbar-width: none;
    }
    .category-bar::-webkit-scrollbar {
        display: none;
    }
    .category-btn {
        flex-shrink: 0;
        padding: 5px 12px;
        font-size: 0.82rem;
    }
    .bottom-nav {
        display: block;
    }
    .main-nav {
        display: none !important; /* Replaced by bottom nav on mobile for simpler navigation */
    }
    .mobile-menu-btn {
        display: none !important;
    }
    .hub-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    /* Компактне hub плочице: 3 колоне × 2 реда, само икона + назив */
    .category-hub-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin: 16px 0 24px;
    }
    .hub-tile {
        padding: 12px 6px;
        gap: 4px;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
    }
    .hub-tile-icon { font-size: 2rem; }
    .hub-tile-title { font-size: 0.9rem; margin-top: 0; }
    .hub-tile-count { display: none; }

    /* Мања херој секција на мобилном */
    .hero { padding: 28px 16px 22px; }
    .hero-title { font-size: 1.5rem; margin-bottom: 10px; white-space: nowrap; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 18px; }
    .hero-buttons { gap: 10px; }
    .hero-buttons .btn { padding: 12px 20px; font-size: 1rem; }
    .hero-buttons .btn-purple { display: none; } /* 2 дугмета на мобилном */
    .hero-decoration { display: none; }

    /* Мисија дана и „Знаш ли да?" — компактне картице */
    .quick-hub-section { padding: 10px 0 4px; }
    .daily-mission-card,
    .fact-box { padding: 14px 16px; gap: 12px; }
    .mission-icon, .fact-icon { font-size: 1.9rem; }
    .mission-title { font-size: 1rem; }
    .mission-desc { font-size: 0.85rem; margin-bottom: 8px; }
    .fact-box strong { font-size: 0.98rem; }
    .fact-box span { font-size: 0.87rem; }

    .content-section { padding: 28px 0; }
    .section-header { margin-bottom: 20px; }
    .section-icon { font-size: 2.2rem; }
    .section-header h2 { font-size: 1.5rem; }
    .section-header p { font-size: 0.95rem; }
}

/* --- „Погледај све →" сажимање секција на почетној --- */
.section-collapsible .card.dp-extra-card {
    display: none;
}

.section-collapsible.expanded .card.dp-extra-card {
    display: flex;
}

.see-all-wrap {
    text-align: center;
    margin-top: 20px;
}

.see-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 24px;
    background: white;
    color: #475569;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-xl);
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.see-all-btn:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.see-all-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* ========================================
   Фаза 3: Компактне картице на мобилном
   ======================================== */
.card-body h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

@media (max-width: 768px) {
    .card-image {
        height: 140px;
        font-size: 3.6rem;
    }
    .card-body {
        padding: 14px 16px;
    }
    .card-body h3 {
        font-size: 1.05rem;
        margin-bottom: 6px;
    }
    /* Опис сакривамо на мобилном — слика + наслов + једна мета линија */
    .card-body p {
        display: none;
    }
    .card-tag {
        margin-bottom: 8px;
        font-size: 0.7rem;
    }
    .card-meta {
        font-size: 0.8rem;
    }
    .cards-grid {
        gap: 14px;
    }
}

/* ========================================
   Фаза 5: Приступачност — focus, reduced-motion
   ======================================== */
:focus-visible {
    outline: 3px solid var(--color-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

.nav-link:focus-visible,
.btn:focus-visible,
.level-btn:focus-visible,
.category-btn:focus-visible,
.cat-tile:focus-visible,
.cat-picker-btn:focus-visible,
.see-all-btn:focus-visible {
    outline: 3px solid var(--color-blue);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .logo-icon,
    .cloud,
    .mission-icon,
    .dp-toast-icon,
    .page-hero::before {
        animation: none !important;
    }
}

/* ========================================
   Фаза 6: Странице садржаја на мобилном
   ======================================== */
@media (max-width: 768px) {
    /* Бочна трака „Још из рубрике" → хоризонтални скрол ред */
    .sidebar {
        padding: 16px 14px !important;
        border-radius: var(--radius-md) !important;
    }
    .sidebar h3 {
        font-size: 1.05rem !important;
        margin-bottom: 12px !important;
    }
    .sidebar .sidebar-link {
        display: inline-flex !important;
        align-items: center;
        min-height: 44px;
        padding: 10px 16px !important;
        margin: 0 8px 8px 0 !important;
        white-space: nowrap;
        font-size: 0.88rem;
        border-radius: var(--radius-xl) !important;
        border: 2px solid #E2E8F0;
    }
    .sidebar .sidebar-link:hover {
        transform: none !important;
    }

    /* Компактнији футер: рубрике у 2 колоне */
    .main-footer {
        padding: 28px 0 14px;
    }
    .footer-content {
        gap: 20px;
        margin-bottom: 20px;
    }
    .footer-brand p {
        font-size: 0.85rem;
    }
    .footer-links ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 12px;
        justify-items: center;
    }
    .footer-links li {
        margin-bottom: 4px;
    }
    .footer-links a {
        font-size: 0.88rem;
        display: inline-flex;
        align-items: center;
        min-height: 36px;
    }
    .footer-bottom {
        font-size: 0.75rem;
    }

    /* Мања page-hero секција без емоџи-воденог жига */
    .page-hero::before {
        display: none;
    }
}
