/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* 헤더 */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #2563eb;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
}

/* 메인 콘텐츠 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 히어로 섹션 */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 20px;
    color: #fff;
    margin-bottom: 30px;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-desc {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 컨테이너 */
.container {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.container h2 {
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.section-intro {
    color: #64748b;
    margin-bottom: 25px;
}

.section-desc {
    color: #64748b;
    text-align: center;
    margin-bottom: 20px;
}

/* 로또 번호 */
.generator-section {
    text-align: center;
}

.lotto-numbers {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    color: #334155;
}

#generate-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* 가이드 섹션 */
.guide-section {
    padding: 40px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.guide-card {
    background-color: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.guide-card h3 {
    color: #1e293b;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.guide-card p {
    color: #64748b;
    font-size: 0.95rem;
}

.prize-list {
    list-style: none;
    padding: 0;
}

.prize-list li {
    padding: 8px 0;
    color: #64748b;
    font-size: 0.95rem;
    border-bottom: 1px solid #e2e8f0;
}

.prize-list li:last-child {
    border-bottom: none;
}

/* FAQ 섹션 */
.faq-section {
    padding: 40px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.faq-item summary {
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #1e293b;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: #2563eb;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    padding: 0 20px 18px;
    color: #64748b;
    line-height: 1.7;
}

/* 로또 성지 */
.lotto-spot-container,
.lotto-spot-list-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.lotto-spot-container h2,
.lotto-spot-list-container h2 {
    color: #1e293b;
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.5rem;
}

#lotto-spot-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

#lotto-spot-form input[type="text"],
#lotto-spot-form input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#lotto-spot-form input[type="text"]:focus,
#lotto-spot-form input[type="number"]:focus {
    outline: none;
    border-color: #2563eb;
}

#submit-spot-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

#submit-spot-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

#upload-status {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

#upload-status.success {
    color: #10b981;
}

#upload-status.error {
    color: #ef4444;
}

/* 성지 목록 */
#lotto-spot-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spot-card {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #e2e8f0;
}

.spot-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.spot-user {
    font-weight: 600;
    color: #2563eb;
}

.spot-date {
    font-size: 0.85rem;
    color: #94a3b8;
}

.spot-location {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.spot-location::before {
    content: "📍 ";
}

.spot-win-count {
    color: #dc2626;
    font-size: 0.9rem;
}

.spot-win-count strong {
    color: #b91c1c;
}

.no-spots,
.loading-text {
    text-align: center;
    color: #94a3b8;
    padding: 30px;
}

/* 문의하기 */
.contact-form-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.contact-form-container h2 {
    color: #1e293b;
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.5rem;
}

.contact-form-container form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.contact-form-container form input[type="email"],
.contact-form-container form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.contact-form-container form input[type="email"]:focus,
.contact-form-container form textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.contact-form-container form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form-container form button[type="submit"] {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-form-container form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* 댓글 섹션 */
.comments-section {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.comments-section h2 {
    color: #1e293b;
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.5rem;
}

#disqus_thread {
    margin-top: 20px;
}

/* 푸터 */
.site-footer {
    background-color: #1e293b;
    color: #cbd5e1;
    padding: 50px 20px 20px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

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

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

.footer-section ul {
    list-style: none;
}

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

.footer-section ul a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #334155;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* 정책 페이지 */
.policy-page {
    max-width: 800px;
    margin: 30px auto;
}

.policy-page h1 {
    color: #1e293b;
    margin-bottom: 10px;
    font-size: 2rem;
}

.last-updated {
    color: #64748b;
    margin-bottom: 40px;
}

.policy-page section {
    margin-bottom: 35px;
}

.policy-page h2 {
    color: #1e293b;
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.policy-page p {
    color: #475569;
    margin-bottom: 15px;
}

.policy-page ul,
.policy-page ol {
    color: #475569;
    padding-left: 25px;
    margin-bottom: 15px;
}

.policy-page li {
    margin-bottom: 10px;
}

.back-link {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.back-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.back-link a:hover {
    text-decoration: underline;
}

/* 분석 섹션 */
#analysis-container p {
    margin: 10px 0;
}

#comparison-result h3 {
    color: #2563eb;
}

#stats-container {
    text-align: left;
}

#stats-container h4 {
    margin-bottom: 15px;
    color: #1e293b;
}

#stats-container ol {
    padding-left: 25px;
}

#stats-container li {
    margin-bottom: 10px;
    color: #475569;
}

/* 상세 통계 스타일 */
.stats-header {
    text-align: center;
    margin-bottom: 25px;
}

.stats-header h4 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 5px;
}

.stats-source {
    font-size: 0.85rem;
    color: #94a3b8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.stat-card h5 {
    font-size: 1rem;
    color: #334155;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

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

.stat-number {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 55px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.stat-number small {
    font-size: 0.7rem;
    font-weight: 400;
    margin-top: 2px;
}

.number-list.hot .stat-number {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
    border: 1px solid #fcd34d;
}

.number-list.cold .stat-number {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0369a1;
    border: 1px solid #7dd3fc;
}

.number-list.bonus .stat-number {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #be185d;
    border: 1px solid #f9a8d4;
}

.stat-number.user-pick {
    box-shadow: 0 0 0 3px #22c55e;
    position: relative;
}

.stat-number.user-pick::after {
    content: '★';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.8rem;
    color: #22c55e;
}

.stat-list {
    list-style: none;
    padding: 0;
}

.stat-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.95rem;
}

.stat-list li:last-child {
    border-bottom: none;
}

.stat-list strong {
    color: #1e293b;
}

.user-analysis {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #a7f3d0;
}

.user-analysis h5 {
    font-size: 1rem;
    color: #065f46;
    margin-bottom: 12px;
}

.user-analysis p {
    color: #047857;
    margin: 8px 0;
    font-size: 0.95rem;
}

.user-analysis strong {
    color: #065f46;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

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

    .container,
    .lotto-spot-container,
    .lotto-spot-list-container,
    .contact-form-container,
    .comments-section {
        padding: 25px;
    }

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

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 12px 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero-section {
        padding: 40px 15px;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .main-content {
        padding: 15px;
    }

    .container,
    .lotto-spot-container,
    .lotto-spot-list-container,
    .contact-form-container,
    .comments-section {
        padding: 20px;
        border-radius: 12px;
    }

    .container h2,
    .lotto-spot-container h2,
    .lotto-spot-list-container h2,
    .contact-form-container h2,
    .comments-section h2 {
        font-size: 1.3rem;
    }
}
