/* ========================================
   TOAST NOTIFIKACE - ZNOVUPOUZITELNA KOMPONENTA
   BEM METODIKA - MOBILE FIRST
   ======================================== */

/* ========================================
   ZAKLADNI STYLY (MOBIL)
   ======================================== */

/* Kontejner - fixni pozice */
.toast-container {
    position: fixed;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
    width: 100%;
    max-width: 500px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Jednotlivy toast */
.toast {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 18px 20px;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(-30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

/* Stavy animace */
.toast--visible {
    transform: translateY(0);
    opacity: 1;
}

.toast--hiding {
    transform: translateY(-30px);
    opacity: 0;
}

/* Ikona */
.toast__icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.toast__icon svg {
    width: 100%;
    height: 100%;
}

/* Obsah */
.toast__content {
    flex: 1;
    min-width: 0;
}

/* Nadpis */
.toast__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

/* Zprava */
.toast__message {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    opacity: 0.95;
}

/* Zprava bez nadpisu - vetsi a tucnejsi */
.toast__content > .toast__message:only-child {
    font-size: 16px;
    font-weight: 600;
    opacity: 1;
}

/* Tlacitko zavreni */
.toast__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.toast__close svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   TYPY TOASTU (BAREVNE VARIANTY)
   ======================================== */

/* Uspech (zelena) */
.toast--success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
}

.toast--success .toast__icon {
    color: #ffffff;
}

.toast--success .toast__close {
    color: #ffffff;
}

/* Chyba (cervena) */
.toast--error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
}

.toast--error .toast__icon {
    color: #ffffff;
}

.toast--error .toast__close {
    color: #ffffff;
}

/* Informace (modra) */
.toast--info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
}

.toast--info .toast__icon {
    color: #ffffff;
}

.toast--info .toast__close {
    color: #ffffff;
}

/* Varovani (oranzova - barva tlacitka Pridat stanici) */
.toast--warning {
    background: linear-gradient(135deg, #ff6b35 0%, #ff3d00 100%);
    color: #ffffff;
}

.toast--warning .toast__icon {
    color: #ffffff;
}

.toast--warning .toast__close {
    color: #ffffff;
}

/* ========================================
   DESKTOP (768px+) - vetsi hlášky
   ======================================== */

@media (min-width: 768px) {
    .toast-container {
        max-width: 600px;
    }

    .toast {
        padding: 24px 28px;
        gap: 18px;
    }

    .toast__icon {
        width: 36px;
        height: 36px;
    }

    .toast__title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .toast__message {
        font-size: 18px;
        line-height: 1.5;
    }

    .toast__content > .toast__message:only-child {
        font-size: 19px;
    }

    .toast__close {
        width: 40px;
        height: 40px;
    }

    .toast__close svg {
        width: 22px;
        height: 22px;
    }
}

/* ========================================
   MOBIL (480px-)
   ======================================== */

@media (max-width: 480px) {
    .toast-container {
        top: 50%;
        padding: 0 16px;
    }

    .toast {
        padding: 16px 18px;
    }

    .toast__message {
        font-size: 15px;
    }
}
