/**
 * 홈페이지 공지사항浮窗 스타일
 * 플라이주차대행
 */

/* 공지사항浮窗 컨테이너 */
.notice-popup-container {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 9999;
    width: 500px;
    height: 666px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 공지사항 카드 */
.notice-popup-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(102, 126, 234, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
    animation: slideInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
}

/* 중요 공지 강조 */
.notice-popup-card.important {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    box-shadow: 
        0 20px 40px rgba(255, 107, 107, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 공지사항 헤더 */
.notice-popup-header {
    padding: 20px 25px 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.notice-popup-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #fff, transparent);
    opacity: 0.3;
}

.notice-popup-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-popup-title::before {
    content: '📢';
    font-size: 20px;
}

.notice-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.notice-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 공지사항 내용 */
.notice-popup-content {
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.95);
    position: relative;
    height: calc(100% - 160px);
    overflow-y: auto;
}

.notice-popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.notice-popup-text {
    color: #2c3e50;
    line-height: 1.6;
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 500;
}

/* 이미지 공지 */
.notice-popup-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-popup-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 图片容器 */
.notice-popup-image-container {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
}

.notice-popup-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notice-popup-image-container:hover img {
    transform: scale(1.05);
}

/* 공지사항 푸터 */
.notice-popup-footer {
    padding: 15px 25px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-popup-date {
    color: #7f8c8d;
    font-size: 12px;
    font-weight: 500;
}

.notice-popup-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}

.notice-popup-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notice-popup-badge.important {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.notice-popup-badge.image {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 애니메이션 */
@keyframes slideInLeft {
    from {
        transform: translateY(-50%) translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
    to {
        transform: translateY(-50%) translateX(-100%);
        opacity: 0;
    }
}

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

.notice-popup-card.important {
    animation: slideInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), pulse 2s ease-in-out infinite;
}

/* 슬라이드 아웃 애니메이션 */
.notice-popup-card.removing {
    animation: slideOutLeft 0.3s ease-in forwards;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .notice-popup-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notice-popup-card {
        border-radius: 8px;
    }
    
    .notice-popup-header {
        padding: 12px 15px 8px;
    }
    
    .notice-popup-content {
        padding: 12px 15px 15px;
    }
    
    .notice-popup-footer {
        padding: 0 15px 12px;
    }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
    .notice-popup-card {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .notice-popup-title {
        color: #e2e8f0;
    }
    
    .notice-popup-text {
        color: #cbd5e0;
    }
    
    .notice-popup-close:hover {
        background: #4a5568;
        color: #e2e8f0;
    }
    
    .notice-popup-card.important {
        background: linear-gradient(135deg, #2d1b1b 0%, #2d3748 100%);
    }
}

/* 접근성 개선 */
.notice-popup-close:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* 로딩 상태 */
.notice-popup-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

.notice-popup-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 공지사항 없음 상태 */
.notice-popup-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

.notice-popup-empty::before {
    content: '📢';
    font-size: 24px;
    display: block;
    margin-bottom: 10px;
}

/* 进度条 */
.notice-popup-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.7));
    transition: width 0.2s;
    z-index: 2;
    border-radius: 0 0 0 20px;
}

/* 底部按钮 */
.notice-popup-btn-all {
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 13px;
    margin-left: 8px;
    cursor: pointer;
}

/* 图片放大弹窗 */
.notice-image-modal {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.notice-image-modal img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: zoomIn 0.3s ease;
}

.notice-image-modal .close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 32px;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    z-index: 2;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.notice-image-modal .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 移动端适配 */
@media (max-width: 600px) {
    .notice-popup-container, .notice-popup-card { 
        width: calc(100vw - 40px);
        height: 500px;
        left: 20px;
    }
    .notice-popup-title { 
        font-size: 16px; 
    }
    .notice-popup-text { 
        font-size: 13px; 
    }
    .notice-popup-header {
        padding: 15px 20px 10px;
    }
    .notice-popup-content {
        padding: 15px 20px;
        height: calc(100% - 120px);
    }
    .notice-popup-footer {
        padding: 10px 20px 15px;
    }
    .notice-popup-image-container {
        height: 200px;
    }
} 