:root {
    --primary-color: #8b5cf6; 
    --primary-hover: #a855f7; 
    --bg-main: #1e1f22;       
    --bg-card: #2b2d31;       
    --text-main: #f2f3f5;     
    --text-dim: #b5bac1;
    --shadow-purple: 0 4px 15px rgba(139, 92, 246, 0.15); 
    --shadow-hover: 0 8px 25px rgba(168, 85, 247, 0.25);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: all 0.3s ease; 
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--bg-card);
    border-bottom: 1px solid #111214;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo { 
    font-size: 22px; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}
.logo span { 
    color: var(--primary-color); 
    display: block; 
    font-size: 14px; 
}

nav ul { 
    display: flex; 
    list-style: none; 
    gap: 25px; 
    margin: 0; 
    padding: 0; 
}
nav ul li a { 
    font-size: 15px; 
    font-weight: 600; 
    color: var(--text-dim); 
}
nav ul li a:hover, nav ul li a.active {
    color: var(--text-main);
    text-shadow: 0 0 10px var(--primary-color);

}

.header-icons { 
    display: flex; 
    gap: 20px; 
    font-size: 18px; 
    cursor: pointer; 
}
.header-icons span:hover { 
    color: var(--primary-color); 
}

.search-container {
    display: flex;
    align-items: center;
    background: #111214;
    border-radius: 20px;
    padding: 5px 15px;
    border: 1px solid #444;
}

#global-search {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    width: 150px;
}

#btn-search-trigger {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
}

.hero-slider {
    position: relative;
    height: 500px;
    background: linear-gradient(to right, rgba(30, 31, 34, 1) 40%, rgba(30, 31, 34, 0.4) 100%);
    overflow: hidden; 
}

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 5%;
    opacity: 0; 
    visibility: hidden;
    transition: opacity 0.8s ease-in-out;
}

.slide.active { 
    opacity: 1; 
    visibility: visible; 
}

.hero-content { 
    max-width: 550px; 
    z-index: 5;
}

.hero-content h1 { 
    font-size: 48px; 
    margin: 10px 0; 
    font-weight: 800; 
}

.hero-content p { 
    color: var(--text-dim); 
    margin-bottom: 25px; 
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tags { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 25px; 
}

.tags span {
    background: rgba(139, 92, 246, 0.2); 
    color: #c4b5fd;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.btn-start {
    background-color: var(--primary-color);
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: bold;
    box-shadow: var(--shadow-purple);
}

.btn-start:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    mask-image: linear-gradient(to left, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 70%, transparent 100%);
}

.slider-thumbnails {
    position: absolute;
    bottom: 30px;
    right: 5%;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.thumb {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
}

.thumb.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.genre-bar {
    background-color: var(--bg-card);
    padding: 15px 5%;
    display: flex;
    justify-content: center;
    gap: 30px;
    border-bottom: 1px solid #111214;
}

.btn-all-manga {
    color: var(--primary-color) !important;
    font-weight: bold;
}

.section-container { 
    padding: 40px 5%; 
}
.section-title { 
    font-size: 24px; 
    font-weight: 800; 
    margin-bottom: 25px; 
}

.manga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.manga-card {
    background: var(--bg-card);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.manga-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.manga-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* --- Footer Styles --- */
.site-footer {
    background-color: var(--bg-card);
    margin-top: 50px;
    border-top: 1px solid #111214;
    position: relative;
}

.footer-top {
    padding: 20px 5%;
    background-color: #1a1b1e; 
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.footer-links a {
    color: #666;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-main {
    padding: 40px 5%;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 100px;
    flex-wrap: wrap;
}

.footer-logo {
    font-size: 32px;
    font-weight: 900;
    color: #3b82f6;
    text-shadow: 2px 2px 0px #1e40af;
}

.footer-logo span {
    color: #ffffff;
    text-shadow: 2px 2px 0px #1e40af;
}

.footer-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.footer-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.footer-tags a {
    background: #1a1b1e;
    border: 1px solid #444;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-dim);
}

.footer-tags a:hover {
    border-color: var(--primary-color);
    color: #fff;
}

.footer-contact p {
    font-size: 14px;
    color: var(--text-dim);
    margin: 5px 0;
}

.footer-contact a {
    color: var(--primary-color);
}

.footer-bottom {
    padding: 20px 5%;
    text-align: left;
    font-size: 13px;
    color: #555;
    background-color: #111214;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        text-align: center;
    }
}