/**
 * Punimohi Notification Frontend CSS
 * Version: 1.0.0
 * Author: Jaswant Singh
 *
 * Styles for the frontend notification prompt and any other public-facing UI.
 */

/* Base styles for the notification prompt container */
#punimohi-notification-prompt {
    display: none; /* Hidden by default, shown with JS */
    position: fixed;
    z-index: 99999; /* Ensure it's on top of most content */
    font-family: 'Inter', sans-serif; /* Use Inter font, ensure it's loaded if not system default */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Subtle shadow */
    padding: 15px;
    max-width: 350px; /* Max width for toast-like prompts */
    box-sizing: border-box;
    transition: all 0.3s ease-in-out; /* Smooth transitions for appearance */
}

/* Background color for the popup */
.punimohi-prompt-background {
    background-color: #FFFFFF; /* Pure white background */
}

/* Theme specific styles */
.punimohi-prompt-theme-light {
    color: #333; /* Dark text on light background */
    border: 1px solid #ddd;
}

.punimohi-prompt-theme-dark {
    background-color: #333; /* Dark background */
    color: #f0f0f0; /* Light text on dark background */
    border: 1px solid #555;
}

/* Position specific styles for toast */
.punimohi-prompt-toast.punimohi-prompt-bottom-right {
    bottom: 20px;
    right: 20px;
}

.punimohi-prompt-toast.punimohi-prompt-bottom-left {
    bottom: 20px;
    left: 20px;
}

.punimohi-prompt-toast.punimohi-prompt-top-right {
    top: 20px;
    right: 20px;
}

.punimohi-prompt-toast.punimohi-prompt-top-left {
    top: 20px;
    left: 20px;
}

/* Styles for modal type prompt */
.punimohi-prompt-modal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; /* Responsive width */
    max-width: 500px; /* Max width for modals */
    padding: 30px;
}

/* Prompt content styling */
.punimohi-prompt-content p {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.5;
}

/* Buttons styling */
.punimohi-prompt-actions {
    display: flex;
    gap: 10px; /* Space between buttons */
    justify-content: flex-end; /* Align buttons to the right */
    margin-top: 15px;
}

.punimohi-button {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.punimohi-button-allow {
    background-color: #0073aa; /* WordPress blue */
    color: #fff;
}

.punimohi-button-allow:hover {
    background-color: #005177;
    transform: translateY(-1px);
}

.punimohi-button-later,
.punimohi-button-never {
    background-color: #e0e0e0; /* Light grey */
    color: #555;
}

.punimohi-button-later:hover,
.punimohi-button-never:hover {
    background-color: #d0d0d0;
    transform: translateY(-1px);
}

/* Close button styling */
.punimohi-prompt-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.punimohi-prompt-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    #punimohi-notification-prompt {
        max-width: 90%;
        left: 50%;
        transform: translateX(-50%);
        bottom: 15px; /* Adjust for mobile */
        right: auto; /* Remove right positioning */
        top: auto; /* Remove top positioning */
    }

    .punimohi-prompt-actions {
        flex-direction: column; /* Stack buttons on small screens */
        gap: 8px;
    }

    .punimohi-button {
        width: 100%; /* Full width buttons */
    }
}
