@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@0,700;1,700&display=swap');

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Comic Neue", "Comic Sans MS", sans-serif;
    font-weight: 700;
    line-height: 1.6;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(-45deg, #0f051d, #2d1b4d, #4b0082, #1a0a2e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Segoe UI Black", "Arial Black", sans-serif;
    color: #ffffff;
    letter-spacing: -0.5px;
}

/* Background Animation */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header & Navigation */
header {
    background-color: rgba(15, 5, 29, 0.9);
    color: #fff;
    padding: 1rem 0;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: #bb86fc;
}

/* Main Content */
main {
    flex: 1;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.hero {
    text-align: center;
    padding: 50px 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: rgba(15, 5, 29, 0.9);
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #4b0082;
    margin-top: 4rem;
}

footer p {
    font-size: 0.95rem;
    color: #9a8cbb;
}

/* Chapter List Styles */
.chapter-list {
    margin-top: 2rem;
}

.chapter-list h2 {
    margin-bottom: 1.5rem;
    color: #bb86fc;
    border-bottom: 2px solid #bb86fc;
    display: inline-block;
}

.chapters-grid {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 2rem auto 0;
    gap: 25px;
}

.chapter-item {
    background: rgba(45, 27, 77, 0.5);
    padding: 25px;
    border: 1px solid rgba(187, 134, 252, 0.3);
    border-radius: 15px;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.chapter-item:hover {
    transform: scale(1.05);
    border-color: #bb86fc;
    background: rgba(45, 27, 77, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.chapter-img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    border: 3px solid #bb86fc;
    box-shadow: 0 0 15px rgba(187, 134, 252, 0.4);
    flex-shrink: 0;
}

.chapter-info {
    flex: 1;
}

.release-date {
    font-size: 0.8rem;
    color: #bb86fc;
    margin-bottom: 12px;
    font-style: italic;
}

.summary {
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.4;
}

/* Character Card Styles */
.character-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 2rem;
}

.character-card {
    background: rgba(45, 27, 77, 0.5);
    padding: 25px;
    border: 1px solid rgba(187, 134, 252, 0.3);
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(5px);
}

.character-card:hover {
    transform: scale(1.03);
    border-color: #bb86fc;
    background: rgba(45, 27, 77, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.char-img {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #bb86fc;
    margin-bottom: 0;
    box-shadow: 0 0 15px rgba(187, 134, 252, 0.4);
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.char-img:hover {
    transform: scale(1.02);
}

.char-info {
    flex: 1;
}

/* Responsive: Stack vertically on small screens */
@media (max-width: 768px) {
    .character-grid {
        grid-template-columns: 1fr;
    }
    .character-card, .chapter-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .bio, .summary {
        text-align: center;
    }
    nav {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    nav ul li {
        margin: 5px 10px;
    }
}

.born {
    font-size: 0.8rem;
    color: #bb86fc;
    margin-bottom: 12px;
    font-style: italic;
}

.bio {
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.4;
    text-align: center;
}

/* Chapter Viewer Styles */
.comic-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 2rem 0;
}

.comic-page {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chapter-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.nav-btn {
    background-color: #bb86fc;
    color: #0f051d;
    padding: 14px 35px; /* Enlarged button size */
    text-decoration: none;
    border-radius: 35px; /* Enlarged border radius */
    font-family: "Comic Sans MS", cursive, sans-serif !important;
    font-weight: bold !important;
    font-size: 1.15rem; /* Enlarged font size */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(187, 134, 252, 0.3);
    text-align: center;
}

.nav-btn:hover {
    background-color: #fff;
    color: #0f051d;
    transform: translateY(-4px) scale(1.05); /* Advanced micro-animation */
    box-shadow: 0 10px 25px rgba(187, 134, 252, 0.6);
}

.page-info {
    color: #bb86fc;
    font-weight: bold;
    font-size: 1.2rem;
    align-self: center;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 5, 29, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid rgba(187, 134, 252, 0.5);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 3.5rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-lightbox:hover {
    color: #bb86fc;
}

/* Shop Page Styles */
.shop-section {
    padding: 2rem 0;
}
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 2rem;
}
.product-card {
    background: rgba(45, 27, 77, 0.4);
    border: 1px solid rgba(187, 134, 252, 0.3);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: #bb86fc;
    box-shadow: 0 15px 35px rgba(187, 134, 252, 0.3);
    background: rgba(45, 27, 77, 0.6);
}
.product-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 2px solid rgba(187, 134, 252, 0.2);
    aspect-ratio: 1 / 1;
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.coming-soon-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ff4081, #ff0055);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #fff;
}
.product-price {
    color: #03dac6;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 15px;
}
.product-desc {
    font-size: 0.95rem;
    color: #b0a5cf;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Social Media Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}
.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(187, 134, 252, 0.3);
    color: #fff;
    text-decoration: none;
    font-family: "Comic Sans MS", sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}
.social-btn:hover {
    background: rgba(187, 134, 252, 0.2);
    border-color: #bb86fc;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(187, 134, 252, 0.4);
}
.social-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Comic Reader Custom Elements */
.reader-mode-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}
.mode-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(187, 134, 252, 0.3);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-family: "Comic Sans MS", sans-serif;
    font-weight: bold;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}
.mode-toggle-btn.active {
    background: #bb86fc;
    color: #0f051d;
    border-color: #bb86fc;
    box-shadow: 0 0 15px rgba(187, 134, 252, 0.5);
}
.mode-toggle-btn:hover:not(.active) {
    background: rgba(187, 134, 252, 0.15);
    border-color: #bb86fc;
}
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(15, 5, 29, 0.8);
    z-index: 9999;
}
.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #bb86fc, #03dac6);
    box-shadow: 0 0 8px #bb86fc;
    transition: width 0.2s ease;
}
.webtoon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    gap: 0;
}
.webtoon-panel {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* Comments Section */
.comments-container {
    max-width: 800px;
    margin: 3rem auto 0;
    background: rgba(45, 27, 77, 0.3);
    border: 1px solid rgba(187, 134, 252, 0.2);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}
.comments-container h2 {
    color: #bb86fc;
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(187, 134, 252, 0.2);
    padding-bottom: 10px;
}
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}
.comment-input-row {
    display: flex;
    gap: 15px;
}
.comment-input-row input {
    flex: 1;
}
.comment-form input, .comment-form textarea {
    background: rgba(15, 5, 29, 0.6);
    border: 1px solid rgba(187, 134, 252, 0.3);
    border-radius: 12px;
    padding: 15px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.comment-form input:focus, .comment-form textarea:focus {
    outline: none;
    border-color: #03dac6;
    box-shadow: 0 0 10px rgba(3, 218, 198, 0.3);
}
.comment-submit-btn {
    align-self: flex-end;
    background: #bb86fc;
    color: #0f051d;
    border: none;
    padding: 14px 35px;
    border-radius: 35px;
    font-family: "Comic Sans MS", sans-serif;
    font-weight: bold;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(187, 134, 252, 0.3);
    transition: all 0.3s ease;
}
.comment-submit-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(187, 134, 252, 0.5);
}
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}
.comments-list::-webkit-scrollbar {
    width: 6px;
}
.comments-list::-webkit-scrollbar-track {
    background: rgba(15, 5, 29, 0.3);
}
.comments-list::-webkit-scrollbar-thumb {
    background: rgba(187, 134, 252, 0.5);
    border-radius: 3px;
}
.comment-card {
    background: rgba(15, 5, 29, 0.4);
    border-left: 4px solid #03dac6;
    border-radius: 0 12px 12px 0;
    padding: 15px 20px;
    animation: fadeInComment 0.5s ease both;
}
@keyframes fadeInComment {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
}
.comment-author {
    font-weight: bold;
    color: #bb86fc;
}
.comment-time {
    color: #9a8cbb;
}
.comment-text {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.4;
    word-break: break-word;
}
.no-comments {
    text-align: center;
    color: #9a8cbb;
    font-style: italic;
    padding: 20px 0;
}

/* Lightbox Info Panel */
.lightbox-details {
    margin-top: 15px;
    text-align: center;
    max-width: 600px;
    padding: 0 20px;
}
.lightbox-title {
    font-family: "Segoe UI Black", sans-serif;
    font-size: 1.5rem;
    color: #bb86fc;
    margin-bottom: 8px;
}
.lightbox-desc {
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.4;
}

/* Filter tabs on character page */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.filter-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(187, 134, 252, 0.3);
    color: #fff;
    padding: 12px 26px;
    border-radius: 25px;
    cursor: pointer;
    font-family: "Comic Sans MS", sans-serif;
    font-weight: bold;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}
.filter-tab.active {
    background: #bb86fc;
    color: #0f051d;
    border-color: #bb86fc;
    box-shadow: 0 0 12px rgba(187, 134, 252, 0.4);
}
.filter-tab:hover:not(.active) {
    background: rgba(187, 134, 252, 0.15);
    border-color: #bb86fc;
}

