/* Estilos para o Instagram Feed Plugin */

.section-instagram {
    margin: 2rem 0;
    padding: 1rem 0;
}

.padding-global {
    padding: 0 1rem;
}

.container-xlarge {
    max-width: 1200px;
    margin: 0 auto;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.link-btn a {
    text-decoration: none;
    color: inherit;
}

.flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.gap-column-12px {
    gap: 12px;
}

.gap-column-8px {
    gap: 8px;
}

.text-200 {
    font-size: 1.1rem;
}

.bold {
    font-weight: bold;
}

.max-w-40px {
    max-width: 40px;
    height: 40px;
    border-radius: 50%;
}

.button-insta {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-insta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.text-block-2 {
    font-size: 0.9rem;
}

.icon-1x1-small-copy {
    width: 16px;
    height: 16px;
}

.grid-4-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gap-16px {
    gap: 16px;
}

._4-col-tablet {
    /* Para tablets */
}

@media (max-width: 991px) {
    .grid-4-columns._4-col-tablet {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .grid-4-columns._4-col-tablet {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-2-col {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 479px) {
    .grid-4-columns._4-col-tablet {
        grid-template-columns: 1fr;
    }
}

.instagram-feed---image-wrapper {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.instagram-feed---image-wrapper:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.instagram-feed---image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-feed---image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.instagram-feed---image-wrapper:hover .instagram-feed---image-overlay {
    opacity: 1;
}

/* Indicador de carregamento */
.instagram-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.instagram-loading::before {
    content: "⏳";
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

/* Mensagens de erro */
.instagram-error {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
    color: #c33;
}

/* Animação de carregamento */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.instagram-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #e1306c;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
