/* 
 * 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: #b39ddb;
    --theme-purple: #4b0082;
    --theme-red: #ff424d;
    --theme-white: #f5f5f5;
    --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-purple);
    -webkit-font-smoothing: antialiased;
}

.gap-y-20 {
    row-gap: 3rem !important;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Navigation --- */
.navbar-wrapper {
    position: sticky;
    top: 0;
    z-index: 2000;
    background-color: var(--theme-bg);
    border-bottom: 3px solid var(--theme-purple);
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--theme-purple);
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 28px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7) !important;
}

.navbar-brand img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-item {
    text-decoration: none;
    color: var(--theme-purple);
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 18px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7) !important;
}

/* --- Dropdown --- */
.dropdown-container { position: relative; }
.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: 15px;
    z-index: 1000;
}
.dropdown-container:hover .dropdown-menu { display: flex; }
.dropdown-menu.right { left: auto; right: 0; }

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}

.dropdown-item {
    text-decoration: none;
    color: var(--theme-purple);
    font-weight: 800;
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--theme-purple);
    color: #ffffff;
}

.nav-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

/* --- Section Headers --- */
.section-header {
    margin: 40px 0 20px;
    border-bottom: 3px solid var(--theme-purple);
    width: 100%;
}

.section-title {
    color: var(--theme-white);
    font-weight: 800;
    font-size: 26px;
    display: inline-block;
}

/* --- Comic Cards --- */
.comic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.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-white);
    font-weight: 500;
    font-size: 14px;
    text-align: center;
}

.card-patreon-tag {
    color: var(--theme-red);
    font-weight: 700;
    margin-right: 4px;
}

.card-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 13px;
    color: #ffc107;
    font-weight: 800;
    margin-top: -15px;
}

/* --- Footer --- */
.footer {
    padding: 30px 0;
    text-align: center;
    background-color: #d1c4e9;
    margin-top: 100px;
    width: 100%;
}

.footer-text {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-text a {
    color: var(--theme-purple);
    text-decoration: none;
    font-weight: 800;
}

.footer-text a:hover {
    text-decoration: underline;
}

.emoji {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

/* --- Slider --- */
.swiper-home-slider {
    padding: 20px 0 !important;
}

.swiper-button-prev, .swiper-button-next { color: #fff !important; transform: scale(0.6); }

.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: #fff !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%);
    }
}

/* --- PhotoSwipe Custom Navigation --- */
.pswp__img { cursor: default !important; }
.pswp__zoom-wrap { cursor: default !important; }

.pswp__button--arrow--prev, 
.pswp__button--arrow--next {
    width: 50% !important;
    height: 100% !important;
    top: 0 !important;
    margin-top: 0 !important;
    background: rgba(0,0,0,0) !important;
    transition: background 0.2s ease !important;
    z-index: 1 !important; /* Keep arrows below standard UI buttons */
}

/* Ensure UI buttons (Close, Zoom, etc.) are above our custom invisible arrows */
.pswp__button--close,
.pswp__button--zoom,
.pswp__button--share,
.pswp__button--fs {
    z-index: 10 !important;
}

.pswp__button--arrow--prev { left: 0 !important; cursor: pointer !important; }
.pswp__button--arrow--next { right: 0 !important; cursor: pointer !important; }

.pswp__button--arrow--prev:hover { background: rgba(255,255,255,0.02) !important; }
.pswp__button--arrow--next:hover { background: rgba(255,255,255,0.02) !important; }

/* --- 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; }
}
