/* Notification Bar Pro - Frontend Styles */

.nbp-notification {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.nbp-notification.nbp-top {
    top: 0;
}

.nbp-notification.nbp-bottom {
    bottom: 0;
}

.nbp-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 15px;
    flex-wrap: wrap;
}

.nbp-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.nbp-icon-left {
    order: 1;
}

.nbp-icon-right {
    order: 3;
}

.nbp-content {
    flex: 1;
    order: 2;
    line-height: 1.4;
}

.nbp-content p {
    margin: 0;
}

.nbp-cta {
    flex-shrink: 0;
    order: 3;
}

.nbp-cta-button {
    display: inline-block;
    padding: 8px 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 20px;
}

.nbp-cta-button:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.nbp-cta-rounded {
    border-radius: 4px;
}

.nbp-cta-square {
    border-radius: 0;
}

.nbp-cta-pill {
    border-radius: 25px;
}

.nbp-close {
    flex-shrink: 0;
    order: 4;
    margin-left: 10px;
}

.nbp-close-btn {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.nbp-close-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Countdown Styles */
.nbp-countdown {
    margin-top: 10px;
}

.nbp-countdown-timer {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.nbp-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Default Countdown Style */
.nbp-countdown-default {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 5px;
    min-width: 50px;
    text-align: center;
}

.nbp-countdown-default .nbp-countdown-number {
    font-size: 1.4em;
    font-weight: bold;
    line-height: 1;
}

/* Modern Cards Style */
.nbp-countdown-modern {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 8px;
    min-width: 60px;
    text-align: center;
    transition: transform 0.3s ease;
}

.nbp-countdown-modern:hover {
    transform: translateY(-3px);
}

.nbp-countdown-modern .nbp-countdown-number {
    font-size: 1.8em;
    font-weight: 700;
    line-height: 1;
}

/* Digital Display Style */
.nbp-countdown-digital {
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 6px;
    min-width: 55px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nbp-countdown-digital::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    animation: scan 2s linear infinite;
}

.nbp-countdown-digital .nbp-countdown-number {
    font-size: 1.6em;
    font-weight: bold;
    line-height: 1;
}

@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Elegant Boxes Style */
.nbp-countdown-elegant {
    padding: 16px 22px;
    border-radius: 8px;
    margin-bottom: 8px;
    min-width: 65px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.nbp-countdown-elegant::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 6px;
    pointer-events: none;
}

.nbp-countdown-elegant .nbp-countdown-number {
    font-size: 1.7em;
    font-weight: 600;
    line-height: 1;
}

/* Neon Glow Style */
.nbp-countdown-neon {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 8px;
    min-width: 60px;
    text-align: center;
    border: 2px solid;
    background: rgba(0,0,0,0.7);
    animation: neonPulse 2s ease-in-out infinite alternate;
}

.nbp-countdown-neon .nbp-countdown-number {
    font-size: 1.6em;
    font-weight: bold;
    line-height: 1;
}

@keyframes neonPulse {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

/* Flip Animation Style */
.nbp-countdown-flip {
    width: 60px;
    height: 80px;
    position: relative;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
}

.nbp-countdown-flip-top,
.nbp-countdown-flip-bottom {
    position: absolute;
    width: 100%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.nbp-countdown-flip-top {
    top: 0;
    border-radius: 6px 6px 0 0;
}

.nbp-countdown-flip-bottom {
    bottom: 0;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(0,0,0,0.3));
}

.nbp-countdown-flip-divider {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(0,0,0,0.5);
    transform: translateY(-50%);
}

.nbp-countdown-flip .nbp-countdown-number,
.nbp-countdown-flip .nbp-countdown-number-shadow {
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1;
}

.nbp-countdown-flip .nbp-countdown-number-shadow {
    opacity: 0.7;
}

/* Circular Progress Style */
.nbp-countdown-circular-wrapper {
    gap: 20px;
}

.nbp-countdown-circle {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
}

.nbp-countdown-progress {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.nbp-countdown-progress-bar {
    transition: stroke-dashoffset 1s ease;
}

.nbp-countdown-circle-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.nbp-countdown-circle .nbp-countdown-number {
    font-size: 1.3em;
    font-weight: bold;
    line-height: 1;
    display: block;
}

.nbp-countdown-circle .nbp-countdown-label {
    font-size: 0.7em;
    line-height: 1;
    display: block;
    margin-top: 2px;
}

/* Size Variations */
.nbp-countdown-small .nbp-countdown-number {
    font-size: 1em !important;
}

.nbp-countdown-small .nbp-countdown-default,
.nbp-countdown-small .nbp-countdown-modern,
.nbp-countdown-small .nbp-countdown-digital,
.nbp-countdown-small .nbp-countdown-elegant,
.nbp-countdown-small .nbp-countdown-neon {
    padding: 8px 12px;
    min-width: 40px;
}

.nbp-countdown-small .nbp-countdown-flip {
    width: 45px;
    height: 60px;
}

.nbp-countdown-small .nbp-countdown-circle {
    width: 60px;
    height: 60px;
}

.nbp-countdown-small .nbp-countdown-progress {
    width: 60px;
    height: 60px;
}

.nbp-countdown-large .nbp-countdown-number {
    font-size: 2.2em !important;
}

.nbp-countdown-large .nbp-countdown-default,
.nbp-countdown-large .nbp-countdown-modern,
.nbp-countdown-large .nbp-countdown-digital,
.nbp-countdown-large .nbp-countdown-elegant,
.nbp-countdown-large .nbp-countdown-neon {
    padding: 20px 28px;
    min-width: 80px;
}

.nbp-countdown-large .nbp-countdown-flip {
    width: 80px;
    height: 110px;
}

.nbp-countdown-large .nbp-countdown-circle {
    width: 100px;
    height: 100px;
}

.nbp-countdown-large .nbp-countdown-progress {
    width: 100px;
    height: 100px;
}

/* Common styles for labels */
.nbp-countdown-label {
    font-size: 0.8em;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Animation for number changes */
.nbp-countdown-number {
    transition: all 0.3s ease;
}

.nbp-countdown-number.changing {
    animation: numberChange 0.5s ease;
}

@keyframes numberChange {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); }
}

/* Responsive adjustments for countdown */
@media (max-width: 768px) {
    .nbp-countdown-timer {
        gap: 10px;
    }
    
    .nbp-countdown-item {
        min-width: 40px;
    }
    
    .nbp-countdown-number {
        font-size: 1.2em !important;
    }
    
    .nbp-countdown-label {
        font-size: 0.7em;
    }
    
    .nbp-countdown-default,
    .nbp-countdown-modern,
    .nbp-countdown-digital,
    .nbp-countdown-elegant,
    .nbp-countdown-neon {
        padding: 8px 12px !important;
        min-width: 40px !important;
    }
    
    .nbp-countdown-flip {
        width: 45px !important;
        height: 60px !important;
    }
    
    .nbp-countdown-circle {
        width: 60px !important;
        height: 60px !important;
/* Flip Animation Effects */
.nbp-countdown-flip.flipping .nbp-countdown-flip-top {
    animation: flipTop 0.6s ease-in-out;
}

.nbp-countdown-flip.flipping .nbp-countdown-flip-bottom {
    animation: flipBottom 0.6s ease-in-out;
}

@keyframes flipTop {
    0% { transform: rotateX(0deg); }
    50% { transform: rotateX(-90deg); }
    100% { transform: rotateX(0deg); }
}

@keyframes flipBottom {
    0% { transform: rotateX(0deg); }
    50% { transform: rotateX(90deg); }
    100% { transform: rotateX(0deg); }
}

/* Enhanced Neon Effects */
.nbp-countdown-neon:hover {
    animation: neonFlicker 0.5s ease-in-out;
}

@keyframes neonFlicker {
    0%, 100% { opacity: 1; }
    25% { opacity: 0.8; }
    50% { opacity: 1; }
    75% { opacity: 0.9; }
}

/* Modern card hover effects */
.nbp-countdown-modern:hover {
    transform: translateY(-5px) scale(1.05);
}

/* Digital scan line effect */
.nbp-countdown-digital::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% { transform: translateY(0px); opacity: 1; }
    50% { opacity: 0.5; }
    100% { transform: translateY(60px); opacity: 0; }
}

/* Elegant box shimmer effect */
.nbp-countdown-elegant:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s ease-in-out;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Urgency animations for low time */
.nbp-countdown.urgent .nbp-countdown-item {
    animation: urgent 1s ease-in-out infinite alternate;
}

@keyframes urgent {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.nbp-countdown.urgent .nbp-countdown-neon {
    animation: urgentNeon 0.5s ease-in-out infinite alternate;
}

@keyframes urgentNeon {
    0% { 
        box-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
    }
    100% { 
        box-shadow: 0 0 15px currentColor, 0 0 30px currentColor, 0 0 45px currentColor;
    }
}

/* Particle effects for special moments */
.nbp-countdown-particles {
    position: relative;
}

.nbp-countdown-particles::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.3) 1px, transparent 1px);
    background-size: 10px 10px;
    animation: particles 2s linear infinite;
    pointer-events: none;
    opacity: 0;
}

.nbp-countdown-particles.active::before {
    opacity: 1;
}

@keyframes particles {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-10px, -10px) rotate(360deg); }
}

@media (max-width: 480px) {
    .nbp-countdown-timer {
        gap: 8px;
        justify-content: center;
    }
    
    .nbp-countdown-number {
        font-size: 1em !important;
    }
    
    .nbp-countdown-label {
        font-size: 0.6em;
    }
}

/* Animations */
.nbp-slide.nbp-top {
    transform: translateY(-100%);
}

.nbp-slide.nbp-bottom {
    transform: translateY(100%);
}

.nbp-slide.nbp-show {
    transform: translateY(0);
}

.nbp-fade {
    opacity: 0;
}

.nbp-fade.nbp-show {
    opacity: 1;
}

.nbp-bounce.nbp-top {
    transform: translateY(-100%);
    animation: nbpBounceInDown 0.6s ease-out forwards;
}

.nbp-bounce.nbp-bottom {
    transform: translateY(100%);
    animation: nbpBounceInUp 0.6s ease-out forwards;
}

.nbp-bounce.nbp-show {
    transform: translateY(0);
}

@keyframes nbpBounceInDown {
    0% { transform: translateY(-100%); }
    60% { transform: translateY(10px); }
    80% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

@keyframes nbpBounceInUp {
    0% { transform: translateY(100%); }
    60% { transform: translateY(-10px); }
    80% { transform: translateY(5px); }
    100% { transform: translateY(0); }
}

/* Hide animations */
.nbp-hide {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nbp-container {
        padding: 0 15px;
        gap: 10px;
    }
    
    .nbp-countdown-timer {
        gap: 10px;
    }
    
    .nbp-countdown-item {
        min-width: 40px;
    }
    
    .nbp-countdown-number {
        font-size: 1.2em;
    }
    
    .nbp-countdown-label {
        font-size: 0.7em;
    }
    
    .nbp-cta-button {
        padding: 6px 15px;
        font-size: 13px;
    }
    
    .nbp-content {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .nbp-container {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 8px;
        padding: 0 10px;
    }
    
    .nbp-icon {
        align-self: flex-start;
    }
    
    .nbp-cta {
        align-self: stretch;
    }
    
    .nbp-cta-button {
        display: block;
        text-align: center;
        width: 100%;
    }
    
    .nbp-close {
        position: absolute;
        top: 5px;
        right: 5px;
        margin-left: 0;
    }
    
    .nbp-countdown-timer {
        justify-content: center;
        width: 100%;
    }
}

/* Admin body class adjustments */
body.admin-bar .nbp-notification.nbp-top {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .nbp-notification.nbp-top {
        top: 46px;
    }
}

/* Print styles */
@media print {
    .nbp-notification {
        display: none !important;
    }
}