/* Universe - 페이지 레이아웃 공통 스타일 */

/* 페이지 컨테이너 */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg);
}

.page-container.narrow {
    max-width: 800px;
}

.page-container.wide {
    max-width: 1400px;
}

/* 페이지 헤더 */
.page-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.page-title {
    font-size: var(--font-4xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-description {
    font-size: var(--font-md);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* 섹션 */
.section {
    background: var(--card-gradient);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.section-title {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.section-icon {
    font-size: var(--font-3xl);
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* 로딩 오버레이 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    text-align: center;
    color: var(--text-primary);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(100, 255, 218, 0.2);
    border-top: 4px solid var(--text-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-lg);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: var(--font-lg);
    margin-bottom: var(--space-sm);
}

.loading-subtext {
    font-size: var(--font-sm);
    color: rgba(255, 255, 255, 0.7);
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: var(--space-xxl);
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
}

.empty-state-title {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.empty-state-description {
    font-size: var(--font-md);
    color: var(--text-secondary);
}

/* 결과 섹션 */
.result-section {
    background: var(--card-gradient);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    text-align: center;
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.result-section.show {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-title {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--text-accent);
    margin-bottom: var(--space-lg);
}

.result-content {
    font-size: var(--font-md);
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.result-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* VS 디바이더 */
.vs-divider {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent-gradient);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-xl);
    font-weight: bold;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* 액션 버튼 영역 */
.action-section {
    text-align: center;
    margin: var(--space-xl) 0;
}

/* 모바일 애니메이션 */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 - 태블릿 */
@media (max-width: 1024px) {
    .page-container,
    .page-container.wide {
        max-width: 100%;
    }
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
    /* 컨테이너 최적화 */
    .page-container {
        padding: var(--space-md);
        margin-top: var(--space-md);
    }

    .page-container.narrow,
    .page-container.wide {
        max-width: 100%;
        padding: var(--space-md);
    }

    /* 헤더 최적화 */
    .page-header {
        margin-bottom: var(--space-lg);
        padding: var(--space-md);
    }

    .page-title {
        font-size: var(--font-2xl);
        margin-bottom: var(--space-sm);
    }

    .page-description {
        font-size: var(--font-sm);
        line-height: 1.5;
    }

    /* 섹션 최적화 */
    .section {
        padding: var(--space-md);
        margin-bottom: var(--space-md);
    }

    .section-header {
        margin-bottom: var(--space-md);
    }

    .section-title {
        font-size: var(--font-lg);
        margin-bottom: var(--space-xs);
    }

    .section-icon {
        font-size: var(--font-2xl);
    }

    /* 결과 섹션 최적화 */
    .result-section {
        padding: var(--space-md);
    }

    .result-content {
        padding: var(--space-md);
    }

    /* 액션 섹션 최적화 */
    .action-section {
        padding: var(--space-md);
    }

    .result-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .result-actions .btn {
        width: 100%;
        min-height: 44px;
    }

    /* VS 디바이더 최적화 */
    .vs-divider {
        position: static;
        transform: none;
        margin: var(--space-md) auto;
        width: 60px;
        height: 60px;
        font-size: var(--font-xl);
    }

    /* 로딩 상태 최적화 */
    .loading-overlay {
        padding: var(--space-md);
    }

    .loading-content {
        padding: var(--space-lg);
    }

    .loading-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }

    .loading-text {
        font-size: var(--font-sm);
        margin-top: var(--space-md);
    }

    /* 빈 상태 최적화 */
    .empty-state {
        padding: var(--space-xl) var(--space-md);
    }

    .empty-state-icon {
        font-size: 3rem;
        margin-bottom: var(--space-md);
    }

    .empty-state-title {
        font-size: var(--font-lg);
        margin-bottom: var(--space-sm);
    }

    .empty-state-description {
        font-size: var(--font-sm);
        margin-bottom: var(--space-lg);
    }
}
