/* /css/home.css */

/* =========================================
   1. ACTION BANNERS
   ========================================= */
.action-banner-container {
    display: flex; flex-direction: column; gap: 12px;
    padding: 10px 16px; margin-bottom: 20px;
}
.ab-card {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    background-color: rgba(255, 255, 255, 0.08); padding: 16px;
    border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative; overflow: hidden;
}
.ab-left { display: flex; align-items: center; gap: 16px; overflow: hidden; min-width: 0; }
.ab-bar { width: 4px; height: 36px; border-radius: 8px; background-color: rgba(255, 255, 255, 0.2); flex-shrink: 0; }
.ab-text-grid { display: flex; flex-direction: column; justify-content: center; overflow: hidden; min-width: 0; }
.ab-title { color: #ffffff; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; margin-bottom: 2px; }
.ab-subtitle { color: #a1a1aa; font-size: 13px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 20px; border-radius: 9999px;
    font-size: 14px; font-weight: 600; color: white; text-decoration: none;
    white-space: nowrap; flex-shrink: 0; transition: transform 0.2s, opacity 0.2s;
}
.ab-btn:active { transform: scale(0.96); }
.ab-btn i { font-size: 16px; }
.btn-report { background-color: #ff3b5c; }
.btn-discord { background-color: #5865f2; }
.btn-kofi { background-color: #ff5E5b; }

/* =========================================
   2. TRENDING SECTION
   ========================================= */
.trending-section { padding: 0 0 30px 0; }
.section-header { padding: 0 16px; margin-bottom: 12px; }
.section-title { font-size: 20px; font-weight: 800; color: #fff; margin: 0; }

.trending-track {
    display: flex; gap: 12px; overflow-x: auto; padding: 0 16px; padding-bottom: 10px;
    scrollbar-width: none;
}
.trending-track::-webkit-scrollbar { display: none; }
.trending-card { flex: 0 0 150px; display: flex; flex-direction: column; cursor: pointer; }
.trending-poster-wrapper {
    position: relative; width: 100%; height: 220px;
    border-radius: 12px; overflow: hidden; margin-bottom: 8px; background: #222;
}
.trending-img { width: 100%; height: 100%; object-fit: cover; }
.badge-container {
    position: absolute; top: 8px; left: 8px;
    display: flex; flex-wrap: wrap; gap: 4px; max-width: 95%;
}
.badge {
    font-size: 10px; font-weight: 600; padding: 3px 8px;
    border-radius: 6px; color: white; box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.badge.manhwa { background-color: #2b2b2b; }
.badge.completed { background-color: #d32f2f; }
.badge.new { background-color: #000; }
.badge.english { background-color: rgba(30, 30, 30, 0.85); backdrop-filter: blur(4px); }

.trending-footer { display: flex; align-items: flex-start; gap: 8px; }
.rank-number {
    font-size: 42px; font-weight: 900; color: #fff; line-height: 0.8; 
    min-width: 25px; margin-top: 4px;
}
.trending-info { display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.trending-title {
    color: white; font-size: 13px; font-weight: 700; line-height: 1.3; margin-bottom: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.trending-genres { color: #9ca3af; font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =========================================
   3. ERIS STYLE GRID (Ongoing/Completed)
   ========================================= */
.eris-section {
    padding: 10px 0 30px 0;
}

.eris-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px 12px 4px; /* 4px Padding to align with Latest Updates */
}

.eris-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1;
}

.eris-view-all {
    font-size: 13px;
    font-weight: 500;
    color: #a1a1aa;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.eris-view-all:hover { color: #fff; }

.eris-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 4px; /* 4px Padding to align with Latest Updates */
}

@media (min-width: 640px) { .eris-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .eris-grid { grid-template-columns: repeat(5, 1fr); } }

.eris-card { display: flex; flex-direction: column; width: 100%; cursor: pointer; }

.eris-poster-box {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 4px; /* Sharper Corners */
    overflow: hidden;
    margin-bottom: 8px;
    background: #1a1a1a;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.eris-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.eris-card:hover .eris-img { transform: scale(1.05); }

.eris-badges {
    position: absolute; top: 6px; left: 6px;
    display: flex; flex-direction: column; gap: 4px; z-index: 2;
}

.eb-row { display: flex; gap: 4px; }

.eb-tag {
    font-size: 9px;
    font-family: sans-serif;
    font-weight: 700;
    color: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    text-transform: capitalize;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.eb-new { background: #1a1a1a; border: 1px solid #333; }
.eb-type { background: #333; }
.eb-completed { background: #d93025; }
.eb-ongoing { background: #0d6efd; }
.eb-lang { background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); }

.eris-card-title {
    font-size: 14px; font-weight: 700; color: #fff; margin: 0 0 2px 0;
    line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

.eris-card-genres {
    font-size: 11px; color: #9aa0a6; margin: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* =========================================
   4. EXTRA SECTIONS (Restored to prevent errors)
   ========================================= */
/* Continue Reading */
.continue-card {
    display: flex; gap: 12px; background: rgba(255,255,255,0.05);
    padding: 10px; border-radius: 8px; margin-bottom: 10px;
}
.continue-card img { width: 50px; height: 70px; object-fit: cover; border-radius: 4px; }
.continue-card h4 { margin: 0 0 5px 0; font-size: 14px; color: #fff; }

/* Sidebar / Ranking */
.sidebar-section { margin-bottom: 30px; padding: 0 16px; }
.sidebar-section-header {
    display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
    padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-section-title { font-size: 18px; font-weight: 700; color: #fff; margin: 0; }
.ranking-list { display: flex; flex-direction: column; gap: 12px; }
.ranking-item { display: flex; gap: 10px; align-items: center; }
.ranking-rank { font-size: 20px; font-weight: 800; color: #555; width: 25px; text-align: center; }

/* =========================================
   5. ANNOUNCEMENT SLIDER (Clean Version)
   ========================================= */
.announcement-section {
    padding: 0 16px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.ann-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    scrollbar-width: none;
}
.ann-track::-webkit-scrollbar { display: none; }
