/**
 * SmartWeb Social Styles
 */

/* Social Links */
.smartweb-social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.smartweb-social-links.align-center {
    justify-content: center;
}

.smartweb-social-links.align-right {
    justify-content: flex-end;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Style: Icons */
.smartweb-social-links.style-icons .social-link {
    padding: 0.5rem;
}

/* Style: Buttons */
.smartweb-social-links.style-buttons .social-link {
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    color: white;
}

.smartweb-social-links.style-buttons .social-name {
    font-weight: 500;
    font-size: 0.875rem;
}

/* Style: Minimal */
.smartweb-social-links.style-minimal .social-link {
    width: 2rem;
    height: 2rem;
    background: transparent;
    color: #6b7280;
}

.smartweb-social-links.style-minimal .social-link:hover {
    color: #111827;
}

/* Size variations */
.smartweb-social-links.size-small .social-link {
    font-size: 0.75rem;
}

.smartweb-social-links.size-small .social-link svg {
    width: 16px;
    height: 16px;
}

.smartweb-social-links.size-large .social-link {
    font-size: 1.125rem;
}

.smartweb-social-links.size-large .social-link svg {
    width: 24px;
    height: 24px;
}

/* Shape variations */
.smartweb-social-links.shape-circle .social-link {
    border-radius: 50%;
}

.smartweb-social-links.shape-square .social-link {
    border-radius: 0;
}

.smartweb-social-links.shape-rounded .social-link {
    border-radius: 0.5rem;
}

/* Color variations */
.smartweb-social-links.color-brand .social-link {
    color: white;
}

.smartweb-social-links.color-brand .social-link:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.smartweb-social-links.color-monochrome .social-link {
    background: #374151;
    color: white;
}

.smartweb-social-links.color-monochrome .social-link:hover {
    background: #111827;
}

.smartweb-social-links.color-custom .social-link {
    background: #f3f4f6;
    color: #374151;
}

.smartweb-social-links.color-custom .social-link:hover {
    background: #e5e7eb;
}

/* Social Share */
.smartweb-social-share {
    margin: 2rem 0;
}

.share-title {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Share Style: Buttons */
.smartweb-social-share.style-buttons .share-button {
    padding: 0.5rem 1rem;
    color: white;
    border-radius: 0.5rem;
    font-weight: 500;
}

.smartweb-social-share.style-buttons .share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Share Style: Icons */
.smartweb-social-share.style-icons .share-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
}

.smartweb-social-share.style-icons .share-button:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Share Style: Floating */
.smartweb-social-share.style-floating {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.smartweb-social-share.style-floating .share-buttons {
    flex-direction: column;
}

.smartweb-social-share.style-floating .share-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
}

/* Share Count */
.share-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Social Feed */
.smartweb-social-feed {
    margin: 2rem 0;
}

/* Feed Grid */
.feed-grid {
    display: grid;
    gap: 1rem;
}

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

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

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

.feed-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #f9fafb;
}

.feed-image {
    display: block;
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

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

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

.feed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feed-item:hover .feed-overlay {
    opacity: 1;
}

.feed-stats {
    display: flex;
    gap: 1rem;
    color: white;
}

.feed-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.feed-stats svg {
    width: 20px;
    height: 20px;
}

.feed-caption {
    padding: 1rem;
}

.feed-caption p {
    margin-bottom: 0.5rem;
    color: #374151;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-size: 0.875rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* Feed Slider */
.feed-slider {
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.3s ease;
}

.slide-item {
    flex: 0 0 100%;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slider-prev {
    left: 1rem;
}

.slider-next {
    right: 1rem;
}

/* Feed List */
.feed-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.list-item {
    display: flex;
    gap: 1rem;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.item-image {
    flex: 0 0 120px;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-content {
    flex: 1;
    padding: 1rem;
}

.item-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.item-text {
    margin-bottom: 1rem;
    color: #374151;
    line-height: 1.6;
}

.item-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.item-link:hover {
    text-decoration: underline;
}

/* Feed Footer */
.feed-footer {
    text-align: center;
    margin-top: 2rem;
}

.follow-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Placeholder */
.smartweb-social-feed-placeholder {
    text-align: center;
    padding: 3rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .feed-grid.columns-3,
    .feed-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .smartweb-social-share.style-floating {
        display: none;
    }
    
    .list-item {
        flex-direction: column;
    }
    
    .item-image {
        flex: 0 0 200px;
    }
}

@media (max-width: 480px) {
    .feed-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .smartweb-social-links {
        justify-content: center;
    }
}