/* =============================================
   Instagram Reels Section
   ============================================= */

.reels-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f5 100%);
}

.reels-section .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.reels-section .section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
}

.reels-section .section-header p {
    color: #6b7280;
    margin-top: 0.5rem;
    font-size: 1.05rem;
}

/* Instagram gradient text accent */
.ig-gradient-text {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Horizontal scroll container */
.reels-scroll-wrapper {
    position: relative;
}

.reels-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 0 1.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.reels-grid::-webkit-scrollbar {
    display: none;
}

/* Individual reel card */
.reel-card {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Reel iframe container — 9:16 portrait for reels */
.reel-embed {
    position: relative;
    width: 100%;
    padding-bottom: 125%; /* slightly taller than square */
    overflow: hidden;
    background: #f3f4f6;
}

.reel-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Caption below the embed */
.reel-caption {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
    border-top: 1px solid #f3f4f6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scroll arrow buttons */
.reels-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #374151;
    transition: all 0.2s ease;
}

.reels-scroll-btn:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    color: #111827;
}

.reels-scroll-btn.left {
    left: -22px;
}

.reels-scroll-btn.right {
    right: -22px;
}

/* Follow link */
.reels-follow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reels-follow-link:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.3);
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .reel-card {
        flex: 0 0 240px;
    }

    .reels-scroll-btn {
        display: none;
    }
}

@media (max-width: 576px) {
    .reels-section {
        padding: 3rem 0;
    }

    .reel-card {
        flex: 0 0 220px;
    }

    .reels-section .section-header h2 {
        font-size: 1.5rem;
    }
}
