/* --- ANA RENKLER VE DEĞİŞKENLER --- */
:root {
    --primary: #8a2be2;      /* Neon Mor */
    --secondary: #ff0055;    /* Neon Pembe */
    --bg-dark: #0b0b0b;      /* Arka Plan */
    --card-bg: #161616;      /* Kartlar */
    --text-main: #ffffff;
    --text-gray: #aaaaaa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NAVBAR --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: rgba(22, 22, 22, 0.95);
    border-bottom: 2px solid #222;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 26px;
    font-weight: 900;
    color: white;
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: var(--secondary);
}

.search-box {
    background: #222;
    border: 1px solid #444;
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    width: 300px;
    outline: none;
    transition: 0.3s;
}

.search-box:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

/* --- GENEL BUTONLAR --- */
.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    display: inline-block;
}

.btn-login { background: transparent; color: white; border: 1px solid #444; }
.btn-register { background: var(--primary); color: white; }
.btn:hover { opacity: 0.8; transform: translateY(-2px); }

/* --- HERO SLIDER --- */
.hero-slider {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: none;
    align-items: center;
    padding: 0 10%;
}

.hero-slide.active {
    display: flex;
    animation: fadeIn 0.8s;
}

.hero-content {
    max-width: 600px;
}

/* --- MANGA GRID & KARTLAR --- */
.container {
    padding: 40px 5%;
}

.main-layout {
    display: flex;
    gap: 30px;
    padding: 40px 5%;
}

.content-area { flex: 3; }
.sidebar { flex: 1; }

.manga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.manga-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
    border: 1px solid #222;
}

.manga-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.card-img-container {
    position: relative;
    height: 250px;
}

.manga-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--secondary);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.manga-info {
    padding: 15px;
}

.manga-title {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.manga-chapter {
    color: var(--text-gray);
    font-size: 13px;
}

/* --- SIDEBAR ÖGELERİ --- */
.history-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: 0.2s;
}

.history-item:hover { background: #222; }

.history-img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.history-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

/* --- SAYFALAMA --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    background: #222;
    color: white;
    border: 1px solid #444;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

/* --- FOOTER --- */
footer {
    background: #080808;
    padding: 60px 5%;
    text-align: center;
    border-top: 1px solid #222;
    margin-top: 50px;
}

/* --- ANIMASYONLAR --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- MOBİL AYARLAR --- */
@media screen and (max-width: 768px) {
    .main-layout { flex-direction: column; }
    .search-box { display: none; }
    .manga-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
/* REKLAM ALANLARI */
.ad-container {
    width: 100%;
    max-width: 728px; /* Standart Leaderboard boyutu */
    margin: 30px auto; /* Ortalama ve boşluk */
    background: #111; /* Reklam yüklenmezse arka plan */
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px dashed #333;
    overflow: hidden;
}

.ad-text { color: #444; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }

/* Mobilde taşmasın diye */
@media screen and (max-width: 768px) {
    .ad-container { max-width: 320px; min-height: 50px; }
}