/**
 * 파일경로: /assets/css/lifelink-challenge.css
 * 파일역할: Challenge Club Main & Detail Styles (Ver 2.2 - Polished UI)
 * * [기존 파일 전체 교체]
 */

/* --- 1. Main Layout --- */
.ll-club-header-main {
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
}
.ll-club-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.ll-club-title { font-size: 22px; font-weight: 800; margin: 0; color: #2d3436; }

/* Tabs */
.ll-club-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; }
.ll-club-tab {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid #eee;
    background: #f9f9f9;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.ll-club-tab.active {
    background: #2d3436;
    color: #fff;
    border-color: #2d3436;
}

/* --- 2. Banner Card (Design Fix) --- */
.ll-club-banner { margin: 20px; }

.ll-today-card {
    border-radius: 24px;
    padding: 30px 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: left; /* 왼쪽 정렬로 변경 */
}

/* State A: 참여 중 (Blue) */
.ll-today-card.is-my-challenge { 
    background: linear-gradient(135deg, #4b7bec 0%, #3867d6 100%); 
}
/* State B: 추천 (Orange) */
.ll-today-card.is-recommendation { 
    background: linear-gradient(135deg, #fab1a0 0%, #e17055 100%); 
}
/* State C: 없음 (Gray) */
.ll-today-card.is-empty {
    background: #dfe6e9;
    color: #636e72;
    text-align: center;
}

.ll-card-label {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    padding: 5px 12px; 
    border-radius: 12px; 
    font-size: 12px; 
    font-weight: 700;
    display: inline-block; 
    margin-bottom: 15px;
}

.ll-card-title { 
    font-size: 24px; 
    font-weight: 800; 
    margin: 0 0 10px 0; 
    line-height: 1.3;
    color: #fff;
}

.ll-card-desc { 
    font-size: 15px; 
    opacity: 0.95; 
    margin: 0 0 25px 0; 
    color: #fff;
    font-weight: 500;
}

.ll-card-bottom { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: auto;
}

.ll-mini-progress { flex: 1; margin-right: 20px; }
.ll-prog-text { font-size: 12px; display: block; margin-bottom: 6px; font-weight: 600; }
.ll-prog-bar { height: 8px; background: rgba(0,0,0,0.2); border-radius: 4px; overflow: hidden; }
.ll-prog-bar .fill { height: 100%; background: #fff; border-radius: 4px; }

.ll-btn-sm {
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.ll-btn-sm.ll-btn-primary { background: #fff; color: #4b7bec; }
.ll-btn-sm.ll-btn-secondary { background: rgba(255,255,255,0.3); color: #fff; }


/* --- 3. List Styles --- */
.ll-club-body { display: flex; flex-direction: column; gap: 15px; padding: 0 20px; }

.ll-club-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}
.ll-club-card:active { transform: scale(0.98); }

.ll-club-header { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 10px; }
.ll-ch-icon { 
    font-size: 28px; 
    background: #f5f6fa; 
    width: 50px; height: 50px; 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 16px; 
}
.ll-club-card h3 { margin: 0 0 5px 0; font-size: 17px; font-weight: 700; color: #2d3436; }
.ll-tag { font-size: 11px; color: #636e72; background: #f1f2f6; padding: 3px 8px; border-radius: 6px; font-weight: 600; }
.ll-club-desc { font-size: 14px; color: #636e72; margin: 0; line-height: 1.5; }

.ll-club-progress-bar {
    height: 5px; background: #f1f2f6; border-radius: 3px; margin-top: 15px; overflow: hidden;
}
.ll-club-progress-bar div { height: 100%; background: #20bf6b; border-radius: 3px; }


/* --- 4. Intro View Detail (Clean Card Style) --- */
.ll-intro-hero {
    text-align: center; 
    padding: 40px 20px 50px; 
    background: #e3f2fd;
    border-bottom-left-radius: 40px; 
    border-bottom-right-radius: 40px;
    margin-bottom: -30px; /* 카드와 겹치게 */
}
.ll-intro-icon-box {
    width: 80px; height: 80px; margin: 0 auto 20px;
    background: #fff; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
#ll-intro-title { font-size: 26px; font-weight: 800; color: #1565c0; margin: 0 0 8px; }
#ll-intro-subtitle { font-size: 15px; color: #546e7a; font-weight: 500; }

.ll-intro-card { 
    background: #fff;
    border-radius: 24px;
    padding: 30px 24px;
    margin: 0 20px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    z-index: 5;
}
.ll-intro-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 15px; color: #2d3436; }
#ll-intro-desc { font-size: 15px; line-height: 1.6; color: #555; margin-bottom: 25px; }

.ll-divider { border: 0; border-top: 1px solid #eee; margin: 25px 0; }

/* 체크리스트 스타일 */
.ll-check-list { list-style: none; padding: 0; margin: 0; }
.ll-check-list li {
    padding-left: 28px; 
    position: relative; 
    margin-bottom: 12px; 
    font-size: 15px; 
    color: #444;
    line-height: 1.4;
}
.ll-check-list li::before {
    content: '✔'; 
    position: absolute; 
    left: 0; top: 0;
    color: #fff;
    background: #4b7bec;
    width: 18px; height: 18px;
    font-size: 11px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* --- 5. Duration Modal --- */
.ll-duration-options { display: flex; flex-direction: column; gap: 12px; }
.ll-btn-chip {
    width: 100%;
    padding: 16px; 
    border: 2px solid #f1f2f6; 
    background: #fff; 
    border-radius: 16px; 
    font-size: 16px; 
    font-weight: 600; 
    color: #2d3436; 
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}
.ll-btn-chip:hover, .ll-btn-chip:active { 
    border-color: #4b7bec; 
    background: #f0f7ff; 
    color: #4b7bec; 
}
/**
 * 파일경로: /assets/css/lifelink-challenge.css
 * 파일역할: Challenge UI Styles (Ver 3.0 - Modal Added)
 */

/* ... (기존 스타일 유지) ... */

/* --- [NEW] Duration Modal Styles --- */
.ll-duration-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ll-btn-chip {
    width: 100%;
    padding: 18px; 
    border: 1px solid #eee; 
    background: #fff; 
    border-radius: 16px; 
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.ll-btn-chip:hover, .ll-btn-chip:active { 
    border-color: #4b7bec; 
    background: #f0f7ff; 
    color: #4b7bec;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 123, 236, 0.15);
}

.ll-btn-chip .period {
    font-size: 17px;
    font-weight: 700;
}

.ll-btn-chip .sub {
    font-size: 13px;
    color: #888;
    font-weight: 400;
}

.ll-btn-chip:active .sub {
    color: #4b7bec;
}

/* Spinner (Loading) */
.ll-spinner {
    width: 30px; height: 30px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top-color: #4b7bec;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* --- [NEW] Feed Write Box --- */
.ll-feed-write-box {
    background: #fff; padding: 20px; margin-bottom: 10px;
    border-bottom: 1px solid #eee; animation: slideDown 0.3s ease;
}
#ll-feed-textarea {
    width: 100%; height: 100px; border: 1px solid #ddd; border-radius: 12px;
    padding: 15px; font-size: 15px; resize: none; outline: none; margin-bottom: 10px;
}
#ll-feed-textarea:focus { border-color: #4b7bec; }

.ll-feed-floating-btn-area {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px;
    background: linear-gradient(to top, #f5f6fa 80%, transparent);
    pointer-events: none; /* 버튼만 클릭되게 */
}
.ll-feed-floating-btn-area button { pointer-events: auto; box-shadow: 0 4px 15px rgba(75, 123, 236, 0.3); }

/* --- [NEW] Ceremony Modal --- */
.ll-ceremony-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 3000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.5s;
}
.ll-ceremony-modal.is-visible { opacity: 1; pointer-events: auto; }
.ll-ceremony-card {
    background: #fff; width: 85%; max-width: 320px; border-radius: 24px;
    padding: 40px 20px; text-align: center; transform: scale(0.8); transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.ll-ceremony-modal.is-visible .ll-ceremony-card { transform: scale(1); }

.ll-ceremony-icon { font-size: 60px; margin-bottom: 20px; display: block; animation: bounce 1s infinite; }
.ll-ceremony-title { font-size: 24px; font-weight: 800; color: #2d3436; margin: 0 0 10px; }
.ll-ceremony-desc { font-size: 15px; color: #636e72; margin-bottom: 30px; line-height: 1.5; }

@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes slideDown { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }