/**
 * Public styles for FlashSale Core
 *
 * @package FlashSale_Core
 * @since 2.0.0
 */

/* Promotion Info - Clean & Simple */
.fs-promotion-info {
    margin: 15px 0;
    padding: 0;
    background: none;
    border: none;
}

.fs-promotion-item {
    margin-bottom: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.fs-promotion-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.fs-promotion-title {
    color: #d63384;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
}

.fs-promotion-description {
    color: #6c757d;
    font-size: 14px;
    margin: 0 0 10px;
    line-height: 1.4;
}

/* Promotion Badge */
.fs-promotion-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.fs-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    color: #fff;
}

.fs-badge-sale {
    background: #dc3545;
}

.fs-badge-limited {
    background: #fd7e14;
}

.fs-badge-new {
    background: #28a745;
}

/* Price Display */
.fs-original-price {
    color: #6c757d;
    text-decoration: line-through;
}

.fs-sale-price {
    color: #dc3545;
    font-weight: 600;
}

.fs-savings {
    color: #28a745;
    font-weight: 600;
    font-size: 14px;
}

/* Flash Deal Banner */
.fs-flash-deal-banner {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    padding: 0;
    border-radius: 8px;
    margin: 15px 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.fs-flash-deal-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    min-height: 60px;
}

.fs-flash-deal-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fs-flash-icon {
    font-size: 20px;
    animation: flash 1.5s infinite;
}

@keyframes flash {
    0%, 50% { opacity: 1; }
    25%, 75% { opacity: 0.7; }
}

.fs-flash-text {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.fs-countdown-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fs-countdown-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.fs-countdown-timer-boxes {
    display: flex;
    gap: 6px;
}

.fs-countdown-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 8px 10px;
    min-width: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fs-countdown-number {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    display: block;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Stock Progress - Clean */
.fs-stock-progress {
    margin: 10px 0;
}

.fs-stock-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
}

.fs-stock-sold {
    color: #d63384;
    font-weight: 500;
}

.fs-stock-remaining {
    color: #198754;
    font-weight: 500;
}

.fs-progress-bar {
    height: 6px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.fs-progress-fill {
    height: 100%;
    background: #d63384;
    transition: width 0.3s ease;
}

/* Promotion Gifts - Simple */
.fs-promotion-gifts {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
}

.fs-gifts-title {
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
}

.fs-gifts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fs-gift-item {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    padding: 4px 8px;
    font-size: 12px;
}

.fs-gift-name {
    color: #495057;
    font-weight: 500;
}

/* Campaign Shortcode */
.fs-campaign-shortcode {
    margin: 30px 0;
}

.fs-campaign-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px;
    text-align: center;
}

.fs-campaign-description {
    text-align: center;
    color: #6c757d;
    margin: 0 0 30px;
}

.fs-products-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.fs-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.fs-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.fs-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.fs-columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.fs-campaign-product {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fs-campaign-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.fs-product-image {
    position: relative;
    overflow: hidden;
}

.fs-product-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.fs-campaign-product:hover .fs-product-image img {
    transform: scale(1.05);
}

.fs-product-info {
    padding: 15px;
}

.fs-product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
}

.fs-product-title a {
    color: #333;
    text-decoration: none;
}

.fs-product-title a:hover {
    color: #dc3545;
}

.fs-product-price {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px;
}

.fs-product-actions {
    text-align: center;
}

.fs-view-product {
    background: #dc3545;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.fs-view-product:hover {
    background: #c82333;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fs-columns-4,
    .fs-columns-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .fs-flash-deal-content {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
        text-align: center;
    }

    .fs-countdown-section {
        flex-direction: column;
        gap: 8px;
    }

    .fs-countdown-timer-boxes {
        gap: 4px;
    }

    .fs-countdown-box {
        padding: 6px 8px;
        min-width: 35px;
    }

    .fs-countdown-number {
        font-size: 16px;
    }

    .fs-flash-text {
        font-size: 14px;
    }

    .fs-stock-info {
        flex-direction: column;
        gap: 5px;
    }

    .fs-promotion-info {
        margin: 10px 0;
    }

    .fs-promotion-item {
        padding: 8px 0;
    }
}

@media (max-width: 480px) {
    .fs-columns-2,
    .fs-columns-3,
    .fs-columns-4,
    .fs-columns-5 {
        grid-template-columns: 1fr;
    }
    
    .fs-gifts-list {
        flex-direction: column;
    }
    
    .fs-countdown-timer {
        padding: 10px;
    }
    
    .fs-countdown-display {
        font-size: 14px;
    }
}

/* Animation */
@keyframes flash {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.5;
    }
}

/* Removed flash animation for simpler styling */

/* Loading States */
.fs-loading {
    opacity: 0.6;
    pointer-events: none;
}

.fs-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ccc;
    border-top-color: #dc3545;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Variation Promotions */
.fs-variation-promotions {
    margin: 20px 0;
}

.fs-variation-notice {
    background: #e6f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 12px;
    color: #0066cc;
    font-style: italic;
    text-align: center;
    margin-bottom: 15px;
}

.fs-variation-promotion {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
    background: #fff;
    animation: slideIn 0.3s ease;
}

.fs-variation-info {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
    padding: 6px 10px;
    border-radius: 3px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
}

.fs-main-product-promotion {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Simple Progress Bar for Variations */
.fs-variation-promotion .fs-progress-bar {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.fs-variation-promotion .fs-progress-fill {
    background: #6c757d;
}

/* Mobile Responsive for Variations */
@media (max-width: 768px) {
    .fs-variation-promotion {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .fs-variation-info {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .fs-variation-notice {
        padding: 10px;
        font-size: 13px;
    }
}
