/* ========================================
   Weekly Notice Popup Styles
   ======================================== */

/* Popup Container */
.weekly-notice-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.weekly-notice-popup.show {
    opacity: 1;
}

/* Overlay */
.weekly-notice-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
}

/* Popup Container */
.weekly-notice-container {
    position: relative;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    margin: 5vh auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.weekly-notice-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weekly-notice-close:hover {
    background: rgba(213, 20, 90, 0.8);
    color: #ffffff;
    transform: rotate(90deg);
}

/* Content Area */
.weekly-notice-content {
    padding: 40px 30px 30px;
    overflow-y: auto;
    max-height: calc(90vh - 40px);
}

/* Logo */
.weekly-notice-logo {
    text-align: center;
    margin-bottom: 25px;
}

.weekly-notice-logo img {
    max-width: 150px;
    height: auto;
}

/* Header */
.weekly-notice-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f0f0f0;
}

.weekly-notice-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: rgb(213, 20, 90);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.weekly-notice-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Body Content */
.weekly-notice-body {
    margin-bottom: 30px;
}

.notice-section {
    margin-bottom: 25px;
}

.notice-section:last-of-type {
    margin-bottom: 0;
}

.notice-text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
    text-align: justify;
}

.notice-text:last-child {
    margin-bottom: 0;
}

.notice-text strong {
    color: rgb(213, 20, 90);
    font-weight: 600;
}

/* English Section */
.notice-english {
    direction: ltr;
    text-align: left;
}

/* Arabic Section */
.notice-arabic {
    direction: rtl;
    text-align: right;
    font-family: 'Arial', 'Tahoma', sans-serif;
}

.notice-arabic .notice-text {
    font-size: 17px;
}

/* Divider */
.notice-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 30px 0;
}

/* Footer */
.weekly-notice-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

/* Checkbox */
.notice-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: #666;
}

.notice-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.notice-checkbox:hover {
    color: #333;
}

/* Acknowledge Button */
.btn-acknowledge {
    padding: 14px 40px;
    background: linear-gradient(135deg, rgba(213, 20, 90, 0.95) 0%, rgba(213, 20, 90, 0.8) 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(213, 20, 90, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-acknowledge:hover {
    background: linear-gradient(135deg, rgba(213, 20, 90, 1) 0%, rgba(213, 20, 90, 0.9) 100%);
    box-shadow: 0 6px 20px rgba(213, 20, 90, 0.4);
    transform: translateY(-2px);
}

.btn-acknowledge:active {
    transform: translateY(0);
}

/* ========================================
   Responsive Styles
   ======================================== */

@media (max-width: 768px) {
    .weekly-notice-container {
        width: 95%;
        margin: 2.5vh auto;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .weekly-notice-content {
        padding: 35px 20px 20px;
        max-height: calc(95vh - 30px);
    }
    
    .weekly-notice-close {
        width: 35px;
        height: 35px;
        font-size: 24px;
        top: 10px;
        right: 10px;
    }
    
    .weekly-notice-logo img {
        max-width: 120px;
    }
    
    .weekly-notice-header h2 {
        font-size: 22px;
    }
    
    .weekly-notice-header h3 {
        font-size: 17px;
    }
    
    .notice-text {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .notice-arabic .notice-text {
        font-size: 16px;
    }
    
    .btn-acknowledge {
        padding: 12px 30px;
        font-size: 15px;
        width: 100%;
    }
    
    .weekly-notice-footer {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .weekly-notice-header h2 {
        font-size: 20px;
    }
    
    .weekly-notice-header h3 {
        font-size: 15px;
    }
    
    .notice-text {
        font-size: 14px;
    }
    
    .notice-arabic .notice-text {
        font-size: 15px;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .weekly-notice-container {
        background: #2d2d2d;
    }
    
    .weekly-notice-header h3,
    .notice-text {
        color: #e0e0e0;
    }
    
    .notice-checkbox {
        color: #b0b0b0;
    }
    
    .notice-checkbox:hover {
        color: #e0e0e0;
    }
}

/* Print Styles */
@media print {
    .weekly-notice-popup {
        display: none !important;
    }
}
