/* css/pages.css - 각 페이지별 고유 스타일 */

/* ===== 페이지 - 테스트 목록 ===== */
.page-tests .filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    max-width: 340px;
}

.search-input-wrap .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-input-wrap input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.search-input-wrap input:focus {
    outline: none;
    border-color: var(--purple-primary);
}

/* ===== 페이지 - 테스트 상세 ===== */
.test-detail-header {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.test-detail-header .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.test-detail-header .breadcrumb span:hover {
    color: var(--purple-light);
}

.test-cover {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 16/9;
    background: var(--grad-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    margin: 0 auto 2rem;
}

.test-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.test-meta-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.1rem;
    text-align: center;
}

.test-meta-item .label {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-bottom: 0.35rem;
}

.test-meta-item .value {
    font-weight: 700;
    font-size: 1rem;
}

.test-content-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.test-content-section h2 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--purple-light);
}

.test-content-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre-line;
}

/* ===== 페이지 - 테스트 플레이 ===== */
.test-play-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 3rem var(--container-pad);
}

.question-number {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.question-text {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.answer-option {
    padding: 1.1rem 1.5rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-size: 0.95rem;
    color: var(--text-secondary);
    width: 100%;
}

.answer-option:hover {
    border-color: var(--purple-primary);
    background: rgba(139, 92, 246, 0.08);
    color: var(--text-primary);
    transform: translateX(4px);
}

.answer-option.selected {
    border-color: var(--purple-primary);
    background: rgba(139, 92, 246, 0.15);
    color: var(--text-primary);
}

/* ===== 페이지 - 결과 ===== */
.result-page-wrap {
    max-width: 740px;
    margin: 0 auto;
    padding: 3rem var(--container-pad);
}

.result-related {
    margin-top: 3rem;
}

.result-related h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

/* ===== 페이지 - 아티클 상세 ===== */
.article-detail-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem var(--container-pad);
}

.article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.article-header .article-category {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--indigo);
    margin-bottom: 0.75rem;
}

.article-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.article-header .meta {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.article-body {
    color: var(--text-secondary);
    line-height: 1.85;
    font-size: 1.02rem;
}

.article-body h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
}

.article-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 0.75rem;
}

.article-body p {
    margin-bottom: 1.25rem;
}

.article-body ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-body em {
    color: var(--purple-light);
    font-style: italic;
}

/* ===== 페이지 - About ===== */
.about-hero {
    text-align: center;
    padding: 4rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.about-feature {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
}

.about-feature .icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.about-feature h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.about-feature p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-feature-grid {
        grid-template-columns: 1fr;
    }

    .test-meta-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== 페이지 - Contact ===== */
.contact-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 3rem var(--container-pad);
    text-align: center;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem 2rem;
}

/* ===== 페이지 - Privacy / Terms ===== */
.legal-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem var(--container-pad);
}

.legal-wrap h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.legal-wrap .last-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 3rem;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--purple-light);
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.legal-section ul {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-section li {
    margin-bottom: 0.35rem;
}

/* ===== 노티피케이션 토스트 ===== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    box-shadow: var(--shadow-card);
    z-index: 9999;
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}