/**
 * Notification System CSS
 * Sötét téma alapú, animált toast értesítések
 */

/* ============================================
   NOTIFICATION CONTAINERS (pozíciók)
   ============================================ */

.notification-container {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

/* Top pozíciók */
.notification-top-right {
    top: 20px;
    right: 20px;
}

.notification-top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.notification-top-left {
    top: 20px;
    left: 20px;
}

/* Bottom pozíciók */
.notification-bottom-right {
    bottom: 20px;
    right: 20px;
    flex-direction: column-reverse;
}

.notification-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column-reverse;
}

.notification-bottom-left {
    bottom: 20px;
    left: 20px;
    flex-direction: column-reverse;
}

/* ============================================
   NOTIFICATION ALAP STÍLUS
   ============================================ */

.notification {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.98), rgba(20, 20, 25, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    pointer-events: all;
    overflow: hidden;
    
    /* Animáció */
    animation: notificationSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: top right;
}

/* ============================================
   NOTIFICATION TÍPUSOK (színek)
   ============================================ */

.notification-success {
    border-left: 4px solid #10b981;
    --notification-color: #10b981;
}

.notification-info {
    border-left: 4px solid #3b82f6;
    --notification-color: #3b82f6;
}

.notification-error {
    border-left: 4px solid #ef4444;
    --notification-color: #ef4444;
}

.notification-warning {
    border-left: 4px solid #f59e0b;
    --notification-color: #f59e0b;
}

.notification-custom {
    border-left: 4px solid var(--notification-color, #6366f1);
}

/* ============================================
   NOTIFICATION TARTALOM
   ============================================ */

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 30px; /* Close gomb helye */
}

.notification-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.notification-message {
    color: #e5e7eb;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    flex: 1;
}

/* ============================================
   CLOSE GOMB
   ============================================ */

.notification-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    line-height: 1;
    width: 24px;
    height: 24px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   PROGRESS BAR (error/warning)
   ============================================ */

.notification-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.notification-progress {
    height: 100%;
    width: 100%;
    background: var(--notification-color, #3b82f6);
    box-shadow: 0 0 10px var(--notification-color, #3b82f6);
    transition: width 5000ms linear; /* Default, felülírva JS-ből */
}

/* ============================================
   ANIMÁCIÓK
   ============================================ */

/* Slide-in (becsúszás jobbról) */
@keyframes notificationSlideIn {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Closing (eltűnés) */
.notification-closing {
    animation: notificationSlideOut 0.3s ease forwards;
}

@keyframes notificationSlideOut {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
}

/* ============================================
   HOVER EFFEKT
   ============================================ */

.notification:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ============================================
   RESPONSIVE (mobil)
   ============================================ */

@media (max-width: 768px) {
    .notification-container {
        max-width: calc(100vw - 40px);
        left: 20px !important;
        right: 20px !important;
        transform: none !important;
    }
    
    .notification {
        min-width: 0;
        max-width: 100%;
    }
    
    .notification-message {
        font-size: 13px;
    }
}

/* ============================================
   GLOW EFFEKT (opcionális, típusonként)
   ============================================ */

.notification-success::before,
.notification-info::before,
.notification-error::before,
.notification-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--notification-color, #3b82f6) 50%, 
        transparent
    );
    opacity: 0.6;
}

/* ============================================
   SCROLL LOCK (ha túl sok notification)
   ============================================ */

.notification-container {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.notification-container::-webkit-scrollbar {
    width: 6px;
}

.notification-container::-webkit-scrollbar-track {
    background: transparent;
}

.notification-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.notification-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
