/* Flavors Social Feed Widget Styles */

.flavor-social-feed {
    width: 100%;
}

/* Social Header */
.flavor-social-header {
    margin-bottom: 20px;
    text-align: center;
}

.flavor-follow-button a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.flavor-follow-button a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Loading State */
.flavor-loading-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.flavor-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: Flavor-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes Flavor-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Feed Container */
.flavor-social-feed-container {
    width: 100%;
}

/* Grid Layout */
.flavor-social-feed-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
}

/* Masonry Layout */
.flavor-social-feed-masonry {
    column-count: 3;
    column-gap: 20px;
}

.flavor-social-feed-masonry .flavor-feed-item {
    break-inside: avoid;
    margin-bottom: 20px;
}

/* Carousel Layout */
.flavor-social-feed-carousel {
    position: relative;
    overflow: hidden;
}

.flavor-carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

.flavor-carousel-track .flavor-feed-item {
    flex: 0 0 300px;
    margin-right: 20px;
}

.flavor-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.flavor-carousel-nav:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.flavor-carousel-prev {
    left: 10px;
}

.flavor-carousel-next {
    right: 10px;
}

/* List Layout */
.flavor-social-feed-list .flavor-feed-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.flavor-social-feed-list .flavor-feed-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Feed Item */
.flavor-feed-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.flavor-feed-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Feed Item Image */
.flavor-feed-image {
    position: relative;
    overflow: hidden;
}

.flavor-feed-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.flavor-feed-item:hover .flavor-feed-image img {
    transform: scale(1.05);
}

.flavor-feed-platform-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.flavor-feed-instagram .flavor-feed-platform-icon {
    color: #E4405F;
}

.flavor-feed-twitter .flavor-feed-platform-icon {
    color: #1DA1F2;
}

.flavor-feed-facebook .flavor-feed-platform-icon {
    color: #1877F2;
}

.flavor-feed-youtube .flavor-feed-platform-icon {
    color: #FF0000;
}

.flavor-feed-linkedin .flavor-feed-platform-icon {
    color: #0A66C2;
}

/* Feed Item Content */
.flavor-feed-content {
    padding: 15px;
}

.flavor-feed-caption {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flavor-feed-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.flavor-feed-date {
    font-weight: 500;
}

.flavor-feed-engagement {
    display: flex;
    gap: 15px;
}

.flavor-feed-likes,
.flavor-feed-comments {
    display: flex;
    align-items: center;
    gap: 4px;
}

.flavor-feed-likes i,
.flavor-feed-comments i {
    color: #ff6b6b;
}

/* Video Overlay */
.flavor-feed-video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    transition: all 0.3s ease;
}

.flavor-feed-item:hover .flavor-feed-video-overlay {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Popup Modal */
.flavor-social-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.flavor-social-popup.active {
    opacity: 1;
    visibility: visible;
}

.flavor-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.flavor-popup-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.flavor-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    z-index: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.flavor-popup-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.flavor-popup-body {
    padding: 20px;
}

/* Error State */
.flavor-feed-error {
    text-align: center;
    padding: 40px 20px;
    color: #e74c3c;
    background: #fdf2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

.flavor-feed-error i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .flavor-social-feed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .flavor-social-feed-masonry {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .flavor-social-feed-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .flavor-social-feed-masonry {
        column-count: 1;
    }
    
    .flavor-feed-image img {
        height: 200px;
    }
    
    .flavor-carousel-track .flavor-feed-item {
        flex: 0 0 250px;
    }
    
    .flavor-popup-content {
        margin: 10px;
    }
    
    .flavor-popup-body {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .flavor-feed-content {
        padding: 12px;
    }
    
    .flavor-feed-caption {
        font-size: 13px;
    }
    
    .flavor-feed-meta {
        font-size: 11px;
    }
    
    .flavor-follow-button a {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .flavor-feed-item {
        background: #2c3e50;
        color: white;
    }
    
    .flavor-feed-caption {
        color: #ecf0f1;
    }
    
    .flavor-feed-meta {
        color: #bdc3c7;
    }
    
    .flavor-popup-content {
        background: #2c3e50;
        color: white;
    }
    
    .flavor-feed-error {
        background: #3c2415;
        border-color: #8b4513;
        color: #ff6b6b;
    }
}

/* ===== SKIN STYLES ===== */

/* Minimal Skin */
.flavor-skin-minimal .flavor-feed-item {
    box-shadow: none;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* Overlay Skin */
.flavor-skin-overlay .flavor-feed-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.flavor-skin-overlay .flavor-feed-image img {
    height: 300px; /* Taller image for overlay */
}

.flavor-skin-overlay .flavor-feed-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    padding: 20px;
    z-index: 2;
    pointer-events: none; /* Let clicks pass through to item */
}

.flavor-skin-overlay .flavor-feed-caption,
.flavor-skin-overlay .flavor-feed-meta,
.flavor-skin-overlay .flavor-feed-date,
.flavor-skin-overlay .flavor-feed-likes,
.flavor-skin-overlay .flavor-feed-comments,
.flavor-skin-overlay .flavor-feed-likes i,
.flavor-skin-overlay .flavor-feed-comments i {
    color: #fff;
}

.flavor-skin-overlay .flavor-feed-caption {
    margin-bottom: 5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

