/**
 * Halal Street Mobile Prompt Styles
 */

:root {
    --accent: #e94040;
}

.halal-street-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.halal-street-prompt-visible {
    opacity: 1;
}

.halal-street-prompt-content {
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.halal-street-prompt-visible .halal-street-prompt-content {
    transform: translateY(0);
}

.halal-street-prompt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 0 20px;
}

.halal-street-prompt-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.halal-street-prompt-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.halal-street-prompt-close:hover {
    background-color: #f5f5f5;
}

.halal-street-prompt-body {
    padding: 16px 20px;
}

.halal-street-prompt-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.3;
}

.halal-street-prompt-message {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.halal-street-prompt-actions {
    padding: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.halal-street-prompt-btn {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
}

.halal-street-prompt-add {
    background: var(--accent);
    color: white;
}

.halal-street-prompt-add:hover {
    background: #f25555; /* Lighter offset of #e94040 */
    transform: translateY(-1px);
}

.halal-street-prompt-add:active {
    transform: translateY(0);
}

.halal-street-prompt-dismiss {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.halal-street-prompt-dismiss:hover {
    background: #f5f5f5;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .halal-street-prompt {
        padding: 0;
        align-items: flex-end;
    }
    
    .halal-street-prompt-content {
        max-width: none;
        border-radius: 16px 16px 0 0;
        margin: 0;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .halal-street-prompt-content {
        background: #2d2d2d;
        color: #ffffff;
    }
    
    .halal-street-prompt-title {
        color: #ffffff;
    }
    
    .halal-street-prompt-message {
        color: #cccccc;
    }
    
    .halal-street-prompt-close {
        color: #cccccc;
    }
    
    .halal-street-prompt-close:hover {
        background-color: #404040;
    }
    
    .halal-street-prompt-dismiss {
        background: transparent;
        color: #cccccc;
        border-color: #555;
    }
    
    .halal-street-prompt-dismiss:hover {
        background: #404040;
        color: #ffffff;
    }
}

/* Animation for mobile devices */
@media (max-width: 768px) {
    .halal-street-prompt-content {
        animation: slideUpBounce 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
}

@keyframes slideUpBounce {
    0% {
        transform: translateY(100%);
    }
    60% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Accessibility improvements */
.halal-street-prompt-btn:focus {
    outline: 2px solid var(--accent, #4CAF50);
    outline-offset: 2px;
}

.halal-street-prompt-close:focus {
    outline: 2px solid var(--accent, #4CAF50);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .halal-street-prompt-content {
        border: 2px solid #000;
    }
    
    .halal-street-prompt-add {
        border: 2px solid #000;
    }
    
    .halal-street-prompt-dismiss {
        border: 2px solid #000;
    }
}
