/* ──────────────────────────────────────────────
   Social Media Section
   Design: Navy primary (#1e3a5f), Gold accent (#d4a853)
   ────────────────────────────────────────────── */

.social-media-section {
    padding: var(--section-padding-y, clamp(3rem, 6vw, 6rem)) 0;
    background: var(--bg-cream, #faf8f5);
}

/* ── Brand Cards Grid ── */
.social-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.social-brand-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.social-brand-name {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary, #1e3a5f);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-accent, #d4a853);
}

.social-brand-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

/* ── Follow Button ── */
.social-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.social-follow-btn i {
    font-size: 1rem;
    transition: color 0.25s ease;
}

.social-follow-btn:hover {
    background: var(--platform-color, #1e3a5f);
    color: #ffffff;
    border-color: var(--platform-color, #1e3a5f);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-follow-btn:hover i {
    color: #ffffff;
}

.social-follow-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Featured Posts Grid ── */
.social-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.social-post-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.social-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Platform Badge */
.social-post-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Embed Container */
.social-post-embed {
    width: 100%;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-post-embed iframe {
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
}

/* Thumbnail Fallback */
.social-post-thumbnail {
    width: 100%;
    padding-top: 100%; /* 1:1 ratio */
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}

.social-post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.social-post-card:hover .social-post-thumbnail img {
    transform: scale(1.05);
}

/* Caption & Link */
.social-post-caption {
    padding: 1rem 1.25rem 0.5rem;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}

.social-post-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    margin-top: auto;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary, #1e3a5f);
    text-decoration: none;
    border-top: 1px solid #f1f5f9;
    transition: color 0.25s ease, background 0.25s ease;
}

.social-post-link:hover {
    color: var(--color-accent, #d4a853);
    background: #faf8f5;
}

.social-post-link i {
    font-size: 0.75rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .social-brands-grid {
        grid-template-columns: 1fr;
    }

    .social-posts-grid {
        grid-template-columns: 1fr;
    }

    .social-brand-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .social-follow-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }

    .social-follow-name {
        max-width: 100px;
    }
}
