/*==============================
Twitter-Style Social Media Wall
==============================*/

/* Section Styling */
.social-media-wall {
    background: #ffffff;
    position: relative;
    padding: 4rem 0;
}

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

.social-media-wall .sec-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #14171a;
    margin-bottom: 1rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

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

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

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

/* Card Link Styles */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Base Card Styles */
.social-card {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 16px;
    transition: all 0.2s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.social-card:hover {
    border-color: #ccd6dd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Twitter Card Styles (unchanged) */
.twitter-card {
    /* Uses all the existing styles */
}

/* YouTube Card Styles (new horizontal design) */
.youtube-card {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.youtube-card:hover {
    border-color: #ccd6dd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Video Header (Thumbnail Section) */
.video-header {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #000;
}

.youtube-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.youtube-card:hover .youtube-thumbnail {
    transform: scale(1.05);
}

/* Video Badge */
.video-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* YouTube Logo */
.youtube-logo {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #ff0000;
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* YouTube Play Button */
.youtube-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.youtube-card:hover .youtube-play-btn {
    background: rgba(255, 0, 0, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video Content Section */
.video-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-date {
    color: #657786;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-title {
    font-size: 16px;
    font-weight: 700;
    color: #14171a;
    line-height: 1.3;
    margin: 0 0 8px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-description {
    font-size: 14px;
    color: #657786;
    line-height: 1.4;
    margin: 0 0 16px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Watch Button */
.watch-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #14171a;
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    align-self: flex-start;
    margin-top: auto;
    transition: all 0.2s ease;
}

.youtube-card:hover .watch-button {
    background: #1d9bf0;
    transform: translateY(-1px);
}

/* Twitter Card Action Button */
.card-action {
    padding: 12px 16px;
    border-top: 1px solid #f7f9fa;
    margin-top: auto;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1d9bf0;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.twitter-card:hover .action-btn {
    background: #1a8cd8;
    transform: translateY(-1px);
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 15px;
    font-weight: 700;
    color: #14171a;
    margin: 0;
    line-height: 20px;
}

.profile-handle {
    font-size: 15px;
    color: #657786;
    margin: 0;
    line-height: 20px;
}

.platform-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.platform-badge.twitter {
    background: #e8f4ff;
    color: #1d9bf0;
}

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

.platform-badge i {
    font-size: 14px;
}

/* Post Content */
.post-content {
    padding: 0 16px;
    flex: 1;
}

.post-text {
    font-size: 15px;
    line-height: 20px;
    color: #14171a;
    margin-bottom: 12px;
    word-wrap: break-word;
}

/* Media Container */
.media-container {
    margin: 12px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e1e8ed;
}

.content-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.video-wrapper {
    position: relative;
    background: #000;
}

.video-thumbnail {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.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);
}

/* Engagement Stats */
.engagement-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px 12px;
    border-top: 1px solid #f7f9fa;
    margin-top: auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #657786;
    font-size: 13px;
    transition: color 0.2s ease;
    cursor: pointer;
    padding: 8px;
    border-radius: 20px;
    margin: -8px;
}

.stat-item:hover {
    background: rgba(29, 161, 242, 0.1);
    color: #1d9bf0;
}

.stat-item.retweet:hover {
    background: rgba(23, 191, 99, 0.1);
    color: #17bf63;
}

.stat-item.like:hover {
    background: rgba(249, 24, 128, 0.1);
    color: #f91880;
}

.stat-item.share:hover {
    background: rgba(29, 161, 242, 0.1);
    color: #1d9bf0;
}

.stat-item i {
    font-size: 16px;
}

.stat-count {
    font-weight: 500;
    font-size: 13px;
}

/* Post Timestamp */
.post-timestamp {
    color: #657786;
    font-size: 13px;
    padding: 0 16px 12px;
    margin-top: auto;
}

/* Social Media Links Section */
.social-media-links {
    background: #f7f9fa;
    padding: 2rem 0;
    margin-top: 3rem;
    border-radius: 16px;
}

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

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

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

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

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 12px 24px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    min-width: 140px;
    justify-content: center;
}

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

.twitter-btn:hover {
    background: #1a8cd8;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 155, 240, 0.3);
}

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

.youtube-btn:hover {
    background: #e60000;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.social-btn i {
    font-size: 18px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #657786;
}

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

.empty-icon {
    font-size: 4rem;
    color: #aab8c2;
    margin-bottom: 1rem;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #14171a;
    margin-bottom: 0.5rem;
}

.empty-description {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.empty-actions {
    margin-top: 2rem;
}

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

@media (max-width: 768px) {
    .social-media-wall {
        padding: 2rem 0;
    }
    
    .social-media-wall .sec-title {
        font-size: 2rem;
    }
    
    .social-media-wall .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
    
    /* Twitter Card Mobile Styles */
    .profile-header {
        padding: 10px 12px;
    }
    
    .post-content {
        padding: 0 12px;
    }
    
    .engagement-stats {
        padding: 6px 12px 10px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .stat-item {
        flex: 1;
        justify-content: center;
        min-width: 80px;
    }
    
    /* YouTube Card Mobile Styles */
    .video-header {
        height: 160px;
    }
    
    .video-content {
        padding: 12px;
    }
    
    .video-title {
        font-size: 15px;
    }
    
    .video-description {
        font-size: 13px;
    }
    
    .watch-button {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .action-btn {
        padding: 6px 14px;
        font-size: 12px;
    }

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

    .social-btn {
        width: 200px;
    }

    .social-media-links {
        margin: 2rem -15px 0;
        border-radius: 0;
    }
}

@media (max-width: 576px) {
    .social-media-wall .sec-title {
        font-size: 1.75rem;
    }
    
    /* Twitter Card Small Mobile Styles */
    .profile-header {
        padding: 8px 10px;
        gap: 8px;
    }
    
    .profile-avatar {
        width: 40px;
        height: 40px;
    }
    
    .profile-name,
    .profile-handle {
        font-size: 14px;
    }

    .platform-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .post-text {
        font-size: 14px;
        line-height: 18px;
    }
    
    .content-image,
    .video-thumbnail {
        max-height: 200px;
    }
    
    .stat-item {
        font-size: 12px;
        gap: 6px;
    }
    
    .stat-item i {
        font-size: 14px;
    }
    
    /* YouTube Card Small Mobile Styles */
    .video-header {
        height: 140px;
    }
    
    .video-content {
        padding: 10px;
    }
    
    .video-date {
        font-size: 11px;
    }
    
    .video-title {
        font-size: 14px;
    }
    
    .video-description {
        font-size: 12px;
    }
    
    .watch-button {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .youtube-play-btn {
        width: 56px;
        height: 40px;
        font-size: 16px;
    }
    
    .video-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .youtube-logo {
        font-size: 20px;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
    
    .social-btn {
        width: 100%;
        max-width: 280px;
    }
} 