/* Estilos para a seção de Instagram */
#instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45, #FFDC80);
    background-size: 1000% 1000%;
    animation: gradientBG 30s ease infinite;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#instagram::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.instagram-section-title {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.instagram-post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.instagram-post:hover {
    transform: scale(1.02);
}

.instagram-post iframe {
    width: 100% !important;
    min-width: 100% !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Responsivo */
@media (max-width: 768px) {
    .instagram-section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .instagram-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
    }

    .instagram-post {
        transform: scale(1);
    }
}

/* Alto Contraste */
body.high-contrast #instagram {
    background: var(--background-color);
}

body.high-contrast .instagram-section-title {
    color: var(--text-color);
}

body.high-contrast .instagram-post {
    border: 1px solid var(--text-color);
}