/* Push Notify WordPress Plugin Styles */

#push-notify-widget {
    position: fixed;
    z-index: 999999;
    max-width: 350px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e1e5e9;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.3s ease;
}

#push-notify-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Position Classes */
.pn-bottom_right {
    bottom: 20px;
    right: 20px;
}

.pn-bottom_left {
    bottom: 20px;
    left: 20px;
}

.pn-top_right {
    top: 20px;
    right: 20px;
}

.pn-top_left {
    top: 20px;
    left: 20px;
}

.pn-content {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.pn-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.pn-text {
    flex: 1;
}

.pn-title {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 4px;
}

.pn-message {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.4;
    margin-bottom: 15px;
}

.pn-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.pn-btn {
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pn-primary {
    background: #3498db;
    color: white;
}

.pn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.pn-primary.pn-enabled {
    background: #27ae60;
}

.pn-primary:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.pn-secondary {
    background: #ecf0f1;
    color: #7f8c8d;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.pn-secondary:hover {
    background: #d5dbdb;
}

.pn-status {
    padding: 0 20px 15px;
}

.pn-status-success {
    background: #d5f4e6;
    color: #27ae60;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid #27ae60;
}

.pn-status-error {
    background: #fdeaea;
    color: #e74c3c;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid #e74c3c;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #push-notify-widget {
        max-width: calc(100vw - 40px);
        margin: 0 20px;
    }
    
    .pn-bottom_right, .pn-bottom_left {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
    
    .pn-top_right, .pn-top_left {
        left: 20px;
        right: 20px;
        top: 20px;
    }
    
    .pn-content {
        padding: 15px;
    }
    
    .pn-actions {
        flex-direction: column;
    }
    
    .pn-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #push-notify-widget {
        background: #2c3e50;
        border-color: #34495e;
    }
    
    .pn-title {
        color: #ecf0f1;
    }
    
    .pn-message {
        color: #bdc3c7;
    }
    
    .pn-secondary {
        background: #34495e;
        color: #bdc3c7;
    }
    
    .pn-secondary:hover {
        background: #4a6741;
    }
}

/* Animation for widget appearance */
#push-notify-widget {
    animation: slideInUp 0.4s ease-out;
    opacity: 1;
    visibility: visible;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Pulse animation for notification icon */
.pn-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}