/* ============================================================
   GHU Open — Premium Visual Upgrade
   기존 ghuopen-custom.css 맨 아래에 추가하세요.
   (덮어쓰지 마세요 — 추가만)
   ============================================================ */

/* ===== 0. CSS 변수 (디자인 토큰) ===== */
:root {
    --gho-burgundy: #6B1F2A;
    --gho-burgundy-light: #8B2A38;
    --gho-burgundy-dark: #4A1520;
    --gho-bg-soft: #FAF6F7;
    --gho-bg-card: #ffffff;
    --gho-border: #E8DDE0;
    --gho-border-soft: #F0E6E8;
    --gho-text: #2C2C2C;
    --gho-text-muted: #6c6c6c;
    --gho-shadow-sm: 0 1px 3px rgba(74, 21, 32, 0.06);
    --gho-shadow-md: 0 4px 12px rgba(74, 21, 32, 0.08);
    --gho-shadow-lg: 0 8px 24px rgba(74, 21, 32, 0.12);
    --gho-radius-sm: 6px;
    --gho-radius-md: 10px;
    --gho-radius-lg: 14px;
}

/* ============================================================
   1. 메인 콘텐츠 영역 — 여백 + 라운드 + 미묘한 그림자
   ============================================================ */
.pkp_structure_main {
    background: var(--gho-bg-card);
    padding: 2.5rem !important;
    border-radius: var(--gho-radius-md);
    box-shadow: var(--gho-shadow-sm);
    border: 1px solid var(--gho-border-soft);
}

.pkp_structure_main > h1:first-child,
.pkp_structure_main > .page_title:first-child {
    margin-top: 0;
    padding-top: 0;
}

/* ============================================================
   2. Welcome Announcement — 프리미엄 카드 스타일
   ============================================================ */
.cmp_announcement,
.obj_announcement_summary {
    background: linear-gradient(135deg, #ffffff 0%, var(--gho-bg-soft) 100%) !important;
    border: 1px solid var(--gho-border) !important;
    border-left: 5px solid var(--gho-burgundy) !important;
    border-radius: var(--gho-radius-md) !important;
    padding: 2rem 2.5rem !important;
    margin: 0 0 2rem 0 !important;
    box-shadow: var(--gho-shadow-md);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cmp_announcement:hover,
.obj_announcement_summary:hover {
    box-shadow: var(--gho-shadow-lg);
    transform: translateY(-2px);
}

/* Announcement 우상단 장식 — burgundy 그라데이션 원 */
.cmp_announcement::before,
.obj_announcement_summary::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(107, 31, 42, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cmp_announcement .title,
.obj_announcement_summary .title {
    color: var(--gho-burgundy) !important;
    font-family: 'Lora', Georgia, serif !important;
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    margin: 0 0 0.5rem 0 !important;
    line-height: 1.3;
}

.cmp_announcement .date,
.obj_announcement_summary .date {
    color: var(--gho-burgundy-light) !important;
    font-size: 0.85rem !important;
    font-style: normal !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: inline-block;
}

.cmp_announcement .date::before,
.obj_announcement_summary .date::before {
    content: "📅 ";
    margin-right: 0.3rem;
}

.cmp_announcement .description,
.obj_announcement_summary .description {
    color: var(--gho-text) !important;
    line-height: 1.7 !important;
    font-size: 1rem !important;
    margin-top: 0.5rem;
}

/* "Read More" 링크 */
.cmp_announcement .read_more,
.obj_announcement_summary a:last-child {
    display: inline-block;
    margin-top: 1rem;
    color: var(--gho-burgundy) !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent !important;
    transition: all 0.2s ease;
}

.cmp_announcement .read_more:hover,
.obj_announcement_summary a:last-child:hover {
    border-bottom-color: var(--gho-burgundy) !important;
    transform: translateX(3px);
}

/* ============================================================
   3. 사이드바 — Information & Make a Submission 카드
   ============================================================ */
.pkp_structure_sidebar {
    padding-top: 0 !important;
}

.pkp_block {
    background: var(--gho-bg-card) !important;
    border: 1px solid var(--gho-border) !important;
    border-radius: var(--gho-radius-md) !important;
    padding: 1.5rem 1.5rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: var(--gho-shadow-sm);
    transition: box-shadow 0.3s ease;
}

.pkp_block:hover {
    box-shadow: var(--gho-shadow-md);
}

.pkp_block .title {
    color: var(--gho-burgundy) !important;
    font-family: 'Lora', Georgia, serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    border-bottom: 2px solid var(--gho-burgundy) !important;
    padding-bottom: 0.6rem !important;
    margin: 0 0 1rem 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pkp_block ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.pkp_block ul li {
    padding: 0.6rem 0 !important;
    border-bottom: 1px solid var(--gho-border-soft) !important;
    transition: padding-left 0.2s ease;
}

.pkp_block ul li:last-child {
    border-bottom: none !important;
}

.pkp_block ul li:hover {
    padding-left: 0.4rem !important;
}

.pkp_block ul li a {
    color: var(--gho-text) !important;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none !important;
    border: none !important;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.pkp_block ul li a::before {
    content: "→";
    color: var(--gho-burgundy);
    margin-right: 0.6rem;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.pkp_block ul li a:hover {
    color: var(--gho-burgundy) !important;
}

.pkp_block ul li a:hover::before {
    transform: translateX(3px);
}

/* Make a Submission 사이드바 박스 — 강조 CTA 스타일 */
.pkp_block_make_submission,
.block.pkp_block.has_title.block_make_submission,
.pkp_block:has(a[href*="submission"]:only-child) {
    background: linear-gradient(135deg, var(--gho-burgundy) 0%, var(--gho-burgundy-dark) 100%) !important;
    border: none !important;
    box-shadow: var(--gho-shadow-md);
    padding: 0 !important;
    overflow: hidden;
}

.pkp_block_make_submission a,
.block.pkp_block.has_title.block_make_submission a {
    display: block !important;
    color: #ffffff !important;
    text-align: center;
    padding: 1.2rem 1.5rem !important;
    font-weight: 700 !important;
    font-size: 1.05rem;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s ease;
}

.pkp_block_make_submission a:hover,
.block.pkp_block.has_title.block_make_submission a:hover {
    background: rgba(0, 0, 0, 0.15) !important;
    color: #ffffff !important;
}

.pkp_block_make_submission a::after {
    content: " →";
    display: inline-block;
    margin-left: 0.4rem;
    transition: transform 0.2s ease;
}

.pkp_block_make_submission a:hover::after {
    transform: translateX(4px);
}

/* ============================================================
   4. 메인 페이지의 35-Day / Double-Blind / Open Access 3카드
   ============================================================ */
/* 자동 그리드: 3개 카드 균등 정렬 */
.pkp_structure_main h3 {
    color: var(--gho-burgundy);
    font-family: 'Lora', Georgia, serif;
    font-size: 1.35rem;
    margin-top: 0;
}

/* Static page에서 feature 박스 만들 때 쓰는 wrapper */
.feature-boxes,
.journal-features,
.three-cards {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    margin: 2.5rem 0 !important;
}

/* 개별 카드 */
.feature-box {
    background: linear-gradient(180deg, #ffffff 0%, var(--gho-bg-soft) 100%);
    border: 1px solid var(--gho-border);
    border-radius: var(--gho-radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--gho-shadow-sm);
}

.feature-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gho-burgundy) 0%, var(--gho-burgundy-light) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--gho-shadow-lg);
}

.feature-box:hover::before {
    transform: scaleX(1);
}

.feature-box .icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: var(--gho-burgundy);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(107, 31, 42, 0.25);
}

.feature-box h3 {
    color: var(--gho-burgundy);
    font-family: 'Lora', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.7rem 0 !important;
}

.feature-box p {
    color: var(--gho-text-muted);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================================
   5. About the Journal 섹션 헤딩
   ============================================================ */
.pkp_structure_main h1,
.pkp_structure_main h2.page_title {
    color: var(--gho-burgundy);
    font-family: 'Lora', Georgia, serif;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.7rem;
    margin-bottom: 1.5rem;
    border-bottom: none;
}

.pkp_structure_main h1::after,
.pkp_structure_main h2.page_title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gho-burgundy) 0%, var(--gho-burgundy-light) 100%);
    border-radius: 2px;
}

/* ============================================================
   6. 본문 텍스트 가독성 개선
   ============================================================ */
.pkp_structure_main p {
    line-height: 1.75;
    color: var(--gho-text);
    margin-bottom: 1.2rem;
}

/* About 단락의 첫 번째 글자 강조 (drop cap 옵션) — 원하면 활성화 */
/*
.pkp_structure_main > p:first-of-type::first-letter {
    font-family: 'Lora', Georgia, serif;
    font-size: 3.5em;
    float: left;
    line-height: 0.85;
    margin: 0.1em 0.1em 0 0;
    color: var(--gho-burgundy);
    font-weight: 700;
}
*/

/* ============================================================
   7. 반응형
   ============================================================ */
@media (max-width: 992px) {
    .feature-boxes,
    .journal-features,
    .three-cards {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .pkp_structure_main {
        padding: 1.5rem !important;
        border-radius: var(--gho-radius-sm);
    }
    
    .cmp_announcement,
    .obj_announcement_summary {
        padding: 1.5rem !important;
    }
    
    .feature-boxes,
    .journal-features,
    .three-cards {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .feature-box {
        padding: 1.5rem 1rem;
    }
}

/* ===== END Premium Visual Upgrade ===== */
