/* 전체 폰트 및 기본 스타일 */
body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #121212;
    color: #f0f0f0;
    margin: 0;
    line-height: 1.6;
}

a {
    color: #bb86fc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #f0f0f0;
}

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

/* --- 헤더 --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo a {
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    font-size: 1em;
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: #fff;
    border-bottom-color: #bb86fc;
}

/* --- 메인 콘텐츠 --- */
.main-content {
     padding-top: 40px;
}

/* --- 홈 페이지 (index.html) --- */
.hero-section {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 1));
}

.hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #fff;
}

.hero-section p {
    font-size: 1.3em;
    color: #ccc;
    margin-bottom: 40px;
    line-height: 1.8;
}

.premium-promo-section {
    background: radial-gradient(ellipse at center, #2e233d, #121212);
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    margin: 80px 0;
}

.premium-promo-section h2 {
    font-size: 2.5em;
    color: #fff;
    margin-bottom: 15px;
}

.premium-promo-section p {
    font-size: 1.2em;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.featured-articles {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.featured-articles h2 {
    font-size: 2.5em;
    color: #fff;
    text-align: center;
    margin-bottom: 50px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 카드 스타일 (공용) */
.card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(187, 134, 252, 0.3);
}

.card-emoji {
    font-size: 3.5em;
    text-align: center;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5em;
    color: #f0f0f0;
    margin-top: 0;
    margin-bottom: 15px;
}

.card p {
    flex-grow: 1;
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 20px;
}

.card a {
    color: #bb86fc;
    font-weight: bold;
    text-decoration: none;
    margin-top: auto;
    align-self: flex-start;
}

.card a:hover {
    color: #fff;
}

/* 버튼 스타일 (공용) */
.btn-primary {
    background-color: #bb86fc;
    color: #121212;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: #a062f8;
    transform: scale(1.05);
    color: #121212;
}

.btn-secondary {
    background-color: transparent;
    color: #bb86fc;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    border: 1px solid #bb86fc;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover, .btn-secondary:disabled {
    background-color: #bb86fc;
    color: #121212;
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* --- 페이지별 스타일 --- */

/* 소개 페이지 (about.html) */
.about-page {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}
.about-page .page-header h1 {
    font-size: 3.2em;
}
.about-page .page-header p {
    font-size: 1.3em;
    color: #ccc;
    margin-bottom: 60px;
}
.about-page .about-content p {
    font-size: 1.15em;
    line-height: 1.9;
    margin-bottom: 25px;
}
.about-page .about-content strong {
    color: #bb86fc;
    font-weight: 600;
}

/* AI 꿈 분석 페이지 (ai-analyzer.html) */
.analyzer-page {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}
.analyzer-page .page-header p {
    line-height: 1.8;
}
.analyzer-container {
    margin-top: 50px;
}
.dream-input-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}
#dream-input {
    width: 100%;
    min-height: 150px;
    background-color: #1e1e1e;
    color: #f0f0f0;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    font-size: 1.1em;
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.7;
    margin-bottom: 25px;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#dream-input:focus {
    outline: none;
    border-color: #bb86fc;
    box-shadow: 0 0 15px rgba(187, 134, 252, 0.2);
}
#dream-input::placeholder {
    color: #666;
}
.dream-result-section {
    margin-bottom: 60px;
    text-align: left;
}
.dream-result-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}
.result-card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    font-size: 1.1em;
    line-height: 1.8;
    color: #ccc;
}
.upgrade-prompt {
    margin-top: 40px;
    padding: 30px;
    background-color: rgba(187, 134, 252, 0.1);
    border: 1px solid #bb86fc;
    border-radius: 12px;
    text-align: center;
}
.upgrade-prompt h3 {
    font-size: 1.8em;
    color: #bb86fc;
    margin-top: 0;
    margin-bottom: 15px;
}
.upgrade-prompt p {
    font-size: 1.1em;
    color: #ccc;
    max-width: 500px;
    margin: 0 auto 25px auto;
}

/* 요금제 페이지 (pricing.html) */
.pricing-page .page-header {
    text-align: center;
    margin-bottom: 60px;
}
.pricing-page .page-header h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
}
.pricing-page .page-header p {
    font-size: 1.3em;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}
.price-card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}
.price-card.recommended {
    border-color: #bb86fc;
    box-shadow: 0 0 25px rgba(187, 134, 252, 0.3);
    transform: scale(1.05);
}
.price-card .card-header {
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
    margin-bottom: 30px;
    position: relative;
}
.price-card.recommended .card-header {
    border-bottom-color: #444;
}
.price-card h3 {
    font-size: 2em;
    margin: 0 0 10px;
}
.price-card .price {
    font-size: 2.5em;
    font-weight: bold;
    color: #bb86fc;
}
.price-card .price span {
    font-size: 0.5em;
    font-weight: normal;
    color: #ccc;
}
.recommended-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #bb86fc;
    color: #121212;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9em;
    font-weight: bold;
}
.price-card .card-body {
    flex-grow: 1;
}
.price-card .card-body p {
    color: #ccc;
    margin-bottom: 30px;
}
.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.price-card li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.05em;
}
.price-card .check-icon {
    color: #03dac6;
    margin-right: 10px;
    font-weight: bold;
}
.price-card .card-footer {
    margin-top: 30px;
}

/* 꿈 상징 사전 페이지 (dream-dictionary.html) */
.dictionary-page .page-header {
    text-align: center;
    margin-bottom: 60px;
}
.dictionary-page .page-header h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
}
.dictionary-page .page-header p {
    font-size: 1.3em;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}
.dictionary-page .card-emoji {
    font-size: 3em; /* 홈 페이지보다 약간 작게 조정 */
}

/* 블로그 페이지 (blog.html) */
.blog-page .page-header {
    text-align: center;
    margin-bottom: 60px;
}
.blog-page .page-header h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
}
.blog-page .page-header p {
    font-size: 1.3em;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

/* 문의하기 페이지 (contact.html) */
.contact-page .page-header {
    text-align: center;
    margin-bottom: 60px;
}
.contact-page .page-header h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
}
.contact-page .page-header p {
    font-size: 1.3em;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}
.contact-card {
    max-width: 600px;
    margin: 0 auto 60px;
    background-color: #1e1e1e;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}
.contact-card .form-group {
    margin-bottom: 25px;
}
.contact-card input[type="text"],
.contact-card input[type="email"],
.contact-card textarea {
    width: 100%;
    padding: 15px;
    background-color: #121212;
    border: 1px solid #333;
    border-radius: 8px;
    color: #f0f0f0;
    font-size: 1em;
    font-family: 'Noto Sans KR', sans-serif;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-card input[type="text"]:focus,
.contact-card input[type="email"]:focus,
.contact-card textarea:focus {
    outline: none;
    border-color: #bb86fc;
    box-shadow: 0 0 15px rgba(187, 134, 252, 0.2);
}
.contact-card input[type="text"]::placeholder,
.contact-card input[type="email"]::placeholder,
.contact-card textarea::placeholder {
    color: #666;
}
.contact-card textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-card .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}


/* --- 푸터 --- */
.site-footer {
    background-color: #1e1e1e;
    border-top: 1px solid #333;
    padding: 30px 5%;
    text-align: center;
    margin-top: 80px;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-nav ul {
    list-style: none;
    margin: 15px 0 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- 모바일 반응형 --- */
@media (max-width: 992px) {
    .price-card.recommended {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        padding: 15px;
    }
    .logo {
        margin-bottom: 15px;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    .main-nav li {
        margin: 8px 0;
    }

    .hero-section h1, .premium-promo-section h2, .featured-articles h2, .about-page .page-header h1, .pricing-page .page-header h1, .dictionary-page .page-header h1, .blog-page .page-header h1, .contact-page .page-header h1 {
        font-size: 2.5em;
    }
    .hero-section p, .premium-promo-section p, .about-page .page-header p, .pricing-page .page-header p, .dictionary-page .page-header p, .blog-page .page-header p, .contact-page .page-header p {
        font-size: 1.1em;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .contact-card {
        padding: 30px;
    }
}
