/* CZWP Demo Mode Frontend Styles */

.czwp-demo-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    min-height: 44px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    text-align: center;
    padding: 12px 20px;
    font-weight: bold;
    font-size: 14px;
    z-index: 999999;
    box-shadow: 0 -2px 15px rgba(255, 107, 107, 0.4);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    animation: czwp-pulse 3s ease-in-out infinite;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.czwp-demo-banner-content {
    flex: 1;
    position: relative;
}

@media screen and (max-width: 600px) {
    .czwp-demo-banner {
        font-size: 12px;
        padding: 10px 15px;
    }
}

@keyframes czwp-pulse {
    0%, 100% { 
        opacity: 1; 
        transform: translateY(0);
    }
    50% { 
        opacity: 0.9; 
        transform: translateY(-1px);
    }
}

.czwp-demo-banner .czwp-close-banner {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.czwp-demo-banner .czwp-close-banner:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.czwp-demo-banner-icon {
    margin-right: 8px;
    animation: czwp-rotate 4s linear infinite;
}

@keyframes czwp-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Body adjustments for demo mode */
body.czwp-demo-active {
    padding-bottom: 50px !important;
    transition: padding-bottom 0.3s ease;
}

/* Demo overlay effect */
.czwp-demo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 107, 107, 0.02),
        rgba(255, 107, 107, 0.02) 10px,
        transparent 10px,
        transparent 20px
    );
    pointer-events: none;
    z-index: 999998;
    opacity: 0;
    animation: czwp-overlay-fade 15s infinite;
}

@keyframes czwp-overlay-fade {
    0%, 85%, 100% { opacity: 0; }
    10%, 75% { opacity: 1; }
}

/* Demo login widget styles */
.czwp-demo-login-widget {
    background: #fff;
    border: 2px solid #ff6b6b;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
}

.czwp-demo-login-widget h3 {
    color: #ff6b6b;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.czwp-demo-login-widget label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.czwp-demo-login-widget input[type="text"],
.czwp-demo-login-widget input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.czwp-demo-login-widget input[type="text"]:focus,
.czwp-demo-login-widget input[type="password"]:focus {
    border-color: #ff6b6b;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.czwp-demo-login-widget input[type="submit"] {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.czwp-demo-login-widget input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.czwp-demo-credentials {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

.czwp-demo-credentials small {
    color: #6c757d;
    line-height: 1.5;
}

/* Demo login info on wp-login page */
.czwp-demo-login-info {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.czwp-demo-login-info p {
    margin: 5px 0;
}

.czwp-demo-login-info code {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
}

/* Demo banner shortcode styles */
.czwp-demo-banner-shortcode {
    position: relative;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 20px;
    text-align: center;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: czwp-banner-glow 2s ease-in-out infinite alternate;
}

@keyframes czwp-banner-glow {
    from { box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3); }
    to { box-shadow: 0 6px 25px rgba(255, 107, 107, 0.5); }
}

.czwp-demo-banner-shortcode .czwp-demo-banner-icon {
    font-size: 1.2em;
    margin-right: 10px;
}

/* Demo user notice styles */
.czwp-demo-user-notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 107, 107, 0.95);
    color: white;
    padding: 15px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    z-index: 999997;
    animation: czwp-slide-in 0.5s ease-out;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
    backdrop-filter: blur(10px);
}

@keyframes czwp-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media screen and (max-width: 600px) {
    .czwp-demo-user-notice {
        bottom: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
        border-radius: 15px;
    }
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    .czwp-demo-login-widget {
        padding: 15px;
        margin: 15px 0;
    }
    
    .czwp-demo-banner {
        font-size: 11px;
        padding: 8px 10px;
    }
    
    .czwp-demo-banner .czwp-close-banner {
        width: 25px;
        height: 25px;
        font-size: 14px;
        right: 10px;
    }
}

/* Print styles - hide demo elements when printing */
@media print {
    .czwp-demo-banner,
    .czwp-demo-overlay,
    .czwp-demo-user-notice,
    .czwp-demo-login-info {
        display: none !important;
    }
    
    body.czwp-demo-active {
        padding-bottom: 0 !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .czwp-demo-banner {
        background: #d63031;
        border-bottom: 3px solid #000;
    }
    
    .czwp-demo-login-widget {
        border-color: #d63031;
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .czwp-demo-banner,
    .czwp-demo-banner-icon,
    .czwp-demo-overlay,
    .czwp-demo-banner-shortcode {
        animation: none;
    }
    
    .czwp-demo-banner .czwp-close-banner:hover,
    .czwp-demo-login-widget input[type="submit"]:hover {
        transform: none;
    }
}