/**
 * 공지 팝업 슬라이더 스타일 (Light / Indigo)
 * ExoDesign Notice Popup Component
 */

/* 팝업 오버레이 */
.notice-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 13, 20, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.notice-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 팝업 컨테이너 */
.notice-popup-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    box-shadow:
        0 36px 70px -28px rgba(20, 22, 50, 0.35),
        0 0 0 4px rgba(79, 70, 229, 0.06);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.notice-popup-overlay.show .notice-popup-container {
    transform: translateY(0) scale(1);
}

/* 닫기 버튼 */
.notice-popup-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 34px;
    height: 34px;
    background: #ffffff;
    border: 1px solid #e7e8ee;
    border-radius: 50%;
    color: #0c0d14;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 6px 16px -6px rgba(12, 13, 20, .4);
}

.notice-popup-close:hover {
    background: #f3f3fb;
    transform: rotate(90deg);
}

/* 카드 슬라이더 래퍼 */
.notice-popup-slider {
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: #ffffff;
    border: 1px solid #ebecf0;
    border-bottom: none;
}

/* 카드 트랙 */
.notice-popup-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 개별 카드 */
.notice-popup-card {
    flex-shrink: 0;
    width: 100%;
    padding: 2rem;
    background: #ffffff;
}

/* 카드 이미지 */
.notice-popup-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #eef0fe 0%, #e6f6fb 100%);
    border: 1px solid #ebecf0;
}

/* 카드 제목 */
.notice-popup-title {
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0c0d14;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* 카드 내용 */
.notice-popup-content {
    font-size: 1rem;
    color: #44454f;
    line-height: 1.7;
    white-space: pre-wrap;
}

/* 자세히 보기 버튼 */
.notice-popup-link-btn {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.8rem 1.6rem;
    background: #4338ca;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 12px 28px -12px rgba(67, 56, 202, 0.6);
}

.notice-popup-link-btn:hover {
    background: #3730a3;
    transform: translateY(-2px);
}

/* 슬라이더 컨트롤 영역 */
.notice-popup-controls {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    padding: 0.7rem 1.5rem;
    background: #f7f8fa;
    border: 1px solid #ebecf0;
    border-radius: 0 0 20px 20px;
}

/* 인디케이터 (점) */
.notice-popup-indicators {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.notice-popup-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d9dae1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notice-popup-indicator.active {
    background: #4338ca;
    width: 24px;
    border-radius: 4px;
}

.notice-popup-indicator:hover:not(.active) {
    background: #b9bbc6;
}

/* 오늘 하루 보지 않기 */
.notice-popup-skip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #74757f;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.2s;
}

.notice-popup-skip:hover {
    color: #0c0d14;
}

.notice-popup-skip input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4338ca;
    cursor: pointer;
}

/* 네비게이션 화살표 */
.notice-popup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #e7e8ee;
    border-radius: 50%;
    color: #0c0d14;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 5;
    box-shadow: 0 6px 16px -6px rgba(12, 13, 20, .25);
}

.notice-popup-nav:hover {
    background: #4338ca;
    border-color: #4338ca;
    color: #fff;
}

.notice-popup-nav.prev {
    left: -20px;
}

.notice-popup-nav.next {
    right: -20px;
}

.notice-popup-nav:disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* 숨김 (공지 1개일 때) */
.notice-popup-nav.hidden,
.notice-popup-indicators.hidden {
    display: none;
}

/* 반응형 */
@media (max-width: 640px) {
    .notice-popup-container {
        max-width: 100%;
    }

    .notice-popup-card {
        padding: 1.5rem;
    }

    .notice-popup-title {
        font-size: 1.25rem;
    }

    .notice-popup-content {
        font-size: 0.9rem;
    }

    .notice-popup-image {
        height: 140px;
    }

    .notice-popup-nav {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .notice-popup-nav.prev {
        left: 10px;
    }

    .notice-popup-nav.next {
        right: 10px;
    }

    .notice-popup-close {
        top: -40px;
    }
}

/* 애니메이션 */
@keyframes noticeSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notice-popup-card.animating {
    animation: noticeSlideIn 0.3s ease-out;
}
