/* ===============================
   HERO SECTION
================================ */
.page-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg,#0f172a,#020617);
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.page-hero h1 {
    font-size: 40px;
    color: #38bdf8;
}

.page-hero p {
    opacity: .7;
    margin-top: 8px;
}

/* ===============================
   SECTION
================================ */
.manga-section {
    padding: 50px 20px;
}

/* ===============================
   SEARCH + FILTER CONTROLS
================================ */
.manga-controls {
    max-width: 900px;
    margin: 0 auto 50px auto;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.manga-controls input,
.manga-controls select {
    padding: 14px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 15px;
    outline: none;
    transition: 0.3s ease;
}

/* Input width */
.manga-controls input {
    width: 300px;
}

/* Hover + Focus Effects */
.manga-controls input:focus,
.manga-controls select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(56,189,248,.3);
}

/* Dropdown arrow fix for dark theme */
.manga-controls select {
    cursor: pointer;
    appearance: none;
}

/* Option background fix (important for dark theme) */
.manga-controls select option {
    background: #0f172a;
    color: white;
}

/* ===============================
   GRID
================================ */
.manga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

/* ===============================
   CARD
================================ */
.manga-card {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    overflow: hidden;
    transition: .3s;
    border: 1px solid rgba(255,255,255,.1);
}

.manga-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(99,102,241,.3);
}

/* IMAGE */
.manga-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* INFO CONTAINER */
.manga-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1; /* ensures button stays at bottom */
}

/* TITLE */
.manga-info h3 {
    color: #38bdf8;
    margin: 0;
    font-size: 20px;
}

/* GENRE */
.manga-info .genre {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* RATING */
.manga-info .rating {
    color: #facc15;
    font-weight: bold;
    font-size: 14px;
}

/* BUTTON */
.read-btn {
    margin-top: auto; /* push to bottom */
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(90deg,#38bdf8,#6366f1);
    color: white;
    cursor: pointer;
    transition: .3s;
    font-size: 14px;
}

.read-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99,102,241,.4);
}

/* ===============================
   NO RESULTS
================================ */
.no-results {
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    grid-column: 1 / -1; /* span full width */
}

/* MINI KNOWLEDGE CARDS */
.knowledge-categories {
    padding: 30px 15px;
    max-width: 1200px;
    margin: auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.article-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: .3s;
    backdrop-filter: blur(8px);
    cursor: default; /* since no button */
}

.article-card span {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.article-card h3 {
    margin-bottom: 5px;
    font-size: 14px;
    color: #38bdf8;
}

.article-card p {
    font-size: 12px;
    opacity: 0.75;
    margin: 0;
}