/* ============================================================
   GENEL AYARLAR
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

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

/* ============================================================
   HEADER
   ============================================================ */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    font-size: 24px;
    margin: 0;
}

header h1 a {
    color: white;
    text-decoration: none;
}

header nav a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    padding: 6px 15px;
    border-radius: 20px;
    transition: background 0.3s;
    font-weight: 500;
}

header nav a:hover {
    background: rgba(255,255,255,0.2);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: #2d3436;
    color: #b2bec3;
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
}

/* ============================================================
   REKLAM ALANLARI
   ============================================================ */
.reklam-alani {
    margin: 15px 0;
    text-align: center;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ddd;
    overflow: hidden;
}

.reklam-alani-728x90 {
    min-height: 70px;
    max-width: 728px;
    margin: 10px auto;
}

.reklam-alani-300x250 {
    min-height: 200px;
    max-width: 300px;
    margin: 10px auto;
}

/* ============================================================
   KATEGORİ BANNER (ONLINE.PHP)
   ============================================================ */
.kategori-banner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.kategori-banner .kat-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.kategori-banner .kat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-color: #6c5ce7;
}

.kategori-banner .kat-item .kat-resim {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    background: #f0f0f0;
}

.kategori-banner .kat-item .kat-bilgi {
    padding: 15px;
    text-align: center;
}

.kategori-banner .kat-item .name {
    font-weight: 700;
    font-size: 16px;
    display: block;
}

.kategori-banner .kat-item .count {
    font-size: 13px;
    color: #888;
    display: block;
    margin-top: 2px;
}

/* ============================================================
   BOYAMA GRİD (GENEL)
   ============================================================ */
.boyama-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.boyama-kart {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.boyama-kart:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.boyama-kart a {
    text-decoration: none;
    color: #333;
    display: block;
}

.boyama-kart img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #f0f0f0;
}

.boyama-kart h4 {
    padding: 12px 15px 5px;
    font-size: 15px;
}

.boyama-kart .online-etiketi {
    display: inline-block;
    padding: 3px 12px;
    margin: 0 15px 12px;
    background: #6c5ce7;
    color: white;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
}

.boyama-kart .gosterim {
    font-size: 12px;
    color: #999;
    padding: 0 15px 12px;
    display: block;
}

/* ============================================================
   SLIDER - ÖNERİLEN BOYAMALAR
   ============================================================ */
.onerilen-slider {
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    overflow: hidden;
}

.onerilen-slider .baslik {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.onerilen-slider .baslik h3 {
    font-size: 18px;
    color: #2d3436;
    margin: 0;
}

.onerilen-slider .baslik .btn-tumunu-gor {
    background: #6c5ce7;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s;
}

.onerilen-slider .baslik .btn-tumunu-gor:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108,92,231,0.3);
}

.slider-konteynir {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 16px;
    will-change: transform;
}

.slider-item {
    flex: 0 0 calc(25% - 12px);
    min-width: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: 0.3s;
}

.slider-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.slider-item a {
    display: block;
    text-decoration: none;
    color: #333;
}

.slider-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f0f0f0;
}

.slider-item .item-bilgi {
    padding: 10px 12px;
}

.slider-item .isim {
    font-weight: 600;
    display: block;
    font-size: 14px;
}

.slider-item .kategori {
    font-size: 12px;
    color: #888;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    z-index: 2;
    transition: 0.3s;
}

.slider-btn:hover {
    background: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.slider-btn.prev {
    left: 6px;
}

.slider-btn.next {
    right: 6px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: 0.3s;
    padding: 0;
}

.slider-dots .dot.active {
    background: #6c5ce7;
    width: 24px;
    border-radius: 10px;
}

.slider-progress {
    margin-top: 8px;
    height: 3px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.slider-progress .progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6c5ce7, #764ba2);
    transition: width 0.4s ease;
}

/* ============================================================
   POPÜLER BOYAMALAR
   ============================================================ */
.populer-boyamalar {
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.populer-boyamalar .baslik {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.populer-boyamalar .baslik h3 {
    font-size: 18px;
    color: #2d3436;
    margin: 0;
}

.populer-boyamalar .baslik .btn-tumunu-gor {
    background: #e17055;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s;
}

.populer-boyamalar .baslik .btn-tumunu-gor:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(225,112,85,0.3);
}

.populer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.populer-item {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.populer-item:hover {
    transform: translateY(-5px);
    border-color: #e17055;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.populer-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

.populer-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f0f0f0;
}

.populer-item .item-bilgi {
    padding: 10px 12px;
    text-align: center;
}

.populer-item .isim {
    font-size: 14px;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.populer-item .kategori {
    font-size: 11px;
    color: #888;
}

.populer-item .goruntulenme {
    font-size: 11px;
    color: #e17055;
    font-weight: 600;
    display: block;
    margin-top: 4px;
}

.reklam-arasi {
    grid-column: 1 / -1;
    margin: 10px 0;
}

/* ============================================================
   FOOTER SABİT REKLAM (inline stillerle zaten)
   ============================================================ */
/* inline style kullanıldığı için burada ekstra stil gerekmez */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .populer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .slider-item {
        flex: 0 0 calc(33.33% - 12px);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    header nav a {
        margin: 5px 10px;
        display: inline-block;
    }
    .boyama-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .boyama-kart img {
        height: 150px;
    }
    .populer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .slider-item {
        flex: 0 0 calc(50% - 8px);
    }
    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    .kategori-banner {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    .kategori-banner .kat-item .kat-resim {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .boyama-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .boyama-kart img {
        height: 120px;
    }
    .populer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .populer-item img {
        height: 100px;
    }
    .slider-item {
        flex: 0 0 calc(50% - 8px);
    }
    .slider-item img {
        aspect-ratio: 1 / 1;
    }
    .kategori-banner {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .kategori-banner .kat-item .kat-resim {
        height: 80px;
    }
    .kategori-banner .kat-item .kat-bilgi {
        padding: 10px;
    }
    .onerilen-slider .baslik h3,
    .populer-boyamalar .baslik h3 {
        font-size: 16px;
    }
}