/* ====================================
   ESTILOS PARA IMAGENS DO POST
   ==================================== */

/* Imagem principal/destaque do post */
.featured-image {
    display: block;
    width: 100%;
    max-width: 900px; /* Largura máxima */
    height: 400px; /* Altura fixa para proporção consistente */
    margin: 1rem auto; /* Centraliza horizontalmente */
    object-fit: cover; /* Mantém proporção sem distorcer */
    object-position: center; /* Foca no centro da imagem */
    border-radius: 12px; /* Bordas arredondadas modernas */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12); /* Sombra elegante */
    transition: all 0.3s ease; /* Animação suave */
}

.banner-container img {
    width: 100%; /* A imagem ocupa 100% da largura do contêiner */
    height: 100%; /* A imagem ocupa 100% da altura do contêiner */
    object-fit: cover; /* Ajusta a imagem para cobrir a área, cortando o que for necessário */
}

.banner-container {
    width: 100%;
    height: 250px; /* Use a altura que preferir */
    overflow: hidden; /* Garante que nada saia do contêiner */
}

/* Imagens menores no conteúdo */
.content-image {
    display: block;
    width: 100%;
    max-width: 600px; /* Menor que a principal */
    height: 300px; /* Proporção menor */
    margin: 1.5rem auto; /* Centraliza */
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.content-image:hover {
    transform: scale(1.02); /* Zoom leve */
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

/* Container para imagens com legendas */
.image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem auto;
    max-width: 800px;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Legenda da imagem */
.image-caption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
    text-align: right;
    max-width: 90%;
}

/* ====================================
   RESPONSIVIDADE
   ==================================== */

/* Tablets */
@media (max-width: 768px) {
    .featured-image {
        height: 300px; /* Altura menor em tablets */
        margin: 1rem auto;
        border-radius: 8px;
    }
    
    .content-image {
        height: 250px;
        margin: 1rem auto;
    }
    
    .featured-image:hover,
    .content-image:hover {
        transform: none; /* Remove efeitos hover em touch devices */
    }
}

/* Mobile */
@media (max-width: 480px) {
    .featured-image {
        height: 220px; /* Altura otimizada para mobile */
        margin: 1rem auto;
        border-radius: 6px;
    }
    
    .content-image {
        height: 180px;
        margin: 0.8rem auto;
        border-radius: 6px;
    }
    
    .image-caption {
        font-size: 0.8rem;
        padding: 0 1rem;
    }
}

/* ====================================
   VARIAÇÕES DE ESTILO
   ==================================== */

/* Imagem em formato wide (16:9) */
.wide-image {
    max-width: 900px;
}

/* Imagem quadrada */
.square-image {
    height: 400px;
    max-width: 400px;
}

/* Imagem com bordas */
.bordered-image {
    border: 3px solid #f0f0f0;
    padding: 8px;
}

/* Imagem com efeito polaroid */
.polaroid-image {
    background: white;
    padding: 10px 10px 40px 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.polaroid-image:hover {
    transform: rotate(0deg);
}

/* ====================================
   GALERIA DE IMAGENS
   ==================================== */

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem auto;
    max-width: 1000px;
}

.gallery-item {
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ====================================
   LAZY LOADING PLACEHOLDER
   ==================================== */

.image-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ====================================
   DARK MODE SUPPORT
   ==================================== */

@media (prefers-color-scheme: dark) {
    .featured-image,
    .content-image {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    .image-caption {
        color: #ccc;
    }
    
    .bordered-image {
        border-color: #333;
    }
    
    .polaroid-image {
        background: #2a2a2a;
    }
}