/* transport-gallery.css */

/* Transport Records 섹션 기본 스타일 */
.transport-records-section {
    background: #ffffff;
    padding: 60px 0;
    position: relative;
}

.transport-records-container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}


/* 중간 크기 화면에서 컨테이너 너비 제한 */
@media (max-width: 1400px) and (min-width: 1024px) {
    .transport-records-container {
        max-width: 1140px;
    }
}

/* 중간 크기 화면에서 컨테이너 너비 제한 */
@media (max-width: 980px) and (min-width: 769px) {
    .transport-records-container {
        max-width: 720px;
    }
}

/* 작은 화면에서 컨테이너 너비 제한 */
@media (max-width: 768px) {
    .transport-records-container {
        max-width: 498px;
    }
}

/* 섹션 헤더 */
.transport-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.transport-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    position: relative;
}

.transport-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #ee6344;
    border-radius: 2px;
    animation: titleUnderline 2s ease-in-out infinite alternate;
}

@keyframes titleUnderline {
    0% { width: 50px; opacity: 0.7; }
    100% { width: 70px; opacity: 1; }
}

.transport-section-subtitle {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

/* 캐러셀 컨테이너 - 보도자료와 동일한 구조 */
.transport-carousel-wrapper {
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
}

.transport-cards-grid {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 0;
}

/* Transport 카드 스타일 */
.transport-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.171);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.transport-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* 카드 링크 스타일 */
.transport-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
    width: 100%;
}

.transport-card-link:hover {
    color: inherit;
    text-decoration: none;
}

/* 이미지 컨테이너 */
.transport-card-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: #f5f5f5; /* 로딩 중 배경색 */
}

.transport-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
    margin: 0;
    padding: 0;
    opacity: 1; /* 바로 보이도록 변경 */
    background-color: #f5f5f5; /* 이미지 로딩 실패시 배경 */
}

/* 이미지 로딩 완료 후 */
.transport-card-image.loaded {
    opacity: 1;
}


@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.transport-card:hover .transport-card-image {
    transform: scale(1.05);
}

/* 날짜 뱃지 */
.transport-date-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(238, 99, 68, 0.95);
    color: white;
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* 카드 콘텐츠 */
.transport-card-content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 환자 정보 */
.transport-patient-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.transport-patient-icon {
    width: 32px;
    height: 32px;
    background: #fee4df;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ee6344;
    font-size: 16px;
}

.transport-patient-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* 병원 경로 */
.transport-route {
    background: #f8f9fa;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.transport-hospital {
    flex: 1;
    text-align: center;
}

.transport-hospital-label {
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.transport-hospital-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transport-arrow {
    color: #ee6344;
    font-size: 20px;
    flex-shrink: 0;
}

/* 카드 하단 정보 */
.transport-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.transport-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.transport-author-avatar {
    width: 24px;
    height: 24px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

.transport-view-count {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #666;
}

.transport-view-count i {
    font-size: 13px;
}

/* 네비게이션 점 */
.transport-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.transport-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.transport-dot.active {
    background: #ee6344;
    transform: scale(1.3);
}

/* 상태 표시 */
.transport-empty-state, 
.transport-loading-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.transport-empty-state i, 
.transport-loading-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ddd;
}

.transport-loading-state i {
    color: #ee6344;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 반응형 디자인 */
/* 데스크톱: 3개씩 (기본값) */
@media (min-width: 980px) {
    .transport-card {
        flex: 0 0 calc(33.333% - 14px);
        margin-right: 20px;
    }
    
    .transport-card:nth-child(3n) {
        margin-right: 0;
    }
}

/* 태블릿: 2개씩 */
@media (max-width: 980px) and (min-width: 769px) {
    .transport-card {
        flex: 0 0 calc(50% - 10px);
        margin-right: 20px;
    }
    
    .transport-card:nth-child(2n) {
        margin-right: 0;
    }
}

/* 모바일: 1개씩 */
@media (max-width: 768px) {
    .transport-records-section {
        padding: 40px 0;
    }

    .transport-section-title {
        font-size: 1.75rem;
    }

    .transport-card {
        flex: 0 0 100%;
        margin-right: 0;
    }

    .transport-card-content {
        padding: 16px;
    }

    .transport-card-image-container {
        height: 180px;
    }

    .transport-patient-name {
        font-size: 16px;
    }

    .transport-patient-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .transport-route {
        padding: 12px;
        gap: 10px;
    }

    .transport-hospital-name {
        font-size: 13px;
    }

    .transport-arrow {
        font-size: 18px;
    }

    .transport-date-badge {
        font-size: 11px;
        padding: 5px 10px;
    }
}