/**
 * 파일경로: /assets/css/ll-header.css
 * 파일역할: Header & Today/Magic Button Styles (Ver 3.0 - Full Integrity)
 * * [포함] 헤더 레이아웃, 프로필 버튼, 커넥터 배지
 * * [포함] 투데이 버튼의 3가지 상태 (기본/완료/매직) 스타일
 */

/* ------------------------------------------------------- */
/* 1. Global Header (Sticky) */
/* ------------------------------------------------------- */
.ll-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px; /* 상하 여백 축소 */
    background-color: #f5f6fa; /* var(--ll-bg-body) 대응 */
    position: sticky;
    top: 0;
    z-index: 100;
    /* 스크롤 시 그림자 효과는 JS로 추가 가능 */
}

.ll-header-left {
    display: flex;
    align-items: center;
}

.ll-header-logo {
    font-size: 20px;
    font-weight: 800;
    color: #4b7bec; /* var(--ll-color-primary) 대응 */
    cursor: pointer;
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1;
}

.ll-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 프로필 버튼 */
.ll-header-btn {
    background: #fff;
    border: 1px solid #e0e0e0; /* var(--ll-border-color) */
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    color: #2d3436; /* var(--ll-text-main) */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* var(--ll-shadow-card) */
    transition: transform 0.1s;
}

.ll-header-btn:active {
    transform: scale(0.95);
}

/* 보호자 연결 배지 */
.ll-connector-badge {
    display: none; /* JS에서 제어 */
    align-items: center;
    font-size: 11px;
    background: #e5edff; /* var(--ll-color-primary-soft) */
    color: #3867d6;      /* var(--ll-color-primary-dark) */
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
}

/* ------------------------------------------------------- */
/* 2. Today / Magic Button Section */
/* ------------------------------------------------------- */
.ll-today-section {
    margin: 10px 0; /* 상하 여백 축소 */
    padding: 0 5px; /* 좌우 여백 미세 조정 */
}

.ll-today-btn {
    width: 100%;
    /* 기본 상태 (미완료): 보라-파랑 그라디언트 */
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    border-radius: 14px; /* var(--ll-radius-md) */
    padding: 14px 18px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(37, 117, 252, 0.3); /* var(--ll-shadow-float) */
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ll-today-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(37, 117, 252, 0.2);
}

/* 텍스트 영역 */
.ll-today-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ll-today-label {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    transition: color 0.3s;
}

.ll-today-sub {
    font-size: 12px;
    opacity: 0.85;
    font-weight: 400;
    transition: color 0.3s;
}

/* 우측 아이콘 */
.ll-today-icon {
    font-size: 24px;
    opacity: 1;
    transition: transform 0.3s;
}

/* 진행률 배경 바 (옵션) */
.ll-today-progress-bg {
    position: absolute;
    left: 0; bottom: 0;
    height: 4px;
    background: rgba(255,255,255,0.3);
    width: 0%; /* JS로 제어 가능 */
    transition: width 0.5s;
}

/* ------------------------------------------------------- */
/* 3. Button State Variants */
/* ------------------------------------------------------- */

/* 상태: 완료 (기본 초록) */
.ll-today-btn.is-completed {
    background: linear-gradient(135deg, #20bf6b 0%, #0eb87f 100%);
    box-shadow: 0 4px 15px rgba(32, 191, 107, 0.3);
}

/* 상태: 매직 버튼 (질환 특화) */
/* 배경색과 텍스트 색상은 JS에서 인라인 스타일로 덮어씌움 */
.ll-today-btn.is-magic {
    border: 1px solid rgba(0,0,0,0.05); /* 밝은 배경일 때 경계선 */
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.ll-today-btn.is-magic .ll-today-label {
    font-size: 20px; /* 조금 더 크게 강조 */
}

.ll-today-btn.is-magic .ll-today-icon {
    font-size: 32px;
    transform: scale(1.1);
}

/* 액션 시트 버튼 스타일 (JS에서 동적 생성되지만 CSS 정의 권장) */
.ll-sheet-btn:active {
    transform: scale(0.98);
    opacity: 0.8;
}