/*Body*/
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: radial-gradient(circle at center, #0b0028, #120034, #1a003d);
    background-attachment: fixed;
    background-size: cover;
    background-blend-mode: screen;
    color: #333;
}
html, body {
    position: relative;
    min-height: 100%;
    overflow-x: hidden;
}
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent url('https://www.transparenttextures.com/patterns/stardust.png') no-repeat center center fixed;
    background-size: cover;
    opacity: 0.3;
    z-index: -1;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 70%);
    z-index: -1;
}

/*Header*/
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 10;
}
.logo-title {
    display: flex;
    align-items: center;
}
.logo {
    width: 80px;
    margin-right: 10px;
}
.logo-title h1 {
    margin: 0;
}
.gradient-text {
    font-size: 3.5rem;
    font-weight: bold;
    background: linear-gradient(90deg, #eef107, #2619da);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
@media (max-width: 500px) {
    .gradient-text {
        font-size: 2.2rem;
    }
}
@media (max-width: 600px) {
    .comic-card img {
        height: auto;
    }
}
.section-title {
    padding: 20px 30px 10px;
    font-size: 20px;
    font-weight: bold;
    color: white;
}
.navbar {
    display: flex;
    justify-content: center;
    background-color: transparent;
    padding: 15px;
    border: 2px solid #222;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.nav-item {
    color: #bbb;
    text-decoration: none;
    font-weight: 500;
    margin: 0 20px;
    position: relative;
    transition: color 0.3s ease;
}
.nav-item:hover {
    color: black;
}
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #eef107, #2619da);
    border-radius: 5px;
}
.nav-item.active {
    color: black;
    font-weight: 700;
}

/*Login*/
#loginBtn {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}
#loginBtn:hover {
    background-color: #357ABD;
}
.user-section {
    position: relative;
    display: inline-block;
}
#userIcon {
    font-size: 30px;
    cursor: pointer;
}
#userCard {
    position: absolute;
    top: 35px;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
    width: 180px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}
.hidden {
    display: none;
}

/*Comic*/
.favorites-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}
.comic-card {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}
.comic-card:hover {
    transform: scale(1.02);
}
.comic-card img {
    width: 100px;
    height: 140px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 16px;
}
.comic-card h3 {
    margin: 0;
    font-size: 18px;
}
.comic-info p {
    margin: 4px 0;
    color: #555;
}
.loading {
    text-align: center;
    grid-column: 1 / -1;
}