/*
Theme Name: Madara
Theme URI: https://mangabooth.com/
Description: A highly optimized, custom-coded modern wrapper for the Madara Manga ecosystem.
Author: MangaBooth
Version: 1.0
Text Domain: madara
*/

/* --- THEME VARIABLES (These can now be changed in the Customizer!) --- */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --accent: #e50914; /* Default Red, changeable in menu */
    --text-main: #ffffff;
    --text-muted: #888888;
    --card-radius: 8px; /* Changeable in menu */
}

/* --- BASE STYLES --- */
body { background-color: var(--bg-dark); color: var(--text-main); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; padding: 0; line-height: 1.6;}
a { color: inherit; text-decoration: none; transition: 0.2s;}

/* --- HEADER --- */
.site-header { background: #000000; padding: 15px 40px; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #222;}
.header-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto;}
.site-logo a { font-size: 1.8rem; font-weight: 900; color: #fff; letter-spacing: -1px;}
.site-logo span { color: var(--accent); }
.site-nav a { margin-left: 25px; font-weight: 600; color: #aaa; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.5px;}
.site-nav a:hover { color: var(--accent); }

/* --- FRONT PAGE (MODERN) --- */
.hero-section {
    height: 55vh;
    min-height: 400px;
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: flex-end;
    padding: 60px 40px;
    position: relative;
}
/* This fixes the grey gradient issue you had! */
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,10,0.1) 0%, rgba(10,10,10,0.8) 60%, rgba(10,10,10,1) 100%);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; width: 100%;}
.hero-title { font-size: 3.5rem; margin: 10px 0; font-weight: 900; line-height: 1.1;}
.hero-meta { margin-bottom: 15px; font-weight: bold;}
.hero-meta span { margin-right: 20px; color: #ccc; background: rgba(255,255,255,0.1); padding: 5px 12px; border-radius: 20px; font-size: 0.9rem;}
.hero-excerpt { color: #bbb; font-size: 1.1rem; max-width: 600px; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;}
.btn-read { background: var(--accent); color: #fff !important; padding: 12px 30px; border-radius: var(--card-radius); font-weight: bold; display: inline-block; font-size: 1.1rem;}
.btn-read:hover { background: #fff; color: #000 !important; }
.badge { background: #ff3b30; color: #fff; padding: 4px 10px; border-radius: 4px; font-weight: bold; font-size: 0.8rem; text-transform: uppercase;}

/* Grid Layout Fixes */
.section-title { font-size: 2rem; border-left: 5px solid var(--accent); padding-left: 15px; margin: 40px auto 20px; max-width: 1200px;}
.manga-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; padding: 0 40px 60px; max-width: 1200px; margin: 0 auto; }
.manga-card { background: var(--bg-card); border-radius: var(--card-radius); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column;}
.manga-card:hover { transform: translateY(-8px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.manga-cover { position: relative; aspect-ratio: 2/3; background: #111; border-bottom: 2px solid var(--accent);}
.manga-cover img { width: 100%; height: 100%; object-fit: cover; display: block;}
.manga-badge { position: absolute; top: 10px; left: 10px; padding: 4px 8px; font-size: 0.75rem; font-weight: 900; border-radius: 3px; color: #fff; z-index: 5;}
.manga-badge.hot { background: #ff3b30; }
.manga-info { padding: 15px; display: flex; flex-direction: column; justify-content: space-between; flex-grow: 1;}
.manga-title { font-size: 1.1rem; margin: 0 0 10px 0; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;}
.manga-rating { color: #ffd700; font-weight: bold; font-size: 0.95rem; }