/* 기본 설정 및 변수 */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #0ea5e9;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* 전체 리셋 및 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

/* 헤더 스타일링 */
header {
    background: linear-gradient(135deg, #a8c0ff, #3f2b96);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.25rem;
    background: linear-gradient(to right, #fff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    list-style: none;
    padding: 0.5rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 메인 컨텐츠 스타일링 */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

section {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

h2 {
    color: var(--dark);
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* 필터 버튼 스타일링 개선 */
.prediction-filters {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin: 2rem 0 3rem 0;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.filter-btn {
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 1rem;
    background: white;
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.15);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
}

/* 예언가 섹션 스타일링 */
.prophet-predictions-section {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prophet-predictions-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.prophet-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-right: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.prophet-header h3 {
    font-size: 1.75rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.prophet-header h3 a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.prophet-header h3 a:hover {
    color: var(--primary);
}

.prophet-image {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 160px;
    height: 160px;
    border-radius: 1.2rem;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    mask-image: linear-gradient(to left, 
        rgba(0, 0, 0, 1) 85%, 
        rgba(0, 0, 0, 0)
    );
    -webkit-mask-image: linear-gradient(to left, 
        rgba(0, 0, 0, 1) 85%, 
        rgba(0, 0, 0, 0)
    );
}

.prophet-image:hover {
    transform: scale(1.05);
}

.prophet-period, .prophet-origin, .prophet-work {
    color: var(--gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 예언 카드 그리드 */
.prophet-predictions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding-top: 1rem;
}

/* 예언 카드 스타일링 */
.prediction-card {
    background: white;
    padding: 1.75rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    position: relative;
}

.prediction-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.prediction-content {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-right: 5rem;
    color: var(--dark);
    line-height: 1.5;
}

.prediction-year {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.prediction-details {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
}

.status-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.02em;
}

.status-badge.fulfilled {
    background-color: var(--success);
}

.status-badge.pending {
    background-color: var(--warning);
}

.status-badge.failed {
    background-color: var(--danger);
}

/* 통계 섹션 스타일링 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-box {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-4px);
}

.stat-box h3 {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.stat-box p {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* 비교 도구 스타일링 */
.prophecy-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.prophecy-selector select {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--dark);
    background: white;
}

#compare-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#compare-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* 푸터 스타일링 */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .prophecy-selector {
        grid-template-columns: 1fr;
    }

    .prophet-predictions {
        grid-template-columns: 1fr;
    }

    .prediction-card {
        margin-bottom: 1rem;
    }

    .status-badge {
        position: static;
        display: inline-block;
        margin-top: 1rem;
    }

    .prediction-filters {
        gap: 0.8rem;
        margin: 1.5rem 0 2rem 0;
    }

    .filter-btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.95rem;
        width: calc(33.33% - 0.6rem); /* 3개씩 정렬 */
        text-align: center;
    }
}

/* 애니메이션 효과 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
} 