/*
 * RyuuManga - Main Stylesheet
 */

:root {
    --bg:     #0a0a0f;
    --bg2:    #0f0f1a;
    --red:    #e63946;
    --cyan:   #00d4ff;
    --gold:   #ffd700;
    --text:   #ffffff;
    --text2:  #a0a0b8;
    
    --neon-red:  0 0 10px rgba(230, 57, 70, 0.5), 0 0 20px rgba(230, 57, 70, 0.3);
    --neon-cyan: 0 0 10px rgba(0, 212, 255, 0.5), 0 0 20px rgba(0, 212, 255, 0.3);
    --glass: rgba(255, 255, 255, 0.05);
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

ul { list-style: none; }

/* Effects Placeholder - Handled via JS and effects.css */
.pointer-events-none { pointer-events: none; }
.fixed { position: fixed; }
.inset-0 { top: 0; left: 0; right: 0; bottom: 0; }
.z-10 { z-index: 10; }
.overflow-hidden { overflow: hidden; }

/* Header */
.site-header {
    background: var(--bg2);
    border-bottom: 2px solid var(--glass);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    font-size: 1.8rem;
    text-transform: uppercase;
}

.logo .ryuu { color: var(--text); }
.logo .manga { color: var(--red); text-shadow: var(--neon-cyan); }

/* Navigation */
.main-navigation ul {
    display: flex;
    gap: 1.5rem;
}

.main-navigation a {
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.main-navigation a:hover {
    color: var(--cyan);
    text-shadow: var(--neon-cyan);
}

/* Header Search */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    position: relative;
}

.search-box input {
    background: var(--glass);
    border: 1px solid var(--glass);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: #fff;
    width: 200px;
    transition: 0.3s;
}

.search-box input:focus {
    width: 250px;
    outline: none;
    border-color: var(--cyan);
    box-shadow: var(--neon-cyan);
}

.search-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: var(--bg2);
    border: 1px solid var(--glass);
    border-top: none;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.search-dropdown.active { display: block; }

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger-bar {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(to bottom, rgba(16, 16, 26, 0.8), var(--bg)), url('../images/dragon-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    text-shadow: var(--neon-red);
}

.hero .glow-text { color: var(--red); }

.hero-search {
    margin: 2rem 0;
    width: 100%;
    max-width: 600px;
    position: relative;
}

.hero-search input {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 30px;
    border: 2px solid var(--glass);
    background: rgba(15, 15, 26, 0.7);
    color: #fff;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
}

.hero-search input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: var(--neon-red);
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-primary {
    background: var(--red);
    color: #fff;
    box-shadow: var(--neon-red);
}

.btn-primary:hover {
    filter: brightness(1.2);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--glass);
    border: 1px solid var(--cyan);
    color: var(--cyan);
}

.btn-secondary:hover {
    box-shadow: var(--neon-cyan);
    transform: translateY(-3px);
}

/* Section Title */
.section-title {
    margin: 3rem 0 1.5rem;
    border-left: 4px solid var(--red);
    padding-left: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title h2 {
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.view-all {
    color: var(--red);
    font-size: 0.9rem;
    font-weight: 700;
}

/* Manga Grid */
.manga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.manga-card {
    background: var(--bg2);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: 0.3s;
    border: 1px solid var(--glass);
}

.manga-card:hover {
    transform: scale(1.05);
    border-color: var(--cyan);
    box-shadow: var(--neon-cyan);
}

.manga-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.manga-info {
    padding: 0.8rem;
}

.manga-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Inter', sans-serif;
}

.manga-card .status {
    font-size: 0.75rem;
    color: var(--text2);
    text-transform: uppercase;
}

/* Genres */
.genre-select {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

.genre-pill {
    background: var(--bg2);
    border: 1px solid var(--glass);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
}

.genre-pill:hover, .genre-pill.active {
    background: var(--red);
    border-color: var(--red);
    box-shadow: var(--neon-red);
}

/* Support Banner */
.support-banner {
    background: linear-gradient(45deg, var(--bg2), #1a1a2e);
    border: 2px solid var(--gold);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.support-banner h2 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.support-banner p {
    color: var(--text2);
    margin-bottom: 2rem;
}

/* Manga Detail */
.manga-detail {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    padding-top: 2rem;
}

.detail-cover img {
    width: 100%;
    border-radius: 10px;
    border: 2px solid var(--glass);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.detail-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--red);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    background: var(--bg2);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.detail-meta strong { color: var(--cyan); margin-right: 0.5rem; }

.detail-desc {
    color: var(--text2);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.chapter-list {
    background: var(--bg2);
    border: 1px solid var(--glass);
    border-radius: 10px;
}

.chapter-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--glass);
    transition: 0.3s;
}

.chapter-item:last-child { border-bottom: none; }

.chapter-item:hover {
    background: rgba(230, 57, 70, 0.1);
    color: var(--red);
}

/* Footer */
.site-footer {
    background: var(--bg2);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    border-top: 4px solid var(--red);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-logo .ryuu { color: #fff; }
.footer-logo .manga { color: var(--red); }

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass);
    color: var(--text2);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 991px) {
    .menu-toggle { display: flex; }
    .main-navigation .menu-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg);
        justify-content: center;
        align-items: center;
        transition: 0.3s;
        z-index: 1000;
    }
    .main-navigation .menu-wrapper.active { right: 0; }
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }
    .main-navigation a { font-size: 1.5rem; }
    .footer-container { grid-template-columns: 1fr; }
    .manga-detail { grid-template-columns: 1fr; }
    .detail-cover { max-width: 300px; margin: 0 auto; }
}
