/* WooCommerce Demo Manager Frontend Styles */

.wc-demo-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.wc-demo-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.wc-demo-info * {
    position: relative;
    z-index: 1;
}

.demo-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.demo-countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 15px 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 80px;
}

.countdown-item .number {
    display: block;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
}

.countdown-item .label {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.demo-progress-bar {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    height: 8px;
    margin: 20px 0 10px 0;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #00f260, #0575e6);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    text-align: center;
    font-size: 14px;
    opacity: 0.9;
}

.demo-warning {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    animation: warning-pulse 2s infinite;
}

@keyframes warning-pulse {
    0%, 100% { 
        background: rgba(255, 193, 7, 0.2);
        transform: scale(1);
    }
    50% { 
        background: rgba(255, 193, 7, 0.3);
        transform: scale(1.02);
    }
}

.warning-icon {
    font-size: 20px;
    margin-right: 10px;
}

.demo-details {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.demo-details p {
    margin: 0;
    font-size: 14px;
}

.demo-expired {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.demo-disabled {
    background: linear-gradient(135deg, #ffa726 0%, #ff7043 100%);
}

.demo-inactive {
    background: linear-gradient(135deg, #78909c 0%, #546e7a 100%);
}

.demo-button {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.demo-button:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

.demo-button.upgrade {
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
    border-color: transparent;
}

.demo-button.upgrade:hover {
    background: linear-gradient(45deg, #f5576c 0%, #f093fb 100%);
}

.demo-actions {
    text-align: center;
    margin-top: 20px;
}

/* Inline Shortcodes */
.demo-countdown-inline {
    font-weight: 600;
    color: #007cba;
}

.demo-countdown-expired {
    color: #dc3545;
    font-weight: 600;
}

.demo-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.demo-status-active { color: #28a745; }
.demo-status-expired { color: #dc3545; }
.demo-status-disabled { color: #ffc107; }
.demo-status-inactive { color: #6c757d; }

/* Login Required Message */
.wc-demo-login-required {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

/* Style Variations */
.wc-demo-info-minimal {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
    box-shadow: none;
}

.wc-demo-info-compact {
    padding: 15px;
    margin: 10px 0;
}

.wc-demo-info-compact .demo-title {
    font-size: 18px;
    margin-bottom: 15px;
}

.wc-demo-info-compact .demo-countdown {
    gap: 10px;
}

.wc-demo-info-compact .countdown-item {
    padding: 10px 15px;
    min-width: 60px;
}

.wc-demo-info-compact .countdown-item .number {
    font-size: 20px;
}

/* Dark Theme */
.wc-demo-info-dark {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

/* Light Theme */
.wc-demo-info-light {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .wc-demo-info {
        padding: 20px 15px;
        margin: 15px 0;
    }
    
    .demo-title {
        font-size: 20px;
    }
    
    .demo-countdown {
        gap: 10px;
    }
    
    .countdown-item {
        padding: 12px 15px;
        min-width: 70px;
    }
    
    .countdown-item .number {
        font-size: 24px;
    }
    
    .countdown-item .label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .demo-countdown {
        gap: 8px;
    }
    
    .countdown-item {
        padding: 10px 12px;
        min-width: 60px;
    }
    
    .countdown-item .number {
        font-size: 20px;
    }
    
    .demo-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .progress-fill::after,
    .demo-warning,
    .demo-button {
        animation: none;
    }
    
    .demo-button {
        transition: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .wc-demo-info {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .countdown-item {
        background: #333;
        border: 1px solid #fff;
    }
    
    .demo-button {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
}

/* Print Styles */
@media print {
    .wc-demo-info {
        background: none !important;
        color: #000 !important;
        border: 2px solid #000;
        box-shadow: none;
    }
    
    .demo-countdown {
        display: flex;
    }
    
    .countdown-item {
        background: none;
        border: 1px solid #000;
    }
    
    .demo-button {
        display: none;
    }
}