@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");

:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --accent: #f97316;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --success: #10b981;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* 히어로 섹션 */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 3rem 1rem 4rem;
    margin-bottom: -2rem;
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3rem;
    background: var(--bg-main);
    border-radius: 2rem 2rem 0 0;
}

.hero-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.badge-label {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.hero-desc {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

/* 안내 카드 */
.info-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin: 1rem 0 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.info-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    color: var(--success);
    border-radius: 50%;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* 아코디언 스타일 오버라이드 */
.accordion {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 6rem;
}

.accordion-item {
    border: none;
    background: var(--bg-card);
}

.accordion-item:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.accordion-button {
    font-weight: 600;
    font-size: 1rem;
    padding: 1.1rem 1.25rem;
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: none !important;
    transition: background 0.2s;
}

.accordion-button:not(.collapsed) {
    background: #f1f5f9;
    color: var(--primary);
}

.accordion-button::after {
    background-size: 1rem;
    transition: transform 0.3s ease;
}

.accordion-body {
    padding: 0;
    background: #fafbfc;
}

.list-group {
    border-radius: 0 !important;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent !important;
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-primary) !important;
    transition: background 0.15s;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background: rgba(37, 99, 235, 0.04) !important;
}

.form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.form-check-input:checked {
    background-color: var(--success);
    border-color: var(--success);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.list-group-item:has(.form-check-input:checked) {
    color: var(--text-muted) !important;
    text-decoration: line-through;
}

/* 진행률 플로팅 바 */
.progress-floating {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
    z-index: 1000;
    min-width: 200px;
    max-width: 90%;
}

.progress-info {
    text-align: center;
    margin-bottom: 0.5rem;
}

#progressText {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.progress-track {
    height: 6px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), #34d399);
    border-radius: 10px;
    transition: width 0.4s ease;
    width: 0%;
}

/* 푸터 */
footer {
    background: var(--text-primary);
    color: white;
    padding: 2rem 1rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo strong {
    font-size: 0.95rem;
}

.footer-logo span {
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.footer-btn:hover {
    background: white;
    color: var(--text-primary);
    border-color: white;
}

/* 기존 호환성 */
.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}

.instagram-btn:hover {
    background: white;
    color: var(--text-primary);
    border-color: white;
}

.footer-note {
    font-size: 0.8rem;
    opacity: 0.6;
    margin: 0;
    text-align: center;
}

/* 반응형 */
@media (min-width: 768px) {
    .hero-section {
        padding: 4rem 1rem 5rem;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .info-card {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
    
    .progress-floating {
        min-width: 280px;
    }
}

/* 기존 Bootstrap 클래스 리셋 */
.bg-light {
    background-color: var(--bg-main) !important;
}

.text-dark {
    color: var(--text-primary) !important;
}