/* Member Schedule Page Styles - Light Mode Sync */
.schedule-main-container {
    background: #ffffff;
    min-height: 100vh;
    color: #1e293b;
}

.schedule-content-area {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px 20px 60px 20px;
}

/* Updated Error/Status Msg in Hero */
.hero-status-msg {
    margin-top: 25px;
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Schedule Section */
.schedule-section {
    padding: 10px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.schedule-section.reveal {
    opacity: 1;
    transform: translateY(0);
}

.section-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-badge {
    background: #1e293b; /* Darker, more formal badge */
    color: white;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-stamp-row {
    display: flex;
    gap: 10px;
}

.time-pill, .date-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.date-pill.highlight {
    background: #dbeafe;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #1e293b;
    line-height: 1.3;
}

.section-description {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 10px;
    line-height: 1.5;
}

.section-description strong {
    color: #1e293b;
    font-weight: 700;
}

/* Image Gallery */
.schedule-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: zoom-in;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.gallery-item:hover {
    transform: scale(1.02) translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.section-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
    margin: 8px 0;
}

@media (max-width: 768px) {
    .section-title { font-size: 1.5rem; }
    .section-meta { flex-direction: column; align-items: flex-start; }
    .schedule-gallery { grid-template-columns: 1fr; }
}

/* Lightbox Premium Preview */
.schedule-lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.schedule-lightbox:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.lightbox-close {
    position: absolute;
    top: 30px; right: 30px;
    color: white;
    font-size: 24px; /* Giảm size một chút để cân đối với hình tròn 50px */
    cursor: pointer;
    z-index: 10;
    width: 50px; height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2); /* Thêm viền nhẹ cho sang trọng */
}

.lightbox-close:hover {
    background: #ef4444;
    transform: rotate(90deg);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 5;
    transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.schedule-lightbox:not(.hidden) .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    object-fit: contain;
}

.hidden { display: none !important; }
