/* ==========================================
   1. 메인 페이지 전용 텍스트 히어로 배너
   ========================================== */
.text-hero-banner {
    position: relative;
    /* background: linear-gradient(135deg, rgba(0,163,255,0.85), rgba(0,110,255,0.7)); */
    border-radius: 12px;
    padding: 45px;
    color: #ffffff;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,163,255,0.15);
    overflow: hidden;
}

.hero-inner h1 {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 12px;
    text-shadow: 1px 1px 0px #888;
}
.hero-inner h1 span {
    color: #E6FFFA;
    font-size: 3.5rem;
}
.hero-inner p {
    font-size: 0.98rem;
    opacity: 0.9;
    margin-bottom: 25px;
    text-shadow: 1px 1px 0px #888;
}
.bg-banner {
    position: absolute;
    top : 50%;
    left : 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: -1;
    opacity: 0.3;
    filter: blur(10px);
    transition: all 1s;
    /* transition: all .2s steps(3, end);  */
}
.bg-banner img {
    width: 100%;
}
.text-hero-banner:hover .bg-banner {
    opacity: .5;
    filter: blur(0px);
}


.hero-btns { display: flex; gap: 12px; }



img.hero-list {
    position: absolute;
    bottom : -300%;
    right : -150px;
    z-index: -1;
    
    aspect-ratio: 1 / 1.414;
    border-radius: 12px;
    
    /* mix-blend-mode: color-dodge; */
    filter: blur(0px);
    transition: all 1s;

}

.text-hero-banner:hover  img.hero-list{
    /* mix-blend-mode: initial; */
    filter: blur(10px);
}



.btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 1px 1px 0 #888; 
}
.btn-blue { background-color: var(--abydos-blue); color: #ffffff; border: 1px solid rgba(255,255,255,0.3); }
.btn-blue:hover { background-color: #008be5; }
.btn-white { background-color: #ffffff; color: var(--abydos-blue); }
.btn-white:hover { background-color: #f8fafc; }

/* ==========================================
   2. 메인 전용 대화면 3단 구조 및 중앙 2단 분할
   ========================================== */
.content-three-column-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 25px;
    margin-bottom: 30px;
}

.center-main-area {
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    /* grid-template-columns: repeat(2, minmax(0, 1fr)); */
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 20px;
}

.split-column {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-soft);
}

.area-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--abydos-blue);
    padding-bottom: 8px;
}
.area-header h3 { font-size: 1.1rem; font-weight: 800; }
.more-link { font-size: 0.85rem; color: var(--text-muted); }

/* ==========================================
   3. 소설가가 되자 스타일 텍스트 리스트 박스
   ========================================== */
.text-list-box {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.compact-text-card {
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--border-soft);
}
.compact-text-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.card-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.novel-title-link {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
    flex : 1;
}
.novel-title-link:hover { color: var(--abydos-blue); }

.up-mark {
    font-size: 0.7rem;
    font-weight: 900;
    color: #E53E3E;
    background-color: #FFF5F5;
    padding: 1px 4px;
    border-radius: 3px;
}

.badge-blue { background-color: #EBF8FF; color: #2B6CB0; font-size: 0.75rem; padding: 2px 6px; border-radius: 4px; font-weight: bold;}
.badge-mint { background-color: #E6FFFA; color: #234E52; font-size: 0.75rem; padding: 2px 6px; border-radius: 4px; font-weight: bold;}
.badge-gray { background-color: #EDF2F7; color: #4A5568; font-size: 0.75rem; padding: 2px 6px; border-radius: 4px; font-weight: bold;}

.card-summary {
    font-size: 0.88rem;
    color: #4A5568;
    line-height: 1.5;
    margin-bottom: 8px;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta-line { font-size: 0.78rem; color: var(--text-muted); }


/* ==========================================
   5. 하단 가로 통합 랭킹 바
   ========================================== */
.bottom-ranking-section {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-soft);
    margin-bottom: 30px;
}

.horizontal-rank-wrap {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.rank-item-hori {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: var(--bg-light-blue);
    border-radius: 8px;
    min-width: 0;
}

.r-num { font-size: 1.1rem; font-weight: 900; color: var(--text-muted); width: 20px; text-align: center; }
.r-num.r-1 { color: #E53E3E; }
.r-num.r-2 { color: #DD6B20; }
.r-num.r-3 { color: #D69E2E; }

.r-text { flex: 1; min-width: 0; }
.r-text a { font-size: 0.85rem; font-weight: bold; color: var(--text-dark); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-text a:hover { color: var(--abydos-blue); }
.r-text p { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px;}

/* ==========================================
   6. 메인 콘텐츠 전용 모바일 반응형 처리
   ========================================== */
@media (max-width: 1100px) {
    .content-three-column-grid { grid-template-columns: 1fr; }
    .horizontal-rank-wrap { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .text-hero-banner { padding: 25px 20px; margin-bottom: 20px; }
    .hero-inner h1 { font-size: 1.4rem; line-height: 1.3; }
    .hero-inner h1 span { font-size: 2rem; }
    .hero-inner p { font-size: 0.85rem; margin-bottom: 20px; }
    .btn { padding: 8px 16px; font-size: 0.85rem; }
    .content-three-column-grid { grid-template-columns: 1fr !important; gap: 20px; }
    .center-main-area { grid-template-columns: 1fr !important; gap: 20px; }
    .split-column { padding: 18px; }
    .area-header h3 { font-size: 1rem; }
    .novel-title-link { font-size: 0.95rem; }
    .card-summary { font-size: 0.82rem; -webkit-line-clamp: 3; }

    .bottom-ranking-section { padding: 18px; }
    .horizontal-rank-wrap { grid-template-columns: 1fr !important; gap: 10px; }
    .rank-item-hori { padding: 10px; }
    .r-text a { font-size: 0.82rem; }
}
