* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #ffffff;
}

.container {
    width: 70%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Add padding to body to prevent content from going under sidebars */
body {
    padding-left: 280px;
    padding-right: 280px;
}

/* Ensure sidebar doesn't overlap nav */
.ad-sidebar {
    top: 0;
    padding-top: 80px;
}

nav {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-left: 280px;
    margin-right: 280px;
}

nav .container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

nav a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #1d4ed8;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

article {
    padding: 0 0 60px;
    flex: 1;
    min-width: 0;
}

article p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #444;
}

article h2 {
    font-size: 2rem;
    color: #2563eb;
    margin: 2.5rem 0 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

article h3 {
    font-size: 1.5rem;
    color: #3b82f6;
    margin: 2rem 0 1rem;
    font-weight: 600;
    line-height: 1.4;
}

article ul,
article ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

article li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: #444;
}

article blockquote {
    border-left: 4px solid #2563eb;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: #f0f7ff;
    font-style: italic;
    color: #555;
}

.article-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 2.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: block;
}

.article-image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    font-style: italic;
}

footer {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
    margin-top: 60px;
}

footer p {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
}

footer nav {
    background-color: transparent;
    border-bottom: none;
    padding: 0;
    box-shadow: none;
    position: static;
}

footer nav .container {
    padding: 0;
}

footer nav a {
    color: #64748b;
    font-size: 0.9rem;
}

footer nav a:hover {
    color: #2563eb;
}

/* Container: sol kolon */
.ad-sidebar {
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 10px 0;
    position: fixed;
    top: 0;
    height: 100vh;
    overflow: hidden;
    z-index: 50;
    background-color: #ffffff;
    padding: 20px 15px;
}

.ad-sidebar-left {
    left: 0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.ad-sidebar-right {
    right: 0;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
}

/* Her reklam kartı */
.ad-box {
    background: #f8fafc;
    /* açık gri (default) */
    border-radius: 18px;
    padding: 22px 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    /* Prevents overflow in some browsers */
    text-decoration: none;
    color: inherit;
}

/* İçerik hizalama */
.ad-box .icon {

    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.ad-box .icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.ad-box .title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #111;
    text-align: center;
}

.ad-box .desc {
    font-size: 14px;
    color: #555;
    text-align: center;
    line-height: 1.4;
}

/* Hover efekti */
.ad-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Farklı kart arka plan renkleri (istenirse) */
.ad-box.blue {
    background: #e3f2fd;
}

.ad-box.pink {
    background: #ffe7ef;
}

.ad-box.purple {
    background: #f3e8ff;
}

.ad-box.lightblue {
    background: #e6f3ff;
}

.ad-box.gray {
    background: #f1f5f9;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 40px 20px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    article h2 {
        font-size: 1.6rem;
    }

    article h3 {
        font-size: 1.3rem;
    }

    article p {
        font-size: 1rem;
    }

    .container {
        width: 90%;
        padding: 0 15px;
    }

    .content-wrapper {
        flex-direction: column;
    }
}

/* Tablet ve Mobil görünüm (1000px altı) */
@media (max-width: 1000px) {
    body {
        padding-left: 0;
        padding-right: 0;
        /* Top ve Bottom sliderlar için boşluk bırak */
        padding-top: 70px;
        padding-bottom: 70px;
    }

    nav {
        margin-left: 0;
        margin-right: 0;
        /* Top slider'ın hemen altına yapışması için */
        top: 70px;
    }

    .ad-sidebar {
        width: 100%;
        height: 70px;
        /* Slider yüksekliği */
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        /* Slider olması için wrap kapatıldı */
        overflow-x: scroll;
        /* Yatay scroll - scroll kullan ki her zaman scrollbar olsun */
        overflow-y: hidden;
        position: fixed;
        z-index: 1000;
        background-color: #ffffff;
        padding: 10px;
        gap: 10px;
        /* Scrollbar gizleme */
        -ms-overflow-style: none;
        scrollbar-width: none;
        left: 0;
        right: 0;
        /* Smooth scrolling */
        /* Smooth scrolling - animasyon için kaldırıldı */
        -webkit-overflow-scrolling: touch;
        /* Touch için momentum scrolling */
        /* Touch action - yatay kaydırmayı etkinleştir */
        touch-action: pan-x;
        /* İçeriğin genişliğini zorla */
        min-width: 100%;
        /* Animasyon performansı için */
        will-change: scroll-position;
    }

    .ad-sidebar::-webkit-scrollbar {
        display: none;
    }

    .ad-sidebar-left {
        top: 0;
        bottom: auto;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .ad-sidebar-right {
        bottom: 0;
        top: auto;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
    }

    .ad-box {
        min-width: 200px;
        /* Her kutu için minimum genişlik - artırıldı */
        width: 200px;
        flex: 0 0 200px;
        /* Sabit genişlik, küçülmesin */
        padding: 8px 15px;
        margin: 0;
        height: calc(100% - 16px);
        display: flex;
        align-items: center;
        justify-content: center;
        /* Kaydırma için gerekli - kesinlikle küçülmesin */
        flex-shrink: 0;
        flex-grow: 0;
        /* Link olduğu için touch action - yatay kaydırmaya izin ver */
        touch-action: pan-x pan-y;
        /* Hem yatay hem dikey kaydırmaya izin ver */
    }

    /* İstenen gizlemeler */
    .ad-box .icon,
    .ad-box .desc {
        display: none;
    }

    .ad-box .title {
        font-size: 14px;
        margin: 0;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    article h2 {
        font-size: 1.4rem;
    }

    article h3 {
        font-size: 1.2rem;
    }
}