/* 
 * Elincia-BE Literal Clone - Ultra Minimalist
 * Follow-up: Simplified cards, no shadows, no white borders.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --theme-bg: #ffffff;
    --theme-cyan: #40e0d0;
    --theme-red: #e85d04;
    --theme-black: #000000;
    --border-black: 5px solid #000000;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--theme-bg);
    font-family: 'Inter', sans-serif;
    color: var(--theme-cyan);
    -webkit-font-smoothing: antialiased;
}

.gap-y-20 {
    row-gap: 3rem !important;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 10px;
}

/* --- Navigation --- */
.navbar-wrapper {
    position: static;
    z-index: 2000;
    background-color: var(--theme-bg);
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 30px 10px;
    gap: 25px;
    width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--theme-cyan);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 28px;
}

.navbar-brand img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-item {
    text-decoration: none;
    color: var(--theme-cyan);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
}

/* --- Dropdown --- */
.dropdown-container { 
    position: relative; 
    padding-bottom: 10px;
    margin-bottom: -10px;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08) !important; /* Refined, non-black border */
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important; /* Premium soft shadow */
    padding: 12px;
    width: 200px;
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
    z-index: 1000;
}
.dropdown-container:hover .dropdown-menu { display: flex; }
.dropdown-menu.right { left: auto; right: 0; }

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -20px; /* Big bridge to cover the gap */
    left: 0;
    width: 100%;
    height: 25px;
}

.dropdown-item {
    text-decoration: none;
    color: var(--theme-cyan);
    font-weight: 600;
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--theme-cyan);
}

.dropdown-item.logout-btn:hover {
    background-color: rgba(232, 93, 4, 0.08);
    color: #e85d04 !important;
}

.nav-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

/* --- Section Headers --- */
.section-header {
    margin: 20px 0 10px;
    border-bottom: 3px solid var(--theme-cyan) !important;
    width: 100%;
}

.section-title {
    color: var(--theme-black);
    font-weight: 600;
    font-size: 26px;
    display: inline-block;
}

/* --- Comic Cards --- */
.comic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    column-gap: 5px;
    row-gap: 40px;
}

.card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.card-box {
    border: 5px solid #000000;
    border-radius: 15px;
    overflow: hidden;
    background: #ffffff;
    width: 100%;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-img {
    width: 100%;
    height: auto;
    display: block;
}

.card-link:hover .card-box {
    transform: scale(1.04);
}

.card-title {
    color: var(--theme-black);
    font-weight: 500;
    font-size: 14px;
    text-align: center;
}

.card-patreon-tag {
    color: var(--theme-red);
    font-weight: 600;
}

.card-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 13px;
    color: #ffc107;
    font-weight: 600;
    margin-top: -15px;
}

/* --- Footer --- */
.footer {
    padding: 30px 0;
    text-align: center;
    background-color: #ffffff;
    margin-top: 100px;
    width: 100%;
}

.footer-text {
    color: var(--theme-black);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.footer-text a {
    color: var(--theme-cyan);
    text-decoration: none;
    font-weight: 600;
}

.footer-text a:hover {
    text-decoration: underline;
}

.emoji {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

/* --- Slider --- */
.swiper-home-slider, 
.swiper-series-slider, 
.swiper-short-slider, 
.swiper-games-slider {
    padding: 30px 12px !important;
    margin: -10px -12px !important;
}

.swiper-button-prev, .swiper-button-next { color: var(--theme-black) !important; transform: scale(0.6); }

.swiper-pagination-bullet {
    background: var(--theme-black) !important;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--theme-black) !important;
    opacity: 1;
}

@media (max-width: 1024px) {
    .container { padding: 0 15px; }
    .navbar { position: relative; }
    .navbar-brand img { margin: 10px 0; }
    #mobile-toggle {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
}


/* --- Sakura Floating Particles --- */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* Random Positions & Delays (Dynamic via CSS Variables) */
.particle {
    position: absolute;
    color: var(--color, #ffc0cb);
    opacity: 0.3;
    left: var(--left, 0%);
    animation: floaty var(--duration, 15s) linear infinite;
    animation-delay: var(--delay, 0s);
    filter: blur(0.5px);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.particle svg {
    width: var(--size, 20px);
    height: var(--size, 20px);
    fill: currentColor;
}

@keyframes floaty {
    0% { transform: translateY(110vh) rotate(0deg) translateX(0); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-10vh) rotate(720deg) translateX(40px); opacity: 0; }
}
