/* === Reset & Base === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
    background-color: #fafafa;
    line-height: 1.8;
    font-size: 16px;
}

a {
    color: #e65100;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #bf360c;
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Header === */
.site-header {
    background: #fff;
    border-bottom: 2px solid #ff6d00;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: #e65100;
    white-space: nowrap;
}

.logo:hover {
    color: #bf360c;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
}

.nav-list {
    display: flex;
    gap: 8px;
}

.nav-list a {
    color: #555;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
    background: #fff3e0;
    color: #e65100;
}

/* === Hero === */
.hero {
    background: linear-gradient(135deg, #e65100, #ff8f00);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.3;
}

.hero-desc {
    font-size: 1.1rem;
    opacity: 0.92;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* === Roulette Section === */
.roulette-section {
    padding: 60px 0;
    background: #fff;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: #222;
}

.section-desc {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1rem;
}

.roulette-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.roulette-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    margin-bottom: 30px;
}

.pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 28px solid #e65100;
    z-index: 10;
    filter: drop-shadow(0px 2px 3px rgba(0,0,0,0.3));
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid #e65100;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: transform 5s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
}

.spin-button {
    padding: 14px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    background: #e65100;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.spin-button:hover {
    background: #bf360c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(230,81,0,0.3);
}

.spin-button:active {
    transform: translateY(0);
}

.result-text {
    margin-top: 24px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #e65100;
    min-height: 50px;
    text-align: center;
}

.result-text .result-sub {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    margin-top: 8px;
}

/* === Articles Section === */
.articles-section {
    padding: 60px 0;
    background: #f5f5f5;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.article-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.article-card h3 a {
    color: #222;
}

.article-card h3 a:hover {
    color: #e65100;
}

.article-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e65100;
}

/* === Tips Section === */
.tips-section {
    padding: 60px 0;
    background: #fff;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.tip-item {
    padding: 24px;
    background: #fff8e1;
    border-radius: 10px;
    border-left: 4px solid #ff8f00;
}

.tip-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #e65100;
}

.tip-item p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === Article Page === */
.article-page {
    padding: 40px 0 60px;
    background: #fff;
    min-height: calc(100vh - 64px - 280px);
}

.breadcrumb {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 32px;
}

.breadcrumb a {
    color: #999;
}

.breadcrumb a:hover {
    color: #e65100;
}

.article-content {
    max-width: 800px;
}

.article-content h1 {
    font-size: 2rem;
    font-weight: 900;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-meta {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.article-intro {
    background: #fff8e1;
    border-left: 4px solid #ff8f00;
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 40px;
}

.article-intro p {
    color: #555;
    font-size: 1.05rem;
}

/* Table of Contents */
.toc {
    background: #f5f5f5;
    padding: 24px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.toc h2 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #333;
}

.toc ul {
    list-style: none;
}

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

.toc a {
    font-size: 0.95rem;
    color: #555;
}

.toc a:hover {
    color: #e65100;
}

/* Article Sections */
.article-content section {
    margin-bottom: 48px;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e65100;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ffe0b2;
}

.article-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    margin-top: 28px;
    margin-bottom: 10px;
}

.article-content p {
    margin-bottom: 14px;
    color: #444;
}

.article-content ul {
    margin: 12px 0 16px 24px;
    list-style: disc;
}

.article-content li {
    margin-bottom: 6px;
    color: #444;
}

.info-table {
    background: #fafafa;
    padding: 24px;
    border-radius: 10px;
}

.info-table h3 {
    margin-top: 20px;
    color: #e65100;
}

.info-table h3:first-child {
    margin-top: 0;
}

/* Article Navigation */
.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #eee;
    gap: 16px;
}

.prev-article,
.next-article {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 20px;
    background: #fff3e0;
    border-radius: 8px;
    transition: background 0.2s;
}

.prev-article:hover,
.next-article:hover {
    background: #ffe0b2;
}

.next-article {
    margin-left: auto;
}

/* === Contact Form === */
.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Noto Sans KR', sans-serif;
    transition: border-color 0.2s;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e65100;
    box-shadow: 0 0 0 3px rgba(230,81,0,0.1);
}

.submit-button {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: #e65100;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    transition: background 0.2s;
}

.submit-button:hover {
    background: #bf360c;
}

/* FAQ */
.faq-item {
    margin-bottom: 20px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.faq-item h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #333;
}

.faq-item p {
    color: #666;
    font-size: 0.95rem;
}

/* Legal Content */
.legal-content h2 {
    font-size: 1.3rem;
}

.legal-content h3 {
    font-size: 1.05rem;
}

/* === Footer === */
.site-footer {
    background: #333;
    color: #ccc;
    padding-top: 48px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #aaa;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: #ff8f00;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #777;
}

/* === Mobile Navigation === */
.nav-open .nav-list {
    display: flex;
}

.nav-open .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* === Responsive === */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px 20px;
        border-bottom: 2px solid #ff6d00;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .nav-list a {
        display: block;
        padding: 12px 16px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .roulette-wrapper {
        width: 260px;
        height: 260px;
    }

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

    .article-nav {
        flex-direction: column;
    }

    .next-article {
        margin-left: 0;
    }
}
