/* Social Feeds Section Styles */

.social-feeds-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.social-feeds-section .section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    position: relative;
    z-index: 2;
}

.social-feeds-section .section-title .text-blue {
    color: #0066cc;
}

.social-feeds-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* Individual Feed Card */
.social-feed {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.social-feed:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Feed Header */
.feed-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feed-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.feed-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.feed-link:hover {
    color: #0052a3;
}

.feed-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.feed-link:hover svg {
    transform: translateX(2px);
}

/* Feed Content */
.feed-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feed-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.feed-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 0.95rem;
}

.feed-error {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin: 0;
}

.feed-error a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.feed-error a:hover {
    text-decoration: underline;
}

/* Feed Thumbnail */
.feed-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.feed-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-thumbnail a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    text-decoration: none;
}

.feed-thumbnail a:hover {
    background: rgba(0, 0, 0, 0.3);
}

.feed-thumbnail a:hover .play-button {
    transform: scale(1.2);
}

/* Play Button for YouTube */
.play-button {
    width: 70px;
    height: 70px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

/* Feed Details */
.feed-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feed-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-item-description {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Action Buttons */
.btn-watch,
.btn-follow,
.btn-view-post {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.btn-watch:hover,
.btn-follow:hover,
.btn-view-post:hover {
    background: #0052a3;
    transform: translateX(2px);
}

/* YouTube Specific */
.youtube-feed .btn-watch {
    background: #ff0000;
}

.youtube-feed .btn-watch:hover {
    background: #cc0000;
}

/* TikTok Specific */
.tiktok-feed {
    border: 2px solid #000;
}

.tiktok-feed .feed-title {
    color: #000;
}

.tiktok-feed .btn-follow {
    background: #000;
}

.tiktok-feed .btn-follow:hover {
    background: #333;
}

.feed-tiktok-embed {
    width: 100%;
    margin: 20px 0;
}

/* Facebook Specific */
.facebook-feed .btn-view-post {
    background: #1877f2;
}

.facebook-feed .btn-view-post:hover {
    background: #0a66c2;
}

/* Social Feeds Note */
.social-feeds-note {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 15px 20px;
    text-align: center;
    color: #004085;
    font-size: 0.9rem;
}

.social-feeds-note a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
}

.social-feeds-note a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .social-feeds-section {
        padding: 60px 20px;
    }

    .social-feeds-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .social-feeds-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .feed-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .feed-link {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .social-feeds-section {
        padding: 40px 15px;
    }

    .social-feeds-section .section-title {
        font-size: 1.5rem;
    }

    .feed-content {
        padding: 15px;
    }

    .feed-item-title {
        font-size: 1rem;
    }

    .btn-watch,
    .btn-follow,
    .btn-view-post {
        width: 100%;
    }
}

/* Embed Styles */
.feed-content {
    padding: 20px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.instagram-embed {
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
}

.facebook-embed {
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
}

.tiktok-embed-container {
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.feed-content blockquote {
    max-width: 100%;
    margin: 0 !important;
}

/* Social Feeds Note */
.social-feeds-note {
    background-color: #e7f3ff;
    border-left: 4px solid #0066cc;
    padding: 15px 20px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
}

.social-feeds-note p {
    margin: 0;
    color: #0066cc;
}

.social-feeds-note a {
    color: #0066cc;
    font-weight: 600;
    text-decoration: none;
}

.social-feeds-note a:hover {
    text-decoration: underline;
}
