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

/* --- CSS Variables --- */
:root {
    --color-primary: #FF6B35;
    --color-secondary: #4ECDC4;
    --color-accent: #FFE66D;
    --color-purple: #9B5DE5;
    --color-pink: #F15BB5;
    --color-blue: #00BBF9;
    --color-green: #06D6A0;
    --color-yellow: #FFD166;
    --color-dark: #2B2D42;
    --color-light: #FFF8F0;
    --color-white: #FFFFFF;
    
    --font-main: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* --- 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: linear-gradient(135deg, #FFF8F0 0%, #E8F4FD 50%, #FFF0F5 100%);
    color: var(--color-dark);
    line-height: 1.6;
    min-height: 100vh;
}

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: linear-gradient(135deg, var(--color-white) 0%, #F8F9FA 100%);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

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

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

.logo-icon {
    font-size: 2.5rem;
    animation: float 3s ease-in-out infinite;
}

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

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 900;
    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.75rem;
    color: #6C757D;
    font-weight: 600;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-link {
    display: block;
    padding: 10px 16px;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: transparent;
}

.nav-link:hover {
    background: linear-gradient(135deg, var(--color-accent), var(--color-yellow));
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* 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: 80px 20px 60px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.3;
}

.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: 700px;
    margin: 0 auto 35px;
    color: #495057;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    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.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #FF8C42);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-secondary), #6EE7DB);
    color: white;
}

.btn-fact {
    background: linear-gradient(135deg, var(--color-purple), #B07FF0);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-family: var(--font-main);
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-fact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- 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 --- */
.fun-fact-banner {
    padding: 30px 0;
}

.fact-box {
    background: linear-gradient(135deg, var(--color-accent), #FFF0AA);
    border-radius: var(--radius-lg);
    padding: 24px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-md);
}

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

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

.fact-box span {
    font-size: 1rem;
    color: #495057;
}

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

.fact-content .btn-fact {
    margin-top: 4px;
}

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

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

.section-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.1rem;
    color: #6C757D;
}

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

/* --- Cards --- */
.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.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-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-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;
}

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

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

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    
    .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: 2rem; }
    .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.6rem; }
    .section-header h2 { font-size: 1.5rem; }
    .quiz-container { padding: 30px 20px; }
}
