/*==============================
BBC-Inspired Social Media Wall Styles
==============================*/

/* Section Styling */
.social-media-wall {
    background: #f8f9fa;
    position: relative;
}

.social-media-wall .section-title {
    margin-bottom: 3rem;
}

.social-media-wall .sec-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.social-media-wall .sub-title {
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.social-media-wall .subtitle {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layout */
.social-media-wall .row.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

/* Base Card Styles */
.bbc-social-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 4px solid transparent;
    position: relative;
}

.bbc-social-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.bbc-social-card.twitter-card {
    border-left-color: #1da1f2;
}

.bbc-social-card.youtube-card {
    border-left-color: #ff0000;
}

/* Card Header */
.bbc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    min-height: 60px;
}

.platform-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

.platform-badge i {
    font-size: 1.2rem;
}

.platform-badge.twitter {
    color: #1da1f2;
}

.platform-badge.youtube {
    color: #ff0000;
}

.platform-label {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    font-weight: 700;
}

.post-timestamp {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

/* Card Body */
.bbc-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Media Container */
.media-container,
.video-container {
    margin-bottom: 1rem;
}

.image-wrapper,
.video-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #f8f9fa;
}

.content-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bbc-social-card:hover .content-image {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bbc-social-card:hover .image-overlay {
    opacity: 1;
}

/* Play Button */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.play-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button.youtube-play {
    background: rgba(255, 0, 0, 0.9);
}

.play-button.youtube-play:hover {
    background: rgba(255, 0, 0, 1);
}

/* Video Badge */
.video-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.video-duration {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

/* Text Content */
.text-content {
    flex: 1;
    margin-bottom: 1rem;
}

.content-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-excerpt,
.content-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Engagement Metrics */
.engagement-metrics {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #666;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.metric-item:hover {
    color: #333;
}

.metric-item i {
    font-size: 0.9rem;
}

.metric-count {
    font-weight: 600;
}

/* Card Footer */
.bbc-card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.view-content-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.view-content-btn:hover {
    background: #333;
    color: #fff;
    border-color: #333;
    transform: translateY(-1px);
}

.btn-text {
    flex: 1;
}

.view-content-btn i {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.view-content-btn:hover i {
    opacity: 1;
}

/* Social Media Links */
.bbc-social-links {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.social-cta {
    margin-bottom: 2rem;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.cta-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 160px;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-btn i {
    font-size: 1.5rem;
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-label {
    font-size: 0.9rem;
    line-height: 1.2;
}

.btn-platform {
    font-size: 0.8rem;
    opacity: 0.8;
}

.twitter-btn {
    background: #1da1f2;
    color: white;
}

.twitter-btn:hover {
    background: #1a91da;
    color: white;
}

.youtube-btn {
    background: #ff0000;
    color: white;
}

.youtube-btn:hover {
    background: #e60000;
    color: white;
}

/* Empty State */
.bbc-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.empty-content {
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    margin-bottom: 1.5rem;
}

.empty-icon i {
    font-size: 3rem;
    color: #ccc;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.empty-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.empty-actions {
    display: flex;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .bbc-social-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .social-media-wall .sec-title {
        font-size: 2rem;
    }
    
    .social-media-wall .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
    
    .bbc-card-header {
        padding: 0.75rem 1rem;
    }

    .bbc-card-body {
        padding: 1rem;
    }

    .bbc-card-footer {
        padding: 0.75rem 1rem;
    }

    .content-image {
        height: 180px;
    }

    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .social-buttons {
        flex-direction: column;
        align-items: center;
    }

    .social-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .bbc-social-links {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .social-media-wall .sec-title {
        font-size: 1.75rem;
    }
    
    .bbc-card-header {
        padding: 0.75rem;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .platform-badge {
        font-size: 0.8rem;
    }

    .post-timestamp {
        font-size: 0.75rem;
    }

    .content-image {
        height: 160px;
    }

    .engagement-metrics {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .empty-actions {
        flex-direction: column;
        align-items: center;
    }

    .bbc-empty-state {
        padding: 2rem 1rem;
    }
} 