@charset "utf-8";

/* Dark Mode base styles with Fixed Background Fix for Mobile */
body {
    background-color: #191919 !important; /* Fallback color */
    color: #e0e0e0;
}

body::before {
    content: ""; /* Required for pseudo-element */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Use full URL to avoid relative path issues between mobile/web roots */
    background: url('https://www.yeongnam.com/80special/img/img_bottom01.webp') no-repeat left center;
    background-size: cover;
    z-index: -2; /* Behind everything */
    /* Fix for mobile address bar resize issue */
    /* will-change: transform; */ 
}

#container {
    background-color: transparent !important;
    color: #e0e0e0;
}

/* Header Area specific styles */
.series-header-area {
    width: 100%;
    text-align: center;
    padding: 120px 0; /* Increase padding for "serious" feeling */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.series-main-title {
    font-family: 'Noto Serif KR', serif; /* Changed to Serif */
    font-size: 42px; /* Adjusted for mobile */
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.7);
    line-height: 1.4; /* Adjusted line height */
}

.series-sub-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px; /* Adjusted for mobile */
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 50px 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    padding: 0 20px; /* Add padding for small screens */
    word-break: keep-all;
    line-height: 1.6; /* Adjusted line height */
}

.scroll-indicator {
    margin-top: 30px;
    animation: floating 2s ease-in-out infinite;
    cursor: pointer;
    display: inline-block;
}

.scroll-indicator .icon {
    font-size: 40px;
    color: #ffffff;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
    display: block;
    transform: scaleX(1.5); /* Make it wider */
    font-weight: 100;
}

@keyframes floating {
    0% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(15px); opacity: 1; }
    100% { transform: translateY(0); opacity: 0.7; }
}

.series-section-area {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Mobile specific: 2 columns */
    grid-auto-rows: 10px;
    gap: 0 16px; /* Smaller gap for mobile */
    width: 100%;
    padding: 40px 10px 60px 10px; /* Adjusted padding */
    box-sizing: border-box;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.5s ease-in-out;
}

.series-section-area.loaded {
    opacity: 1;
}

/* Layout for masonry card */
.series-section-area .series-card-masonry {
    width: auto !important;
    margin-bottom: 16px !important; /* Smaller margin for mobile */
    break-inside: avoid;
    display: block !important;

    vertical-align: top;
    background: #ffffff;
    border: none; 
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); 
    box-sizing: border-box;
    padding: 16px; /* Smaller padding inside card */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: auto !important; /* Force auto height */
}

.series-section-area .series-card-masonry:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.series-section-area .series-card-masonry::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #24b1c1;
    margin: 0 auto 15px auto;
    border-radius: 2px;
}

.series-section-area .series-card-masonry .top {
    width: 100%;
    text-align: center;
    margin-bottom: 18px;
    border-bottom: none;
    padding-bottom: 0;
    position: relative;
    z-index: 1;
}

/* Title styles */
.series-section-area .series-card-masonry .top .title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 18px; /* Adjusted for mobile */
    font-weight: 800;
    color: #111;
    line-height: 1.3;
    margin: 0;
    word-break: keep-all;
    letter-spacing: -0.5px;
}

.series-section-area .series-card-masonry .top .title a {
    color: #111;
    text-decoration: none;
    transition: color 0.3s;
}

.series-section-area .series-card-masonry .top .title a:hover {
    color: #24b1c1;
}

/* Card Image */
.series-section-area .series-card-masonry .card-image {
    width: 100%;
    margin: 15px 0 0 0; /* Override user agent margin, keep top margin */
    height: auto; 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.series-section-area .series-card-masonry .card-image img {
    display: block;
    width: 100%;
    height: auto !important;
    transition: transform 0.5s;
}

.series-section-area .series-card-masonry:hover .card-image img {
    transform: scale(1.05);
}

/* Grid List */
.series-section-area .series-card-masonry ul {
    margin: 0;
    padding: 10px 0 0 0; /* Reduced padding */
}

.series-section-area .series-card-masonry ul li {
    width: 100%;
    padding: 12px 0; /* Reduced padding */
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: flex-start;
}

.series-section-area .series-card-masonry ul li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.series-section-area .series-card-masonry ul li .headline {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px; /* Slightly smaller for mobile */
    line-height: 1.4;
    font-weight: 500;
    color: #333;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    letter-spacing: -0.02em;
    transition: color 0.2s; /* Smooth color transition for text and ellipsis */
}

/* Navigation Buttons */
.header-navigation-buttons {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
    display: flex;
    justify-content: space-between; /* Left and Right alignment */
    z-index: 100;
}
.btn-group {
    display: contents; /* Allows children to participate in flex layout of parent */
}

/* Common Reset */
.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1;
}

/* Minimal Text Style (Previously opt5) */
.nav-style-minimal .nav-btn {
    padding: 8px 0; /* Remove horizontal padding since we rely on container padding */
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    border-bottom: 1px solid transparent;
    border-radius: 0;
}

/* Disabled State */
.nav-btn.disabled {
    opacity: 0.3 !important;
    pointer-events: none !important;
    cursor: default !important;
}

/* Series Title and Subtitle */
.series-main-title {
    font-family: 'Noto Serif KR', serif; /* Changed to Serif */
    font-size: 42px; /* Adjusted for mobile */
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.7);
    line-height: 1.4; /* Increased line height for better spacing */
}

.series-sub-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px; /* Adjusted for mobile */
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 50px 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    padding: 0 20px;
    word-break: keep-all;
    line-height: 1.6; /* Increased line height for better spacing */
}
.nav-style-minimal .nav-btn:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
    transform: translateY(-2px);
}
.nav-style-minimal .nav-btn .icon {
    margin-right: 5px;
    font-size: 18px;
}

.series-section-area .series-card-masonry ul li .headline a {
    color: inherit; /* Inherit from headline to ensure unified hover state */
    text-decoration: none;
}

/* Hover Effect: Changes color of headline (and ellipsis) when hovering the list item */
.series-section-area .series-card-masonry ul li:hover .headline {
    color: #24b1c1;
}
