/**
 * WCO Deal System - Public CSS
 */

/* Cards Grid */
.wco-deals-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin: 30px 0;
}

/* Single Deal Card */
.wco-deal-card {
    width: 320px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    padding-bottom: 60px;
}

.wco-deal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Card Image */
.wco-deal-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

/* Card Content */
.wco-deal-content {
    padding: 16px;
}

.wco-deal-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 8px;
}

.wco-deal-title a {
    text-decoration: none;
    color: #333;
}

.wco-deal-title a:hover {
    color: #e53935;
}

.wco-deal-city {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.wco-deal-offer-title {
    font-size: 16px;
    font-weight: 500;
    margin: 10px 0;
}

.wco-deal-price {
    font-size: 22px;
    font-weight: bold;
    color: #2ecc71;
    margin: 12px 0;
}

.wco-deal-price strong {
    font-size: 24px;
}

.wco-deal-coupon-count {
    font-size: 13px;
    color: #777;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wco-deal-coupon-count i {
    color: #e53935;
}

/* Button */
.wco-deal-button {
    display: inline-block;
    background-color: #e53935;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.wco-deal-button:hover {
    background-color: #c62828;
    color: #fff;
}

/* Card Actions (Like, Favorite, Share) */
.wco-card-actions {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.wco-like-toggle,
.wco-favorite-toggle,
.wco-share-toggle {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 24px;
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.wco-like-toggle:hover,
.wco-favorite-toggle:hover,
.wco-share-toggle:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.wco-like-toggle.liked i.fa-heart {
    color: #e74c3c;
}

.wco-favorite-toggle.favorited i.fa-bookmark {
    color: #f1c40f;
}

.wco-likes-count,
.wco-favorites-count,
.wco-shares-count {
    font-weight: 500;
    color: #555;
}

/* Floating Social Icons */
.wco-floating-social {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
    background: rgba(255,255,255,0.95);
    padding: 12px 8px;
    border-radius: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border: 1px solid #eee;
}

.wco-floating-social .wco-like-toggle,
.wco-floating-social .wco-favorite-toggle,
.wco-floating-social .wco-share-toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    flex-direction: column;
    justify-content: center;
    padding: 8px;
    gap: 4px;
}

.wco-floating-social .wco-like-toggle i,
.wco-floating-social .wco-favorite-toggle i,
.wco-floating-social .wco-share-toggle i {
    font-size: 22px;
}

.wco-floating-social .wco-likes-count,
.wco-floating-social .wco-favorites-count,
.wco-floating-social .wco-shares-count {
    font-size: 11px;
}

/* Share Dropdown */
.wco-share-dropdown {
    position: fixed;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    padding: 12px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wco-share-dropdown a,
.wco-share-dropdown button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: #333;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.wco-share-dropdown a:hover,
.wco-share-dropdown button:hover {
    background-color: #f5f5f5;
}

.wco-share-dropdown i {
    width: 20px;
    text-align: center;
}

.wco-share-close {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px;
    font-size: 14px;
    color: #999;
}

/* Login Required Message */
.wco-login-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    border-left: 4px solid #e53935;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

.wco-login-message a {
    color: #e53935;
    text-decoration: underline;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider Styles */
.wco-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
}

.wco-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.wco-slide {
    flex: 0 0 100%;
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

.wco-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px 20px;
    color: #fff;
}

.wco-slider-prev,
.wco-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    font-size: 18px;
}

.wco-slider-prev {
    left: 10px;
}

.wco-slider-next {
    right: 10px;
}

/* Map Styles */
.wco-map {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .wco-deal-card {
        width: calc(100% - 20px);
        max-width: 320px;
    }
    
    .wco-floating-social {
        right: 10px;
        gap: 8px;
        padding: 8px 6px;
    }
    
    .wco-floating-social .wco-like-toggle,
    .wco-floating-social .wco-favorite-toggle,
    .wco-floating-social .wco-share-toggle {
        width: 44px;
        height: 44px;
    }
    
    .wco-floating-social .wco-like-toggle i,
    .wco-floating-social .wco-favorite-toggle i,
    .wco-floating-social .wco-share-toggle i {
        font-size: 18px;
    }
    
    .wco-slide {
        min-height: 300px;
    }
    
    .wco-slide-overlay h2 {
        font-size: 18px;
    }
}