/* ============================================================
   Planlı Bakım Duyurusu Pop-up Stilleri
   09.08.2026 Pazar 00:00–12:00 bakım penceresi
   Kırmızı Tema (Okul Dışı Öğrenme Ortamları ile Uyumlu)
   ============================================================ */

/* Overlay */
.maintenance-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 1rem;
}

.maintenance-popup-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Card */
.maintenance-popup {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: linear-gradient(145deg, #ffffff 0%, #fffbfb 100%);
    border-radius: 20px;
    box-shadow:
        0 25px 60px rgba(220, 38, 38, 0.15),
        0 0 0 1px rgba(220, 38, 38, 0.1);
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.4s ease;
}

.maintenance-popup-overlay.is-visible .maintenance-popup {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Top accent bar */
.maintenance-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #f87171, #dc2626, #7f1d1d);
    border-radius: 20px 20px 0 0;
}

/* Close button */
.maintenance-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.08);
    color: #991b1b;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.25s;
    line-height: 1;
}

.maintenance-popup__close:hover {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
    transform: rotate(90deg);
}

/* Body */
.maintenance-popup__body {
    padding: 40px 32px 24px;
    text-align: center;
}

/* Icon */
.maintenance-popup__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.2);
    animation: maintenance-icon-pulse 2.5s ease-in-out infinite;
}

.maintenance-popup__icon i {
    font-size: 34px;
    color: #dc2626;
}

@keyframes maintenance-icon-pulse {
    0%, 100% { transform: scale(1);   box-shadow: 0 8px 24px rgba(220, 38, 38, 0.2); }
    50%       { transform: scale(1.06); box-shadow: 0 12px 32px rgba(220, 38, 38, 0.35); }
}

/* Typography */
.maintenance-popup__title {
    font-size: 22px;
    font-weight: 700;
    color: #7f1d1d;
    margin-bottom: 8px;
    line-height: 1.3;
}

.maintenance-popup__subtitle {
    font-size: 14px;
    font-weight: 500;
    color: #7f1d1d;
    margin-bottom: 24px;
}

/* Info box */
.maintenance-popup__info {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
}

.maintenance-popup__detail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.maintenance-popup__detail + .maintenance-popup__detail {
    border-top: 1px dashed rgba(220, 38, 38, 0.15);
}

.maintenance-popup__detail-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    color: #dc2626;
    font-size: 16px;
}

.maintenance-popup__detail-text {
    text-align: left;
}

.maintenance-popup__detail-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #b91c1c;
    margin-bottom: 2px;
}

.maintenance-popup__detail-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #7f1d1d;
}

/* Message */
.maintenance-popup__message {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

/* Footer & Kalıcı Kapatma (Bir Daha Gösterme) Checkbox */
.maintenance-popup__footer {
    background: rgba(220, 38, 38, 0.03);
    border-top: 1px solid rgba(220, 38, 38, 0.1);
    padding: 16px 32px;
    text-align: left; /* Sola yaslı */
}

.maintenance-popup__checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: color 0.25s ease;
}

.maintenance-popup__checkbox-label:hover {
    color: #dc2626;
}

/* Gizli gerçek checkbox */
.maintenance-popup__checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Özel çizilen kutucuk */
.maintenance-popup__checkbox-custom {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid rgba(220, 38, 38, 0.6);
    border-radius: 5px;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.maintenance-popup__checkbox-label:hover .maintenance-popup__checkbox-custom {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* Checkbox seçildiğinde */
.maintenance-popup__checkbox:checked ~ .maintenance-popup__checkbox-custom {
    background-color: #dc2626;
    border-color: #dc2626;
}

/* Seçim işareti (tik) */
.maintenance-popup__checkbox-custom::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.maintenance-popup__checkbox:checked ~ .maintenance-popup__checkbox-custom::after {
    display: block;
}

/* Responsive */
@media (max-width: 576px) {
    .maintenance-popup {
        max-width: 100%;
        border-radius: 16px;
    }

    .maintenance-popup__body {
        padding: 32px 20px 20px;
    }

    .maintenance-popup__footer {
        padding: 12px 20px;
    }

    .maintenance-popup__icon {
        width: 64px;
        height: 64px;
    }

    .maintenance-popup__icon i {
        font-size: 28px;
    }

    .maintenance-popup__title {
        font-size: 18px;
    }

    .maintenance-popup__detail {
        gap: 10px;
    }

    .maintenance-popup__detail-value {
        font-size: 14px;
    }
}
