/* ============================================================================
   Nabdi Flash Message & Login Modal - Master Poetic Design
   Inspired by Arabic calligraphy ink flow - serene and elegant
   ============================================================================ */

/* ===== FLASH MESSAGE TOAST - Ink Drop Elegance ===== */
.flash-message-container {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: none;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px 12px 16px;
    background: #1A1612;
    border-radius: 100px;
    box-shadow: 0 4px 24px rgba(26, 22, 18, 0.25);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 200px;
    max-width: 360px;
}

.flash-message.show {
    opacity: 1;
    transform: translateY(0);
}

.flash-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flash-icon svg {
    width: 16px;
    height: 16px;
}

.flash-text {
    flex: 1;
    font-family: 'Markazi Text', serif;
    font-size: 15px;
    line-height: 1.4;
    color: #F5F2ED;
    text-align: right;
    direction: rtl;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.flash-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: rgba(245, 242, 237, 0.5);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flash-close:hover {
    color: #F5F2ED;
    background: rgba(255, 255, 255, 0.1);
}

.flash-close svg {
    width: 14px;
    height: 14px;
}

/* Variant Colors - Subtle icon backgrounds */
.flash-success .flash-icon {
    background: rgba(95, 111, 82, 0.9);
    color: #FFF;
}

.flash-error .flash-icon {
    background: rgba(180, 90, 75, 0.9);
    color: #FFF;
}

.flash-info .flash-icon {
    background: rgba(212, 146, 90, 0.9);
    color: #FFF;
}

.flash-warning .flash-icon {
    background: rgba(190, 155, 70, 0.9);
    color: #FFF;
}

/* ===== LOGIN REQUIRED MODAL - Parchment Scroll ===== */
.login-required-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-required-modal.active {
    opacity: 1;
    visibility: visible;
}

.login-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 22, 18, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.login-modal-content {
    position: relative;
    background: linear-gradient(180deg, #FAF8F5 0%, #F5F2ED 100%);
    border-radius: 20px;
    max-width: 340px;
    width: 100%;
    padding: 40px 32px 32px;
    text-align: center;
    box-shadow: 0 24px 64px rgba(26, 22, 18, 0.2);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-required-modal.active .login-modal-content {
    transform: scale(1) translateY(0);
}

.login-modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #D4925A 0%, #C4A882 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    box-shadow: 0 4px 16px rgba(212, 146, 90, 0.3);
}

.login-modal-icon svg {
    width: 26px;
    height: 26px;
}

.login-modal-title {
    font-family: 'Markazi Text', serif;
    font-size: 22px;
    font-weight: 700;
    color: #3E2723;
    margin: 0 0 8px;
    direction: rtl;
}

.login-modal-text {
    font-family: 'Scheherazade New', serif;
    font-size: 16px;
    line-height: 1.6;
    color: #6D5D4D;
    margin: 0 0 28px;
    direction: rtl;
}

.login-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-family: 'Markazi Text', serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    text-decoration: none;
}

.login-modal-btn--primary {
    background: #3E2723;
    color: #F5F2ED;
}

.login-modal-btn--primary:hover {
    background: #2D1B18;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 39, 35, 0.25);
}

.login-modal-btn--ghost {
    background: transparent;
    color: #8B7355;
}

.login-modal-btn--ghost:hover {
    background: rgba(139, 115, 85, 0.08);
}

.login-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #A89B8C;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.login-modal-close:hover {
    background: rgba(139, 115, 85, 0.1);
    color: #6D5D4D;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .flash-message-container {
        bottom: 24px;
        left: 16px;
        right: 16px;
        transform: none;
    }
    
    .flash-message {
        max-width: none;
        width: 100%;
    }
    
    .login-modal-content {
        padding: 32px 24px 24px;
    }
    
    .login-modal-icon {
        width: 48px;
        height: 48px;
    }
    
    .login-modal-title {
        font-size: 20px;
    }
}
