/**
 * Summer10 Campaign Styles
 * Separated from PHP for better organization and caching
 */

/* Summer10 Banner Styles */
.summer10-banner {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    text-align: center;
    padding: 15px;
    font-weight: bold;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: summer10-pulse 2s infinite;
    transition: all 0.3s ease;
}

/* Banner Animation */
@keyframes summer10-pulse {
    0%, 100% { 
        opacity: 1; 
        transform: translateY(0);
    }
    50% { 
        opacity: 0.9; 
        transform: translateY(-1px);
    }
}

/* Banner Close Button */
.summer10-banner-close {
    float: right;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.summer10-banner-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.summer10-banner-close:active {
    transform: scale(0.95);
}

/* Summer10 Discount Messages */
.summer10-discount-message {
    background: #4ecdc4 !important;
    border-color: #45b7aa !important;
    color: white !important;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
    animation: summer10-slideIn 0.5s ease-out;
}

.summer10-discount-message strong {
    font-weight: 700;
}

/* Body spacing when banner is active */
body.summer10-active {
    padding-top: 60px;
    transition: padding-top 0.3s ease;
}

/* Animation for discount messages */
@keyframes summer10-slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .summer10-banner {
        padding: 10px;
        font-size: 14px;
        position: relative; /* Changed from fixed for mobile */
        top: auto;
    }
    
    body.summer10-active {
        padding-top: 0; /* Remove top padding on mobile */
    }
    
    .summer10-banner-close {
        position: absolute;
        top: 8px;
        right: 10px;
        font-size: 18px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .summer10-banner {
        background: #000;
        border: 2px solid #fff;
    }
    
    .summer10-discount-message {
        background: #000 !important;
        border: 2px solid #fff !important;
        color: #fff !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .summer10-banner {
        animation: none;
    }
    
    .summer10-discount-message {
        animation: none;
    }
    
    .summer10-banner-close {
        transition: none;
    }
    
    body.summer10-active {
        transition: none;
    }
}

/* Print styles */
@media print {
    .summer10-banner {
        display: none !important;
    }
    
    body.summer10-active {
        padding-top: 0 !important;
    }
}

/* Focus styles for accessibility */
.summer10-banner-close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Hover effects for interactive elements */
.summer10-banner a {
    color: white;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.summer10-banner a:hover {
    opacity: 0.8;
}

/* Integration with WooCommerce notices */
.woocommerce-notices-wrapper .summer10-discount-message {
    position: relative;
    z-index: 1;
} 