/* ==================== 출석 체크 이벤트 스타일 ==================== */

/* 모달 컨테이너 중앙 정렬 */
.modal__content--attendance-welcome,
.modal__content--attendance,
.modal__content--attendance-complete,
.modal__content--attendance-failed {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: none;
    width: auto;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* 환영 모달 */
.attendance-welcome {
    padding: 40px 24px;
    text-align: center;
    background: linear-gradient(180deg, #1e1b29 0%, #252233 100%);
    border-radius: 24px;
    box-sizing: border-box;
    max-width: 380px;
    width: calc(100vw - 40px);
    border: 1px solid rgba(111, 92, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.attendance-welcome__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.attendance-welcome__title {
    font-size: 24px;
    font-weight: 700;
    color: #e8e6f0;
    margin-bottom: 20px;
}

.attendance-welcome__desc {
    font-size: 16px;
    color: #b8b5c8;
    line-height: 1.6;
    margin-bottom: 24px;
}

.attendance-welcome__rewards {
    background: rgba(111, 92, 255, 0.1);
    border: 1px solid rgba(111, 92, 255, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.reward-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
}

.reward-item__icon {
    font-size: 24px;
}

.reward-item__text {
    font-size: 16px;
    font-weight: 600;
    color: #e8e6f0;
}

.attendance-welcome__notice {
    font-size: 14px;
    color: #b8b5c8;
    margin-bottom: 24px;
    line-height: 1.6;
}

.attendance-welcome__start {
    width: 100%;
    margin-bottom: 16px;
}

.attendance-welcome__close {
    background: none;
    border: none;
    color: #b8b5c8;
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.attendance-welcome__close:hover {
    color: #e8e6f0;
}

/* 출석 체크 모달 */
.attendance-check {
    padding: 24px;
    background: #1e1b29;
    border-radius: 24px;
    max-width: 380px;
    width: calc(100vw - 40px);
    box-sizing: border-box;
    border: 1px solid rgba(111, 92, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.attendance-check__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.attendance-check__title {
    font-size: 18px;
    font-weight: 700;
    color: #e8e6f0;
}

.attendance-check__close {
    background: none;
    border: none;
    color: #b8b5c8;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.attendance-check__close:hover {
    color: #e8e6f0;
}

/* 출석 일자 카드 */
.attendance-days {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.attendance-day {
    flex: 1;
    background: rgba(111, 92, 255, 0.05);
    border: 2px solid rgba(111, 92, 255, 0.2);
    border-radius: 16px;
    padding: 16px 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.attendance-day--active {
    border-color: #6f5cff;
    background: rgba(111, 92, 255, 0.15);
}

.attendance-day--checked {
    background: linear-gradient(135deg, rgba(111, 92, 255, 0.2) 0%, rgba(155, 136, 255, 0.1) 100%);
    border-color: #6f5cff;
}

.attendance-day__label {
    font-size: 12px;
    color: #b8b5c8;
    margin-bottom: 8px;
    font-weight: 600;
}

.attendance-day__status {
    font-size: 32px;
    margin: 8px 0;
    color: #b8b5c8;
}

.attendance-day--checked .attendance-day__status {
    color: #6f5cff;
    animation: checkmarkAppear 0.5s ease-out;
}

.attendance-day__text {
    font-size: 12px;
    color: #b8b5c8;
    margin-top: 4px;
}

.attendance-day--checked .attendance-day__text {
    color: #6f5cff;
    font-weight: 600;
}

.attendance-day--active .attendance-day__text {
    color: #6f5cff;
    font-weight: 600;
}

/* 체크마크 애니메이션 */
@keyframes checkmarkAppear {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* 진행 바 */
.attendance-progress {
    background: rgba(111, 92, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.attendance-progress__bar {
    height: 8px;
    background: rgba(111, 92, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.attendance-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, #6f5cff 0%, #9b88ff 100%);
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.attendance-progress__text {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #e8e6f0;
}

/* 메시지 */
.attendance-message {
    margin: 20px 0;
    text-align: center;
}

.attendance-message__text {
    font-size: 15px;
    color: #b8b5c8;
    line-height: 1.6;
}

/* 버튼 */
.attendance-check__action {
    width: 100%;
    margin-bottom: 16px;
}

.attendance-check__action:disabled {
    background: rgba(111, 92, 255, 0.3);
    cursor: not-allowed;
    opacity: 0.6;
}

/* 보상 정보 */
.attendance-reward-info {
    text-align: center;
    font-size: 13px;
    color: #b8b5c8;
    padding: 12px;
    background: rgba(245, 211, 108, 0.1);
    border-radius: 8px;
}

.attendance-reward-info__label {
    color: #f5d36c;
    font-weight: 700;
    margin-right: 4px;
}

/* 완료 축하 모달 */
.attendance-complete {
    padding: 40px 24px;
    text-align: center;
    background: linear-gradient(180deg, #252233 0%, #1e1b29 100%);
    border-radius: 24px;
    box-sizing: border-box;
    max-width: 380px;
    width: calc(100vw - 40px);
    border: 1px solid rgba(111, 92, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.attendance-complete__confetti {
    font-size: 64px;
    margin-bottom: 16px;
    animation: celebrate 1s ease-in-out;
}

@keyframes celebrate {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.2); 
    }
}

.attendance-complete__title {
    font-size: 28px;
    font-weight: 700;
    color: #e8e6f0;
    margin-bottom: 12px;
}

.attendance-complete__desc {
    font-size: 16px;
    color: #b8b5c8;
    margin-bottom: 8px;
}

.attendance-complete__subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #6f5cff;
    margin-bottom: 24px;
}

.attendance-complete__rewards {
    background: linear-gradient(135deg, rgba(111, 92, 255, 0.2) 0%, rgba(155, 136, 255, 0.1) 100%);
    border: 2px solid rgba(111, 92, 255, 0.4);
    border-radius: 20px;
    padding: 24px 16px;
    margin-bottom: 20px;
}

.reward-ticket {
    padding: 16px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.reward-ticket:last-child {
    margin-bottom: 0;
}

.reward-ticket__icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.reward-ticket__name {
    font-size: 16px;
    font-weight: 600;
    color: #e8e6f0;
}

.attendance-complete__notice {
    font-size: 14px;
    color: #b8b5c8;
    margin-bottom: 24px;
    line-height: 1.6;
}

.attendance-complete__claim {
    width: 100%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.02); 
    }
}

/* 실패 안내 모달 */
.attendance-failed {
    padding: 40px 24px;
    text-align: center;
    background: #1e1b29;
    border-radius: 24px;
    box-sizing: border-box;
    max-width: 380px;
    width: calc(100vw - 40px);
    border: 1px solid rgba(111, 92, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.attendance-failed__icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.attendance-failed__title {
    font-size: 20px;
    font-weight: 700;
    color: #e8e6f0;
    margin-bottom: 20px;
}

.attendance-failed__desc {
    font-size: 16px;
    color: #b8b5c8;
    line-height: 1.6;
    margin-bottom: 16px;
}

.attendance-failed__notice {
    font-size: 14px;
    color: #ffa06c;
    line-height: 1.6;
    margin-bottom: 24px;
}

.attendance-failed__confirm {
    width: 100%;
}

/* 헤더 티켓 카운트 애니메이션 */
@keyframes ticketIncrease {
    0% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.3); 
        color: #f5d36c; 
    }
    100% { 
        transform: scale(1); 
    }
}

.header__ticket--updated {
    animation: ticketIncrease 0.6s ease-in-out;
}

/* 반응형 - 모바일 (360px ~ 430px) */
@media (max-width: 430px) {
    .attendance-check {
        width: calc(100vw - 40px);
        max-width: 390px;
    }
    
    .attendance-days {
        gap: 8px;
    }
    
    .attendance-day {
        padding: 12px 4px;
    }
    
    .attendance-day__label {
        font-size: 11px;
    }
    
    .attendance-day__status {
        font-size: 28px;
    }
}

@media (max-width: 360px) {
    .attendance-complete__title {
        font-size: 24px;
    }
    
    .reward-ticket__icon {
        font-size: 40px;
    }
    
    .attendance-complete__confetti {
        font-size: 56px;
    }
    
    .attendance-welcome__icon {
        font-size: 40px;
    }
}

/* 터치 영역 최적화 */
.btn--large {
    min-height: 52px;
    padding: 16px 24px;
    font-size: 16px;
}

.attendance-check__close {
    min-width: 44px;
    min-height: 44px;
}

/* 접근성 (스크린 리더용) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* my-page */
/* 출석체크 이벤트 배너 */
.attendance-banner {
    margin: 16px 0 16px 0;
    padding: 20px;
    background: linear-gradient(135deg, #6f5cff 0%, #9b88ff 50%, #7c6bff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(111, 92, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.attendance-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 211, 108, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.attendance-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 92, 255, 0.5);
}

.attendance-banner__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.attendance-banner__left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.attendance-banner__icon {
    font-size: 32px;
    line-height: 1;
}

.attendance-banner__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.attendance-banner__title {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.attendance-banner__desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.attendance-banner__arrow {
    font-size: 20px;
    color: white;
    font-weight: 700;
}

.attendance-banner__progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.attendance-banner__progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.attendance-banner__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f5d36c 0%, #ffd966 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(245, 211, 108, 0.5);
}

.attendance-banner__progress-text {
    font-size: 12px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}
