/* 공용 스타일시트 - 럭키 라이프 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-gradient-1: #1a1a2e;
    --bg-gradient-2: #16213e;
    --bg-gradient-3: #0f3460;
    --container-bg: rgba(255, 255, 255, 0.05);
    --container-border: rgba(255, 255, 255, 0.1);
    --container-shadow: rgba(0, 0, 0, 0.3);
    --text-primary: #fff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --link-color: #3498db;
}

[data-theme="light"] {
    --bg-gradient-1: #f0f4f8;
    --bg-gradient-2: #e2ecf5;
    --bg-gradient-3: #d4e4f2;
    --container-bg: rgba(255, 255, 255, 0.9);
    --container-border: rgba(0, 0, 0, 0.1);
    --container-shadow: rgba(0, 0, 0, 0.08);
    --text-primary: #1a1a2e;
    --text-secondary: rgba(0, 0, 0, 0.65);
    --text-muted: rgba(0, 0, 0, 0.4);
    --link-color: #2980b9;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 50%, var(--bg-gradient-3) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    transition: background 0.4s ease, color 0.4s ease;
    line-height: 1.7;
}

/* 네비게이션 */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 30px;
    background: var(--container-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--container-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--link-color);
}

.theme-toggle {
    background: none;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--text-primary);
    transform: rotate(20deg);
}

/* 콘텐츠 영역 */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
    padding-top: 100px;
}

.article {
    background: var(--container-bg);
    border: 1px solid var(--container-border);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.article h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.article-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 30px;
}

.article section {
    margin-bottom: 30px;
}

.article h2 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--container-border);
}

.article p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.article ul,
.article ol {
    color: var(--text-secondary);
    padding-left: 24px;
    margin-bottom: 12px;
}

.article li {
    margin-bottom: 8px;
}

.article a {
    color: var(--link-color);
    text-decoration: none;
}

.article a:hover {
    text-decoration: underline;
}

/* 테이블 */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.9rem;
}

.info-table th,
.info-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--container-border);
    color: var(--text-secondary);
}

.info-table th {
    color: var(--text-primary);
    font-weight: 600;
    background: var(--container-bg);
}

/* CTA 박스 */
.cta-box {
    margin-top: 30px;
    padding: 24px;
    background: var(--container-bg);
    border: 2px solid var(--link-color);
    border-radius: 12px;
    text-align: center;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.btn-cta {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
    text-decoration: none;
}

/* 푸터 */
.footer {
    text-align: center;
    padding: 30px 24px;
    border-top: 1px solid var(--container-border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    margin-top: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--link-color);
}

/* 반응형 */
@media (max-width: 768px) {
    .nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-links {
        gap: 14px;
        font-size: 0.85rem;
    }

    .article {
        padding: 24px;
    }

    .article h1 {
        font-size: 1.6rem;
    }
}
