
:root {
    --c-primary: #FF6B6B;
    --c-secondary: #4ECDC4;
    --c-purple: #6C5CE7;
    --c-text: #2D3436;
    --bg-body: #FFFFFF;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Nunito', sans-serif;
    color: var(--c-text);
    background-color: #FAFAFA !important;
    min-height: 100vh;
    overflow-x: hidden;
}

/* HEADER */
.kid-header {
    background: linear-gradient(180deg, #4FACFE 0%, #00F2FE 100%);
    padding-top: 0.5rem;
    position: relative;
    overflow: hidden;
}
.header-content {
    max-width: 1400px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.5rem 2rem 3.5rem 2rem; position: relative; z-index: 2;
}
.kid-nav-right { display: flex; gap: 1rem; }
.kid-nav-btn {
    background: #FFF; padding: 0.6rem 1.2rem; border-radius: 50px;
    font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1rem;
    color: #0077b6; text-decoration: none; box-shadow: 0 5px 0 rgba(0,0,0,0.1);
    transition: all 0.2s;
}
.kid-nav-btn:hover { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,0.1); }
.header-wave {
    position: absolute; bottom: -1px; left: 0; width: 100%;
    transform: rotate(180deg); line-height: 0;
}
.header-wave svg { display: block; width: calc(100% + 1.3px); height: 50px; }
.header-wave .shape-fill { fill: #FAFAFA; }

/* MAIN CONTENT */
.main-wrapper { max-width: 1200px; margin: 0 auto; padding: 20px 1.5rem; }
.main-title {
    font-family: 'Fredoka', sans-serif; font-size: 3.5rem; text-align: center;
    margin-bottom: 3rem; color: #4FACFE; text-shadow: 2px 2px 0 rgba(0,0,0,0.05);
}
.main-title span { color: var(--c-primary); }

/* CATEGORY GRID */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.cat-card {
    border-radius: 30px;
    padding: 2rem 1rem;
    text-align: center;
    text-decoration: none;
    color: #FFF;
    border: 4px solid #FFF;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.cat-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.2); }
.cat-card h2 { font-family: 'Fredoka', sans-serif; font-size: 1.6rem; margin-bottom: 0.5rem; text-shadow: 1px 1px 0 rgba(0,0,0,0.1); }
.cat-card p { font-weight: 700; font-size: 1rem; opacity: 0.9; }

.cat-paper { background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%); }
.cat-coloring { background: linear-gradient(135deg, #4ECDC4 0%, #55E6C1 100%); }
.cat-learn { background: linear-gradient(135deg, #FAD961 0%, #F76B1C 100%); }
.cat-holiday { background: linear-gradient(135deg, #A18CD1 0%, #FBC2EB 100%); }

/* STORY CARD (LATEST & BESTSELLERS) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}
.story-card {
    background: #FFF; border-radius: 25px; overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); border: 3px solid #E0E0E0;
    display: flex; flex-direction: column; transition: all 0.3s ease;
    height: 100%;
}
.story-card:hover { border: 3px solid var(--c-secondary); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

/* RESIM ALANI DAHA UZUN YAPILDI (200px'den 320px'e cikarildi) */
.card-img-wrapper { 
    width: 100%; 
    height: 320px; 
    overflow: hidden; 
    flex-shrink: 0; 
}
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.story-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-body { 
    padding: 1.5rem; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}

/* BASLIK MAKSIMUM 2 SATIR, ACIKLAMA YOK */
.card-title { 
    font-family: 'Fredoka', sans-serif; 
    font-size: 1.3rem; 
    margin-bottom: 1rem; 
    color:#333; 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: 2.6em; /* 2 satir boyu sabitleme */
}

.download-btn {
    margin-top: auto; display: inline-block; padding: 10px 20px; background: var(--c-secondary);
    color: #FFF; text-decoration: none; font-weight: 800; border-radius: 50px;
    box-shadow: 0 4px 0 #29a39b; transition: 0.2s;
}
.download-btn:hover { background: #3ec1b8; transform: translateY(2px); box-shadow: 0 2px 0 #29a39b; }

/* KAYAN SLIDER (CAROUSEL) */
.carousel-window {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.carousel-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: scroll 40s linear infinite;
}
.carousel-track:hover {
    animation-play-state: paused;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.carousel-item {
    flex: 0 0 280px; 
    max-width: 280px;
}

@media (max-width: 900px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .category-grid { grid-template-columns: 1fr; }
    .header-content { flex-direction: column; }
    .kid-nav-right { flex-wrap: wrap; justify-content: center; }
}
