/* Magic Manga — yagona neon uslub. Barcha sahifalar shu faylni ulaydi. */

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Orbitron', sans-serif; }
body {
    min-height: 100vh;
    background: linear-gradient(135deg, #020308 0%, #050b18 30%, #0b1230 70%, #020308 100%);
    background-attachment: fixed; color: #ffffff; overflow-x: hidden;
    display: flex; flex-direction: column;
}

.section { padding: 30px 60px; flex: 1; }
.hero-wrapper { display: grid; grid-template-columns: 2.6fr 1fr; gap: 25px; margin-bottom: 40px; }
.carousel-container { position: relative; height: 380px; overflow: hidden; border-radius: 20px; border: 1px solid rgba(34, 211, 238, 0.2); }
.carousel-track { display: flex; transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); height: 100%; }

.hero-slide {
    min-width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 50px; position: relative; z-index: 1; background-size: cover; background-position: center;
    text-decoration: none;
}
.hero-slide::before { 
    content: ""; position: absolute; inset: 0; 
    background: linear-gradient(90deg, rgba(0,0,0,0.95) 40%, rgba(0,0,0,0.6)); z-index: -1; 
}
.hero-info h1 { font-size: 32px; color: #22d3ee; margin-bottom: 12px; }
.hero-desc { font-size: 12px; color: #ccc; max-width: 400px; line-height: 1.6; margin-bottom: 20px; }
.hero-meta { display: flex; gap: 10px; font-size: 11px; margin-bottom: 15px; }
.hero-meta span { border: 1px solid #22d3ee; padding: 4px 12px; border-radius: 6px; color: #22d3ee; }
.hero-img img { width: 160px; height: 230px; border-radius: 12px; border: 2px solid #22d3ee; object-fit: cover; box-shadow: 0 0 25px rgba(34, 211, 238, 0.4); }

.sidebar-popular { background: rgba(10, 15, 30, 0.6); border-radius: 20px; padding: 20px; border: 1px solid rgba(34, 211, 238, 0.1); }
.sidebar-popular h3 { font-size: 14px; margin-bottom: 20px; color: #22d3ee; border-left: 4px solid #22d3ee; padding-left: 10px; }
.pop-item { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; text-decoration: none; color: inherit; transition: 0.3s; }
.pop-item:hover { transform: translateX(5px); }
.rank-num { font-size: 16px; font-weight: bold; min-width: 25px; color: #444; }
.pop-item img { width: 40px; height: 55px; border-radius: 5px; object-fit: cover; }
.pop-item h4 { font-size: 11px; color: #eee; }

.cards-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.manga-card-small {
    background: rgba(34, 211, 238, 0.04); border: 1px solid rgba(34, 211, 238, 0.15);
    border-radius: 15px; padding: 15px; display: flex; gap: 15px; transition: 0.3s; text-decoration: none; color: inherit;
}
.manga-card-small:hover { border-color: #22d3ee; background: rgba(34, 211, 238, 0.08); transform: translateY(-5px); }
.manga-card-small img { width: 90px; height: 130px; border-radius: 8px; object-fit: cover; }
.card-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card-info h2 { font-size: 13px; color: #fff; letter-spacing: 0.5px; }
.card-meta { font-size: 10px; color: #888; }
.card-meta span { color: #22d3ee; font-weight: bold; }
.card-tags { display: flex; gap: 6px; }
.card-tags b { font-size: 9px; background: rgba(34, 211, 238, 0.15); padding: 2px 8px; border-radius: 4px; color: #22d3ee; font-weight: 500; }




/* ===== Manga sahifasi (reader.php) ===== */
.container { 
    max-width: 850px; 
    margin: 40px auto; 
    padding: 0 20px; 
    flex: 1; 
    width: 100%; 
}
.back-btn { 
    display: inline-block; 
    margin-bottom: 20px; 
    color: #22d3ee; 
    text-decoration: none; 
    font-size: 12px; 
    transition: 0.3s; 
}
.back-btn:hover { text-decoration: underline; }

/* Manga Asosiy Bloki */
.manga-hero-box {
    background: rgba(11, 18, 48, 0.75);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 24px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.15);
    margin-bottom: 30px;
}

/* Kattaroq to'g'ri to'rtburchak rasm (Poster) */
.manga-poster {
    width: 240px;
    height: 340px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid #22d3ee;
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.5);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}
.manga-poster:hover {
    transform: scale(1.02);
}

.manga-title {
    color: #22d3ee;
    font-size: 28px;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}

.manga-meta {
    display: flex;
    gap: 15px;
    font-size: 11px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.manga-meta span {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    padding: 6px 14px;
    border-radius: 10px;
    color: #22d3ee;
}

.manga-desc {
    font-size: 12px;
    color: #ccc;
    line-height: 1.8;
    max-width: 700px;
}

/* Boblar Ro'yxati */
.chapters-list { 
    background: rgba(11, 18, 48, 0.75); 
    padding: 30px; 
    border-radius: 24px; 
    border: 1px solid rgba(34, 211, 238, 0.3); 
    backdrop-filter: blur(15px);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.1);
}
.chapters-list h3 { 
    color: #22d3ee; 
    margin-bottom: 20px; 
    font-size: 16px; 
    border-left: 4px solid #22d3ee; 
    padding-left: 10px; 
}
.chapter-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 14px 20px; 
    background: rgba(255,255,255,0.03); 
    margin-bottom: 12px; 
    border-radius: 12px; 
    color: #ccc; 
    text-decoration: none; 
    font-size: 12px; 
    transition: 0.3s; 
    border: 1px solid rgba(34, 211, 238, 0.1); 
}
.chapter-item:hover { 
    background: rgba(34, 211, 238, 0.12); 
    color: #22d3ee; 
    border-color: rgba(34, 211, 238, 0.5); 
    transform: translateX(6px); 
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
}

/* ===== Bob o'qish sahifasi (view.php) ===== */
.reader-nav a, .reader-nav span {
    color: #22d3ee;
    text-decoration: none;
    font-size: 12px;
}
.reader-nav a:hover { text-decoration: underline; }

.manga-pages {
    margin-top: 80px;
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-bottom: 50px;
}
.manga-pages img {
    width: 100%;
    height: auto;
    display: block;
}
.bottom-nav {
    display: flex;
    gap: 20px;
    padding: 30px;
}
.btn {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid #22d3ee;
    color: #22d3ee;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 11px;
    transition: 0.3s;
}
.btn:hover {
    background: #22d3ee;
    color: #000;
}
.btn.disabled {
    opacity: 0.4;
    pointer-events: none;
    border-color: #555;
    color: #555;
}

/* ===== Reader sahifasi uchun tuzatishlar ===== */
.reader-body { background: #020308; align-items: center; }
.reader-nav {
    position: fixed; top: 0; left: 0; right: 0; background: rgba(5, 10, 20, 0.9);
    backdrop-filter: blur(10px); padding: 15px 30px; display: flex;
    justify-content: space-between; align-items: center; gap: 10px;
    border-bottom: 1px solid rgba(34, 211, 238, 0.2); z-index: 1000;
}
.manga-pages { margin-top: 80px; max-width: 800px; width: 100%; display: flex; flex-direction: column; align-items: center; padding-bottom: 50px; }
.manga-pages img { width: 100%; height: auto; display: block; }
.bottom-nav { display: flex; gap: 20px; padding: 30px; flex-wrap: wrap; justify-content: center; }
.btn { display: inline-block; cursor: pointer; font-family: inherit; }

/* ===== Umumiy ===== */
.page-title { font-size: 22px; color: #22d3ee; margin-bottom: 20px; border-left: 4px solid #22d3ee; padding-left: 12px; text-shadow: 0 0 10px rgba(34, 211, 238, 0.4); }
.empty-note { color: #888; font-size: 12px; padding: 20px 0; }
.notice-box { margin: 80px auto; padding: 40px; max-width: 480px; text-align: center; background: rgba(11, 18, 48, 0.75); border: 1px solid rgba(34, 211, 238, 0.3); border-radius: 20px; }
.notice-box h2 { margin-bottom: 16px; font-size: 18px; }
.notice-box a { color: #22d3ee; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; align-items: center; }
.filter-bar select, .filter-bar input[type=text] {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(34, 211, 238, 0.3); color: #fff;
    padding: 9px 14px; border-radius: 10px; font-size: 11px; outline: none; font-family: inherit;
}
.filter-bar select option { background: #0b1230; }
.filter-bar button { background: #22d3ee; color: #000; border: none; padding: 10px 18px; border-radius: 10px; font-size: 11px; font-weight: bold; cursor: pointer; font-family: inherit; }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 35px; }
.page-btn { padding: 8px 14px; font-size: 11px; color: #22d3ee; text-decoration: none; border: 1px solid rgba(34, 211, 238, 0.3); border-radius: 8px; transition: 0.3s; }
.page-btn:hover, .page-btn.active { background: #22d3ee; color: #000; }
.page-dots { color: #666; padding: 8px 4px; font-size: 11px; }

.like-btn { margin-top: 18px; background: rgba(34, 211, 238, 0.1); border: 1px solid #22d3ee; color: #22d3ee; padding: 10px 22px; border-radius: 10px; cursor: pointer; font-family: inherit; font-size: 11px; transition: 0.3s; }
.like-btn:hover, .like-btn.liked { background: #22d3ee; color: #000; }








/* ===== Moslashuvchanlik ===== */
@media (max-width: 900px) {
    .hero-wrapper { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .section, footer { padding-left: 20px; padding-right: 20px; }
    .site-header { padding: 10px 16px; }
    .search-box input { width: 80px; }
    .header-right .nav-links:first-child { display: none; }
}
@media (max-width: 520px) {
    .hero-slide { padding: 24px; }
    .hero-img { display: none; }
    .hero-info h1 { font-size: 22px; }
    .cards-container { grid-template-columns: 1fr; }
    .search-box { display: none; }
}
