:root {
    --primary-pink: #f8c8dc;
    --primary-purple: #e0b0ff;
    --sky-blue: #b3e5fc;
    --white: #ffffff;
    --text-main: #4a4a4a;
    --glass: rgba(255, 255, 255, 0.4);
    --glass-heavy: rgba(255, 255, 255, 0.7);
    --shadow: 0 8px 32px rgba(224, 176, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', 'SF Pro', -apple-system, sans-serif;
    color: var(--text-main);
    background: #f48fb1;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-heavy);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--primary-pink), var(--primary-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.brand-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #5e35b1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-toggle {
    background: none;
    border: 1px solid var(--primary-purple);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #5e35b1;
    cursor: pointer;
    font-weight: 600;
}

.btn-pill {
    padding: 0.7rem 1.4rem;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(45deg, #ff80ab, #ba68c8);
    color: white;
}

.btn-white {
    background: white;
    color: #5e35b1;
    box-shadow: var(--shadow);
}

.btn-glass {
    background: var(--glass);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.5);
    color: #5e35b1;
}

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

/* Hero */
.hero {
    position: relative;
    padding: 3rem 1.5rem 0rem; /* Reduced bottom padding for full body image */
    text-align: left;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #311b92;
    font-weight: 800;
}

.hero p {
    font-size: 1.1rem;
    color: #5c6bc0;
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.hero-visuals {
    position: relative;
    height: 300px;
    margin-top: 1rem;
    pointer-events: none;
}

.mascot-img {
    width: 200px;
    position: absolute;
    right: -20px;
    bottom: -15px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.cloud-img {
    width: 120px;
    position: absolute;
    left: -20px;
    bottom: 20px;
    opacity: 0.6;
}

.star-img {
    width: 35px;
    position: absolute;
    right: 105px; 
    bottom: 110px;
    z-index: 3;
}

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

.floating { animation: float 3s ease-in-out infinite; }
.floating-delayed { animation: float 4s ease-in-out infinite 0.5s; }

/* Sections */
.section {
    padding: 2rem 1.5rem;
}

.section-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #4527a0;
    font-weight: 700;
}

/* Quick Access Grid */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.quick-card {
    background: var(--glass-heavy);
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.4);
}

.quick-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5rem;
}

.quick-card span {
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-small {
    padding: 0.4rem 1rem;
    border-radius: 15px;
    border: none;
    background: var(--primary-pink);
    color: #ad1457;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
}


/* Library */
.library-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-bar input {
    width: 100%;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    border: 1px solid var(--primary-purple);
    background: var(--glass-heavy);
    font-size: 1rem;
    outline: none;
}

.tabs-container {
    overflow-x: auto;
    margin: 1rem -1.5rem;
    padding: 0 1.5rem;
    scrollbar-width: none;
}

.tabs-container::-webkit-scrollbar { display: none; }

.tabs {
    display: flex;
    gap: 0.8rem;
    width: max-content;
}

.tab-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    border: none;
    background: var(--glass);
    color: #5e35b1;
    font-weight: 600;
    cursor: pointer;
}

.tab-btn.active {
    background: var(--primary-purple);
    color: white;
}

.filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filters select {
    padding: 0.5rem;
    border-radius: 10px;
    border: 1px solid var(--primary-pink);
    background: white;
    font-size: 0.85rem;
    flex: 1;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.content-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.content-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    background: #f0f0f0;
}

.content-info {
    padding: 0.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.content-info .btn-small {
    margin-top: auto;
    width: 100%;
}

/* Kids Mode */
.kids-mode-card {
    background: linear-gradient(135deg, #f06292 0%, #ff8a65 100%);
    border-radius: 24px;
    padding: 1.5rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kids-mode-info h3 {
    margin-bottom: 0.3rem;
}

.kids-mode-info p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Switch styling */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider { background-color: #2e7d32; }
input:checked + .slider:before { transform: translateX(22px); }

/* Footer */
.footer {
    padding: 2rem 1.5rem;
    text-align: center;
    background: rgba(255,255,255,0.5);
    margin-top: 2rem;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    text-decoration: none;
    color: #5e35b1;
    font-size: 0.85rem;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        align-items: center;
        padding: 5rem 10% 0;
        min-height: 70vh;
    }
    
    .hero h1 { font-size: 4rem; }
    
    .hero-visuals {
        height: 500px;
        flex: 1;
    }

    .mascot-img { 
        width: 380px; 
        right: -60px; 
        bottom: -40px; 
        top: auto; 
    }

    .cloud-img { width: 200px; bottom: 100px; }
    
    .star-img { 
        width: 65px; 
        right: 210px; 
        bottom: 215px; 
        top: auto;
    }

    .quick-grid { grid-template-columns: repeat(6, 1fr); }
    .library-grid { grid-template-columns: repeat(4, 1fr); }
    
    .section { padding: 4rem 10%; }
}