/**
 * 캐치매치 (catchmatch) - Project Styles
 * NSKit Framework v1.0.1
 */

:root {
    --catchmatch-primary: #4A90E2;
    --catchmatch-secondary: #50E3C2;
    --catchmatch-accent: #F5A623;
    --catchmatch-dark: #2C3E50;
    --catchmatch-light: #ECF0F1;
    --catchmatch-success: #27AE60;
    --catchmatch-warning: #F39C12;
    --catchmatch-danger: #E74C3C;
    --catchmatch-info: #3498DB;
}

body {
    font-family: 'Spoqa Han Sans Neo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    color: var(--catchmatch-dark);
}

/* NSKit 기본 레이아웃 오버라이드 */
.nskit-app {
    /* 필요시 NSKit 기본 스타일 오버라이드 */
}

/* 프로젝트 커스텀 컴포넌트 */
.index-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.index-container h1 {
    color: var(--catchmatch-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.index-container h2 {
    color: var(--catchmatch-secondary);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

/* 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--catchmatch-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #357ABD;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: var(--catchmatch-secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #3FD4B3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ========================================
   Sub Page Styles (NSKit v1 Page Override)
   ======================================== */
.sub-page-header {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: white;
    border-bottom: 1px solid #E5E7EB;
    gap: 12px;
}

.sub-page-header .page-header-default {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.sub-page-header .page-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sub-page-header .page-header-buttons {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
}

.sub-page-content {
    height: calc(100% - 56px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sub-page-content.with-footer {
    height: calc(100% - 56px - 60px);
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
    text-align: center;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .index-container {
        padding: 20px 15px;
    }

    .index-container h1 {
        font-size: 2rem;
    }

    .index-container h2 {
        font-size: 1.5rem;
    }
}
