/* Website Notification Popup System CSS */

/* Notification Container */
.notification-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.notification-container.show {
    opacity: 1;
    visibility: visible;
}

/* Notification Card */
.website-notification {
    background: #ffffff;
    border-radius: 16px;
    max-width: 500px;
    min-width: 400px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.7) translateY(50px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.notification-container.show .website-notification {
    transform: scale(1) translateY(0);
}

/* Notification Types */
.notification-info {
    border-left: 6px solid #3498db;
}

.notification-success {
    border-left: 6px solid #2ecc71;
}

.notification-warning {
    border-left: 6px solid #f39c12;
}

.notification-error {
    border-left: 6px solid #e74c3c;
}

.notification-announcement {
    border-left: 6px solid #9b59b6;
}

/* Close Button */
.notification-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.notification-close:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #e74c3c;
    transform: scale(1.1);
}

.non-dismissible .notification-close {
    display: none;
}

/* Notification Content */
.notification-content {
    padding: 30px;
    padding-right: 50px; /* Space for close button */
}

.notification-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.notification-icon {
    font-size: 24px;
    margin-right: 12px;
    min-width: 30px;
    text-align: center;
}

.notification-info .notification-icon {
    color: #3498db;
}

.notification-success .notification-icon {
    color: #2ecc71;
}

.notification-warning .notification-icon {
    color: #f39c12;
}

.notification-error .notification-icon {
    color: #e74c3c;
}

.notification-announcement .notification-icon {
    color: #9b59b6;
}

.notification-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #2c3e50;
    line-height: 1.2;
}

.notification-message {
    color: #555;
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Action Buttons */
.notification-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.notification-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.notification-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
}

.notification-btn:active {
    transform: translateY(0);
}

/* Type-specific button styling */
.notification-info .notification-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.notification-info .notification-btn:hover {
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.notification-success .notification-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.notification-success .notification-btn:hover {
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

.notification-warning .notification-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.notification-warning .notification-btn:hover {
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

.notification-error .notification-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.notification-error .notification-btn:hover {
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.notification-announcement .notification-btn {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.notification-announcement .notification-btn:hover {
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.4);
}

/* High Priority Notifications */
.website-notification[data-priority="3"] {
    animation: pulse-priority 2s infinite;
    border-width: 8px;
}

@keyframes pulse-priority {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 25px 80px rgba(231, 76, 60, 0.3), 
                    0 0 0 4px rgba(231, 76, 60, 0.1);
    }
}

/* Toast Notification Style (Alternative) */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    min-width: 300px;
    z-index: 9999;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification-toast.show {
    transform: translateX(0);
}

.notification-toast .notification-content {
    padding: 20px;
    padding-right: 45px;
}

.notification-toast .notification-title {
    font-size: 16px;
}

.notification-toast .notification-message {
    font-size: 14px;
    margin-bottom: 10px;
}

/* Banner Notification Style */
.notification-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9998;
    transform: translateY(-100%);
    transition: all 0.3s ease;
}

.notification-banner.show {
    transform: translateY(0);
}

.notification-banner .notification-content {
    padding: 15px 30px;
    text-align: center;
}

.notification-banner .notification-header {
    justify-content: center;
    margin-bottom: 8px;
}

.notification-banner .notification-title {
    font-size: 16px;
}

.notification-banner .notification-message {
    font-size: 14px;
    margin-bottom: 10px;
}

.notification-banner .notification-actions {
    justify-content: center;
    margin-top: 10px;
}

.notification-banner .notification-btn {
    padding: 8px 16px;
    font-size: 12px;
}

.notification-banner .notification-close {
    top: 10px;
    right: 15px;
    width: 25px;
    height: 25px;
    font-size: 14px;
}

/* Multiple Notifications Queue */
.notification-queue {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.notification-queue .website-notification {
    position: relative;
    transform: translateX(100%);
    transition: all 0.3s ease;
    min-width: auto;
    max-width: none;
}

.notification-queue .website-notification.show {
    transform: translateX(0);
}

.notification-queue .notification-content {
    padding: 20px;
    padding-right: 45px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .website-notification {
        min-width: 300px;
        max-width: 90vw;
        margin: 20px;
    }
    
    .notification-content {
        padding: 25px;
        padding-right: 45px;
    }
    
    .notification-title {
        font-size: 18px;
    }
    
    .notification-message {
        font-size: 15px;
    }
    
    .notification-toast,
    .notification-queue {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .notification-banner .notification-content {
        padding: 12px 45px 12px 20px;
    }
}

@media (max-width: 480px) {
    .website-notification {
        min-width: 280px;
    }
    
    .notification-content {
        padding: 20px;
        padding-right: 40px;
    }
    
    .notification-title {
        font-size: 16px;
    }
    
    .notification-message {
        font-size: 14px;
    }
    
    .notification-actions {
        flex-direction: column;
    }
    
    .notification-btn {
        text-align: center;
        justify-content: center;
    }
}

/* Loading Animation */
.notification-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Notification Counter */
.notification-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce-in 0.5s ease;
}

@keyframes bounce-in {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}
