/**
 * Engagement Grid Equal Height Fix
 * Ensures Twitter feed and Polls columns are equal height
 */

.fan-engagement-section {
    padding: var(--space-8) var(--space-6);
    max-width: var(--container-2xl);
    margin: 0 auto;
    background: var(--neutral-100);
}

.engagement-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    align-items: stretch; /* Make both columns same height */
}

.engagement-column {
    display: flex;
    flex-direction: column;
    background: var(--neutral-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-height: 600px; /* Minimum height for both columns */
}

.section-header-engagement {
    background: linear-gradient(135deg, #041E42 0%, #0a2a52 100%);
    padding: var(--space-4) var(--space-5);
    border-bottom: 3px solid #FFB81C;
}

.section-header-engagement h2 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--neutral-white);
    margin: 0;
    line-height: 1.2;
}

.section-header-engagement .arrow {
    color: #FFB81C;
    font-weight: 700;
}

/* Engagement content area - fills remaining space */
.engagement-content {
    flex: 1; /* Takes all available space */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
}

/* Twitter column specific */
.twitter-column .engagement-content {
    padding: var(--space-3);
}

/* Polls column specific */
.polls-column .engagement-content {
    padding: var(--space-4);
}

/* Equal height for Twitter feed items */
#twitter-feed-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    height: 100%;
}

/* Equal height for polls */
#homepage-polls-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    height: 100%;
}

/* Mobile: Stack vertically */
@media (max-width: 1024px) {
    .engagement-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .engagement-column {
        min-height: 400px;
        overflow: hidden;
        box-sizing: border-box;
    }

    .engagement-content {
        overflow-x: hidden;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .fan-engagement-section {
        padding: var(--space-6) var(--space-4);
    }

    .engagement-column {
        min-height: 350px;
        max-width: 100%;
        overflow: hidden;
    }

    .engagement-content {
        padding: var(--space-3) var(--space-2);
        overflow-x: hidden;
    }

    .section-header-engagement h2 {
        font-size: var(--font-size-lg);
    }
}

/* Extra small phones - additional containment */
@media (max-width: 480px) {
    .fan-engagement-section {
        padding: var(--space-4) var(--space-2);
        overflow: hidden;
    }

    .engagement-grid {
        gap: var(--space-3);
        overflow: hidden;
    }

    .engagement-column {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .engagement-content {
        padding: var(--space-2);
        overflow-x: hidden;
        width: 100%;
        box-sizing: border-box;
    }

    .section-header-engagement {
        padding: var(--space-3) var(--space-3);
    }

    .section-header-engagement h2 {
        font-size: 16px;
    }
}
