:root {
    --primary: #ff6b8a;
    --primary-dark: #e84a6f;
    --bg-dark: #1a1215;
    --bg-card: #2a1f22;
    --text-light: #fff5f7;
    --text-muted: #b8a5a9;
    --gold: #ffd700;
    --accent: #ff8fa3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

/* ==================== 파티클 ==================== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.heart-particle {
    position: absolute;
    opacity: 0.3;
    animation: fall linear infinite;
}

@keyframes fall {
    0% { transform: translateY(-100px); opacity: 0; }
    10%, 90% { opacity: 0.3; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* ==================== 네비게이션 ==================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.8rem 1rem;
    background: linear-gradient(180deg, rgba(26, 18, 21, 0.98), rgba(26, 18, 21, 0.85));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    transition: all 0.3s;
    font-size: 0.85rem;
    white-space: nowrap;
}

nav a:hover, nav a.active {
    color: var(--primary);
    background: rgba(255, 107, 138, 0.15);
}

/* ==================== 섹션 공통 ==================== */
section {
    padding: 3%;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: 'Gowun Batang', serif;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
}

.section-title::after {
    content: '♥';
    display: block;
    font-size: 0.9rem;
    margin-top: 0.3rem;
    color: var(--accent);
}

/* ==================== 카운터 섹션 ==================== */
#counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(255, 107, 138, 0.1), transparent 70%);
    padding-top: 4.5rem;
}

.counter-main {
    text-align: center;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 500px;
}

.counter-label {
    font-family: 'Nanum Pen Script', cursive;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.heart-beat {
    font-size: 3rem;
    display: inline-block;
    animation: heartbeat 1s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.counter-display {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.counter-item {
    background: linear-gradient(145deg, var(--bg-card), rgba(255, 107, 138, 0.1));
    border: 1px solid rgba(255, 107, 138, 0.3);
    border-radius: 12px;
    padding: 0.8rem 0.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.counter-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.counter-number {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-light);
}

.counter-unit {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.sub-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 0.5rem;
}

.sub-stat {
    background: rgba(255, 107, 138, 0.05);
    border: 1px solid rgba(255, 107, 138, 0.2);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    text-align: center;
    flex: 1;
    min-width: 120px;
    max-width: 180px;
}

.sub-stat-number {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
}

.sub-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.next-anniversary {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 138, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    text-align: center;
}

.next-anniversary-label {
    color: var(--gold);
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.next-anniversary-days {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

/* ==================== 게임 섹션 ==================== */
#games {
    padding-top: 5rem;
}

.games-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.game-tabs {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.game-tab {
    background: var(--bg-card);
    border: 1px solid rgba(255, 107, 138, 0.2);
    color: var(--text-muted);
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.game-tab:hover, .game-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-color: transparent;
}

.game-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.game-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 퀴즈 */
.quiz-container {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 107, 138, 0.2);
}

.quiz-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 107, 138, 0.1);
    font-size: 0.85rem;
}

.quiz-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 107, 138, 0.1);
    border-radius: 3px;
    margin: 0 0.8rem;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width 0.5s;
}

.quiz-score {
    color: var(--primary);
    font-weight: 600;
}

.quiz-question {
    font-family: 'Gowun Batang', serif;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.quiz-option {
    background: rgba(255, 107, 138, 0.05);
    border: 2px solid rgba(255, 107, 138, 0.2);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    font-size: 0.95rem;
}

.quiz-option:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 138, 0.1);
}

.quiz-option:active {
    transform: scale(0.98);
}

.quiz-option.correct {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
}

.quiz-option.wrong {
    background: rgba(244, 67, 54, 0.2);
    border-color: #f44336;
}

.quiz-option.disabled {
    pointer-events: none;
}

.quiz-result {
    text-align: center;
    padding: 1.5rem;
    display: none;
}

.quiz-result.show {
    display: block;
}

.quiz-result-grade {
    font-size: 3rem;
    margin-bottom: 0.8rem;
}

.quiz-result-title {
    font-family: 'Gowun Batang', serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.quiz-result-score {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* 룰렛 */
.roulette-container {
    text-align: center;
    padding: 1rem;
}

.roulette-wheel-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.roulette-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    z-index: 10;
}

.roulette-wheel {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    position: relative;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    box-shadow: 0 0 25px rgba(255, 107, 138, 0.3);
}

.roulette-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    left: 50%;
    top: 0;
    transform-origin: 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #fff;
    clip-path: polygon(0 100%, 100% 0, 0 0);
}

.roulette-segment span {
    transform: rotate(22.5deg) translateX(25px);
    white-space: nowrap;
}

.roulette-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    z-index: 5;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.spin-btn {
    background: linear-gradient(135deg, var(--gold), #ffaa00);
    color: var(--bg-dark);
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.spin-btn:hover {
    transform: scale(1.05);
}

.spin-btn:active {
    transform: scale(0.98);
}

.spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.roulette-result {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    font-family: 'Gowun Batang', serif;
    font-size: 1.1rem;
    color: var(--gold);
    display: none;
}

.roulette-result.show {
    display: block;
}

/* ==================== 버튼 ==================== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 138, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ==================== 푸터 ==================== */
footer {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.footer-heart {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.footer-text {
    font-family: 'Nanum Pen Script', cursive;
    font-size: 1.3rem;
    color: var(--accent);
}

/* ==================== 반응형 - 태블릿 ==================== */
@media (min-width: 768px) {
    section {
        padding: 6rem 2rem 3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .counter-display {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.8rem;
    }

    .counter-number {
        font-size: 2.2rem;
    }

    .heart-beat {
        font-size: 4rem;
    }

    .quiz-question {
        font-size: 1.4rem;
    }

    .roulette-wheel {
        width: 300px;
        height: 300px;
    }

    .roulette-segment {
        font-size: 0.75rem;
    }

    .roulette-segment span {
        transform: rotate(22.5deg) translateX(30px);
    }
}

/* ==================== 반응형 - 작은 모바일 ==================== */
@media (max-width: 360px) {
    html {
        font-size: 14px;
    }

    nav {
        padding: 0.6rem 0.5rem;
        gap: 0.3rem;
    }

    nav a {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .counter-number {
        font-size: 1.5rem;
    }

    .heart-beat {
        font-size: 2.5rem;
    }

    .roulette-wheel {
        width: 220px;
        height: 220px;
    }

    .roulette-segment {
        font-size: 0.55rem;
    }

    .roulette-segment span {
        transform: rotate(22.5deg) translateX(20px);
    }
}

/* ==================== Safe Area (노치 대응) ==================== */
@supports (padding: max(0px)) {
    nav {
        padding-top: max(0.8rem, env(safe-area-inset-top));
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    section {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    footer {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }
}

/* ==================== 성호 여친 자격 테스트 ==================== */
.test-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 1rem;
}

/* 시작 화면 */
.test-intro {
    text-align: center;
    padding: 2rem 1rem;
}

.test-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), #ffaa00);
    color: #1a1215;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.test-title {
    font-family: 'Gowun Batang', serif;
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.test-subtitle {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-style: italic;
}

.test-description {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
    line-height: 1.8;
    margin-top: 2%;
}

.test-description p {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.test-description p:last-child {
    margin-bottom: 0;
}

.test-warning {
    color: var(--gold) !important;
    font-weight: 600;
    text-align: center;
}

.test-start-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(255, 107, 138, 0.4);
}

.test-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 138, 0.5);
}

.test-start-btn:active {
    transform: scale(0.98);
}

/* 질문 화면 */
.test-question-container {
    padding: 1rem 0;
}

.test-progress {
    margin-bottom: 1.5rem;
}

.test-progress-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.test-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.test-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.test-question-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.question-category {
    display: inline-block;
    background: rgba(255, 107, 138, 0.2);
    color: var(--primary);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.question-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.option-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.5;
}

.option-btn:hover {
    background: rgba(255, 107, 138, 0.15);
    border-color: var(--primary);
}

.option-btn:active {
    transform: scale(0.98);
}

.option-btn.selected {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    animation: option-pop 0.3s ease;
}

@keyframes option-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}
/* 결과 화면 */
.test-result {
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.result-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* 결과 이미지 스타일 */
.result-image-container {
    width: 100%;
    max-width: 280px;
    margin: 0 auto 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 107, 138, 0.3);
}

.result-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.result-image-container:hover .result-image {
    transform: scale(1.05);
}

.result-grade {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.result-title {
    font-family: 'Gowun Batang', serif;
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.result-score {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), #ffaa00);
    color: #1a1215;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.result-description {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    text-align: left;
    padding: 0 0.5rem;
}

.result-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.result-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.result-btn.retry {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.result-btn.retry:hover {
    background: rgba(255, 255, 255, 0.2);
}

.result-btn.share {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 138, 0.3);
}

.result-btn.share:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 138, 0.4);
}

/* 컨페티 애니메이션 */
@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(400px) rotate(720deg);
        opacity: 0;
    }
}

.confetti-piece {
    pointer-events: none;
}

/* 테스트 반응형 */
@media (max-width: 480px) {
    .test-title {
        font-size: 1.5rem;
    }

    .test-description {
        padding: 1.2rem;
    }

    .test-start-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .question-text {
        font-size: 1rem;
    }

    .option-btn {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
    }

    .result-grade {
        font-size: 3rem;
    }

    .result-title {
        font-size: 1.2rem;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-btn {
        width: 100%;
    }

    /* 모바일 이미지 최적화 */
    .result-image-container {
        max-width: 220px;
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 360px) {
    .result-image-container {
        max-width: 180px;
    }
    
    .result-card {
        padding: 1.5rem 1rem;
    }
}


/* ==================== 나무위키 스타일 프로필 ==================== */
.wiki-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.wiki-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 3.3rem;
}

.wiki-title {
    font-family: 'Gowun Batang', serif;
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.wiki-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* 프로필 카드 */
.wiki-profile-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 107, 138, 0.2);
}

.profile-image-container {
    width: 100%;
    aspect-ratio: 1;
    max-height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-card));
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-info-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-info-table tr:last-child {
    border-bottom: none;
}

.profile-info-table th {
    width: 30%;
    padding: 0.8rem 1rem;
    text-align: left;
    background: rgba(255, 107, 138, 0.1);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.profile-info-table td {
    padding: 0.8rem 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

/* 목차 */
.wiki-toc {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 2rem;
    border-left: 3px solid var(--primary);
}

.toc-title {
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.toc-list {
    list-style: none;
    padding-left: 0;
}

.toc-list li {
    padding: 0.4rem 0;
}

.toc-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.toc-list a:hover {
    color: var(--primary);
}

/* 본문 섹션 */
.wiki-content {
    margin-bottom: 2rem;
}

.wiki-section {
    margin-bottom: 2rem;
    scroll-margin-top: 80px;
}

.section-heading {
    font-family: 'Gowun Batang', serif;
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.heading-number {
    color: var(--primary);
}

.section-content {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.2rem;
    line-height: 1.8;
}

.section-content p {
  
    color: var(--text-light);
}

.section-content p:last-child {
    margin-bottom: 0;
}

.wiki-highlight {
    background: linear-gradient(transparent 60%, rgba(255, 107, 138, 0.3) 60%);
    padding: 0 0.2rem;
}

.wiki-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.wiki-list li {
    position: relative;
    padding-left: 1.5rem;
  
    color: var(--text-light);
}

.wiki-list li::before {
    content: '•';
    position: absolute;
    left: 0.3rem;
    color: var(--primary);
    font-weight: bold;
}

.wiki-list li strong {
    color: var(--primary);
}

/* 인용문 */
.wiki-quote {
    background: rgba(255, 107, 138, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.2rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-light);
}

.wiki-quote.success {
    background: rgba(100, 200, 100, 0.1);
    border-left-color: #64c864;
}

.quote-author {
    display: block;
    text-align: right;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: normal;
}

/* 그리드 */
.wiki-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.grid-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s;
}

.grid-item:hover {
    transform: translateY(-3px);
}

.grid-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.grid-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 커플 카드 */
.couple-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(255, 107, 138, 0.2), rgba(255, 143, 163, 0.1));
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
}

.couple-emoji {
    font-size: 2.5rem;
}

.couple-status {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

.couple-names {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 600;
}

/* 위키 푸터 */
.wiki-footer {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    margin-top: 2rem;
}

.wiki-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.wiki-edit-notice {
    font-size: 0.8rem !important;
    color: var(--primary) !important;
}

/* 반응형 */
@media (max-width: 600px) {
    .wiki-title {
        font-size: 2rem;
    }

    .profile-info-table th,
    .profile-info-table td {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .profile-info-table th {
        width: 35%;
    }

    .wiki-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-heading {
        font-size: 1.2rem;
    }

    .section-content {
        padding: 1rem;
    }
}
