/* Post Notification - Frontend Styles (Google Material Design) */

.pn-notification {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 16px 20px;
    margin: 20px 0;
    border-left: 4px solid;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: pn-slide-in 0.3s ease-out;
    line-height: 1.6;
}

@keyframes pn-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pn-notification .pn-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.pn-notification .pn-icon svg {
    width: 100%;
    height: 100%;
}

.pn-notification .pn-content {
    flex: 1;
    padding-top: 2px;
}

.pn-notification .pn-content p:first-child {
    margin-top: 0;
}

.pn-notification .pn-content p:last-child {
    margin-bottom: 0;
}

.pn-notification .pn-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pn-notification .pn-close-btn:hover {
    opacity: 1;
}

/* Warning Style (Yellow) */
.pn-notification-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* Info Style (Blue) */
.pn-notification-info {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* Error Style (Red) */
.pn-notification-error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Success Style (Green) */
.pn-notification-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

/* Responsive */
@media (max-width: 768px) {
    .pn-notification {
        padding: 14px 16px;
        gap: 12px;
        font-size: 14px;
    }
    
    .pn-notification .pn-icon {
        width: 20px;
        height: 20px;
    }
    
    .pn-notification .pn-close-btn {
        top: 8px;
        right: 8px;
        font-size: 20px;
    }
}

/* Print */
@media print {
    .pn-notification {
        box-shadow: none;
        border: 1px solid;
    }
    
    .pn-notification .pn-close-btn {
        display: none;
    }
}
