/* ============================================================
   SOCIAL-FEED.CSS — Instagram & YouTube Feed Sections
   ============================================================ */

/* ── Social Feed Section ── */
.social-feed-section {
    background: linear-gradient(160deg, #0E0818 0%, #1A1025 50%, #0E0818 100%);
    padding: 96px 0;
    overflow: hidden;
    position: relative;
}

.social-feed-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(194,24,91,0.5), transparent);
}

/* Section heading */
.social-feed-header {
    text-align: center;
    margin-bottom: 56px;
    position: relative;
    z-index: 1;
}

.social-feed-header h2 {
    color: #fff;
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.social-feed-header h2 span {
    background: linear-gradient(135deg, #E91E8C, #C2185B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-feed-header p {
    color: rgba(255,255,255,0.55);
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Platform tabs */
.platform-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.platform-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    border: 1.5px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.65);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s ease;
    text-decoration: none;
}

.platform-tab.insta-tab i {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1rem;
}

.platform-tab.yt-tab i { color: #FF0000; font-size: 1rem; }

.platform-tab.active,
.platform-tab:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Instagram Grid ── */
.insta-feed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    position: relative;
    z-index: 1;
}

.insta-post {
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    background: #1A1025;
    cursor: pointer;
}

.insta-post a {
    display: block;
    width: 100%;
    height: 100%;
}

.insta-post-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2D1040, #1A1025);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s ease;
}

.insta-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}

.insta-post-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(194,24,91,0.75), rgba(136,14,79,0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: 8px;
}

.insta-post-overlay i { color: #fff; font-size: 1.6rem; }
.insta-post-overlay span {
    color: rgba(255,255,255,0.85);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
}

.insta-post:hover .insta-post-overlay { opacity: 1; }
.insta-post:hover img { transform: scale(1.1); }

/* Feature post (1st post — big) */
.insta-post.featured {
    grid-column: span 2;
    grid-row: span 2;
    border-radius: 12px;
}

/* ── YouTube Shorts Grid ── */
.yt-feed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
    z-index: 1;
}

.yt-short-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #1A1025;
    cursor: pointer;
    aspect-ratio: 9/16;
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.06);
}

.yt-short-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    border-color: rgba(255,0,0,0.3);
}

.yt-short-card a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.yt-short-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.yt-short-card:hover .yt-short-thumb { transform: scale(1.06); }

.yt-short-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    transition: background 0.35s;
}

.yt-short-card:hover .yt-short-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 100%);
}

.yt-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 52px;
    height: 52px;
    background: rgba(255,0,0,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(255,0,0,0.5);
}

.yt-play-btn i { color: #fff; font-size: 1rem; margin-left: 3px; }

.yt-short-card:hover .yt-play-btn {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 8px 30px rgba(255,0,0,0.7);
}

.yt-short-label {
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.3;
}

.yt-short-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,0,0,0.85);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    font-family: 'Montserrat', sans-serif;
    width: fit-content;
}

/* Profile / Channel CTA */
.social-feed-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.social-channel-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.35s ease;
    backdrop-filter: blur(8px);
}

.social-channel-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.channel-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.channel-avatar.insta-avatar {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: #fff;
}

.channel-avatar.yt-avatar {
    background: #FF0000;
    color: #fff;
}

.channel-info { display: flex; flex-direction: column; }

.channel-name {
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
}

.channel-handle {
    color: rgba(255,255,255,0.55);
    font-size: 0.78rem;
    font-family: 'Montserrat', sans-serif;
}

.channel-follow-btn {
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.insta-follow { background: radial-gradient(circle at 30% 107%, #fdf497, #fd5949, #d6249f, #285AEB); color: #fff; }
.yt-follow    { background: #FF0000; color: #fff; }

.channel-follow-btn:hover { transform: scale(1.05); filter: brightness(1.1); }

/* ── Placeholder items for posts without real images ── */
.insta-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2D1040, #1A1025);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.insta-placeholder i {
    font-size: 2rem;
    background: radial-gradient(circle at 30% 107%, #fdf497, #fd5949, #d6249f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.insta-placeholder span {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Responsive */
@media (max-width: 900px) {
    .insta-feed-grid  { grid-template-columns: repeat(3, 1fr); }
    .insta-post.featured { grid-column: span 1; grid-row: span 1; }
    .yt-feed-grid     { grid-template-columns: repeat(2, 1fr); }
    .social-channel-card { padding: 12px 16px; }
}

@media (max-width: 600px) {
    .insta-feed-grid { grid-template-columns: repeat(2, 1fr); }
    .yt-feed-grid    { grid-template-columns: repeat(2, 1fr); }
    .social-feed-header h2 { font-size: 2rem; }
    .platform-tabs { gap: 8px; }
    .platform-tab { padding: 8px 16px; font-size: 0.78rem; }
}
