/**
 * ChirpyWeb Push Notifications Styles
 * Version: 2.0.0
 */

/* Prompt container */
.cwpn-prompt {
    position: fixed;
    z-index: 2147483647;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    pointer-events: none;
    max-width: 90vw;
}

/* Hidden state */
.cwpn-prompt.cwpn-hidden {
    display: none;
}

/* Visible state */
.cwpn-prompt.cwpn-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Position variations */
.cwpn-prompt.cwpn-bottom-right {
    bottom: 20px;
    right: 20px;
}

.cwpn-prompt.cwpn-bottom-left {
    bottom: 20px;
    left: 20px;
}

.cwpn-prompt.cwpn-top-right {
    top: 20px;
    right: 20px;
}

.cwpn-prompt.cwpn-top-left {
    top: 20px;
    left: 20px;
}

.cwpn-prompt.cwpn-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Content container */
.cwpn-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 20px;
    min-width: 320px;
    max-width: 400px;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    overflow: hidden;
}

/* Header with icon and text */
.cwpn-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

/* Icon */
.cwpn-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

/* Text container */
.cwpn-text {
    flex: 1;
}

.cwpn-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.cwpn-message {
    font-size: 14px;
    color: #666666;
    line-height: 1.4;
}

/* Action buttons */
.cwpn-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.cwpn-btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: inherit;
    pointer-events: auto;
    box-sizing: border-box;
    display: block;
    margin: 0;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.cwpn-btn-allow {
    background: linear-gradient(135deg, #2579B0 0%, #2C97DF 100%);
    color: #ffffff;
}

.cwpn-btn-allow:hover {
    background: linear-gradient(135deg, #1e6a9a 0%, #2485c9 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 121, 176, 0.4);
}

.cwpn-btn-allow:active {
    transform: translateY(0);
}

.cwpn-btn-dismiss {
    background: #f5f5f5;
    color: #666666;
}

.cwpn-btn-dismiss:hover {
    background: #eeeeee;
    color: #444444;
}

/* Tablet responsive */
@media (max-width: 768px) {
    .cwpn-prompt {
        max-width: calc(100vw - 30px);
    }
    
    .cwpn-content {
        max-width: 100%;
        padding: 18px;
    }
    
    .cwpn-prompt.cwpn-bottom-right,
    .cwpn-prompt.cwpn-bottom-left,
    .cwpn-prompt.cwpn-top-right,
    .cwpn-prompt.cwpn-top-left {
        bottom: 15px;
        left: 15px;
        right: 15px;
    }
}

/* Mobile responsive */
@media (max-width: 480px) {
    .cwpn-prompt {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        top: auto !important;
        max-width: calc(100vw - 20px);
    }
    
    .cwpn-prompt.cwpn-bottom-center {
        transform: none;
        left: 10px !important;
    }
    
    .cwpn-content {
        min-width: unset;
        max-width: 100%;
        width: 100%;
        padding: 16px;
        border-radius: 10px;
    }
    
    .cwpn-header {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .cwpn-icon {
        font-size: 26px;
    }
    
    .cwpn-title {
        font-size: 14px;
    }
    
    .cwpn-message {
        font-size: 12px;
    }
    
    .cwpn-btn {
        padding: 11px 16px;
        font-size: 13px;
        border-radius: 7px;
    }
    
    .cwpn-actions {
        gap: 6px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .cwpn-content {
        padding: 14px;
    }
    
    .cwpn-icon {
        font-size: 24px;
    }
    
    .cwpn-title {
        font-size: 13px;
    }
    
    .cwpn-message {
        font-size: 11px;
    }
    
    .cwpn-btn {
        padding: 10px 14px;
        font-size: 12px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .cwpn-content {
        background: #2d2d2d;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .cwpn-title {
        color: #ffffff;
    }
    
    .cwpn-message {
        color: #cccccc;
    }
    
    .cwpn-btn-dismiss {
        background: #3d3d3d;
        color: #cccccc;
    }
    
    .cwpn-btn-dismiss:hover {
        background: #4d4d4d;
        color: #ffffff;
    }
}

/* Animation */
@keyframes cwpn-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cwpn-prompt.cwpn-visible .cwpn-content {
    animation: cwpn-slide-up 0.3s ease-out;
}

/* ========================================
   PROMPT STYLE VARIATIONS
   ======================================== */

/* Modern Style (Blue Gradient) - Default */
.cwpn-style-modern .cwpn-btn-allow {
    background: linear-gradient(135deg, #2579B0 0%, #2C97DF 100%);
    color: #ffffff;
}

.cwpn-style-modern .cwpn-btn-allow:hover {
    background: linear-gradient(135deg, #1e6a9a 0%, #2485c9 100%);
}

/* Minimal Style (Clean White) */
.cwpn-style-minimal .cwpn-content {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.cwpn-style-minimal .cwpn-title {
    color: #2c3e50;
}

.cwpn-style-minimal .cwpn-message {
    color: #7f8c8d;
}

.cwpn-style-minimal .cwpn-btn-allow {
    background: #2c3e50;
    color: #ffffff;
}

.cwpn-style-minimal .cwpn-btn-allow:hover {
    background: #34495e;
}

.cwpn-style-minimal .cwpn-btn-dismiss {
    background: #ecf0f1;
    color: #7f8c8d;
}

.cwpn-style-minimal .cwpn-btn-dismiss:hover {
    background: #bdc3c7;
    color: #2c3e50;
}

/* Bold Style (Dark Theme) */
.cwpn-style-bold .cwpn-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #404040;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.cwpn-style-bold .cwpn-title {
    color: #ffffff;
    font-weight: 700;
}

.cwpn-style-bold .cwpn-message {
    color: #b0b0b0;
}

.cwpn-style-bold .cwpn-btn-allow {
    background: #ffffff;
    color: #1a1a1a;
    font-weight: 600;
}

.cwpn-style-bold .cwpn-btn-allow:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.cwpn-style-bold .cwpn-btn-dismiss {
    background: transparent;
    color: #b0b0b0;
    border: 1px solid #404040;
}

.cwpn-style-bold .cwpn-btn-dismiss:hover {
    background: #404040;
    color: #ffffff;
}

/* Gradient Style (Purple/Pink) */
.cwpn-style-gradient .cwpn-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
}

.cwpn-style-gradient .cwpn-title {
    color: #ffffff;
    font-weight: 600;
}

.cwpn-style-gradient .cwpn-message {
    color: rgba(255, 255, 255, 0.9);
}

.cwpn-style-gradient .cwpn-btn-allow {
    background: #ffffff;
    color: #667eea;
    font-weight: 600;
}

.cwpn-style-gradient .cwpn-btn-allow:hover {
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.cwpn-style-gradient .cwpn-btn-dismiss {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cwpn-style-gradient .cwpn-btn-dismiss:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Professional Style (Gray) */
.cwpn-style-professional .cwpn-content {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cwpn-style-professional .cwpn-title {
    color: #212529;
    font-weight: 600;
}

.cwpn-style-professional .cwpn-message {
    color: #6c757d;
}

.cwpn-style-professional .cwpn-btn-allow {
    background: #495057;
    color: #ffffff;
}

.cwpn-style-professional .cwpn-btn-allow:hover {
    background: #343a40;
}

.cwpn-style-professional .cwpn-btn-dismiss {
    background: #e9ecef;
    color: #495057;
}

.cwpn-style-professional .cwpn-btn-dismiss:hover {
    background: #dee2e6;
    color: #212529;
}

/* Vibrant Style (Orange/Red) */
.cwpn-style-vibrant .cwpn-content {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border: none;
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.4);
}

.cwpn-style-vibrant .cwpn-title {
    color: #ffffff;
    font-weight: 700;
}

.cwpn-style-vibrant .cwpn-message {
    color: rgba(255, 255, 255, 0.95);
}

.cwpn-style-vibrant .cwpn-btn-allow {
    background: #ffffff;
    color: #ff6b6b;
    font-weight: 600;
}

.cwpn-style-vibrant .cwpn-btn-allow:hover {
    background: #fff5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.cwpn-style-vibrant .cwpn-btn-dismiss {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cwpn-style-vibrant .cwpn-btn-dismiss:hover {
    background: rgba(255, 255, 255, 0.3);
}
