/* assets/css/style.css */
:root {
    --gradient-info: linear-gradient(135deg, #0396FF, #0D47A1);
    --gradient-success: linear-gradient(135deg, #00C853, #1B5E20);
    --gradient-warning: linear-gradient(135deg, #FFB300, #E65100);
    --gradient-error: linear-gradient(135deg, #FF1744, #D50000);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.08);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pbn-banner {
    position: fixed;
    top: 32px;
    left: 0;
    right: 0;
    z-index: 999999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    transform: translateY(-100%);
    transition: var(--transition-smooth);
    opacity: 0;
}

body:not(.admin-bar) .pbn-banner {
    top: 0;
}

.pbn-banner.pbn-show {
    transform: translateY(0);
    opacity: 1;
}

.pbn-container {
   
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    position: relative;
}

.pbn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    max-width: 800px;
    position: relative;
}

.pbn-banner p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
    color: #2C3E50;
}

.pbn-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition-smooth);
    min-width: 120px;
    border: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.pbn-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pbn-button:hover::before {
    opacity: 1;
}

/* Banner Types with Gradients */
.pbn-info {
    border-image: var(--gradient-info) 1;
    border-bottom: 3px solid;
}

.pbn-info .pbn-button {
    background: var(--gradient-info);
    color: white;
    box-shadow: 0 4px 15px rgba(3, 150, 255, 0.3);
}

.pbn-success {
    border-image: var(--gradient-success) 1;
    border-bottom: 3px solid;
}

.pbn-success .pbn-button {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

.pbn-warning {
    border-image: var(--gradient-warning) 1;
    border-bottom: 3px solid;
}

.pbn-warning .pbn-button {
    background: var(--gradient-warning);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 179, 0, 0.3);
}

.pbn-error {
    border-image: var(--gradient-error) 1;
    border-bottom: 3px solid;
}

.pbn-error .pbn-button {
    background: var(--gradient-error);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.3);
}

.pbn-close {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0;
}

.pbn-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-50%) rotate(90deg);
}

.pbn-close::before,
.pbn-close::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 14px;
    background-color: #666;
    top: 50%;
    left: 50%;
}

.pbn-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.pbn-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Glass Effect for Modern Browsers */
@supports (backdrop-filter: blur(10px)) {
    .pbn-banner {
        background: rgba(255, 255, 255, 0.8);
    }
}

/* Enhanced Mobile Styles */
@media (max-width: 768px) {
    .pbn-container {
        padding: 16px;
    }
    
    .pbn-content {
        gap: 16px;
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
    
    .pbn-button {
        width: 100%;
        max-width: 280px;
        padding: 12px 24px;
    }
    
    .pbn-close {
        top: 14px;
        right: 14px;
        transform: none;
    }
    
    .pbn-close:hover {
        transform: rotate(90deg);
    }
}

/* Animation Classes */
@keyframes slide-in {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pbn-show {
    animation: slide-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}