/*
 * Geopark Araripe - Estilos para Imagens de Geossítios
 *
 * Este arquivo define os backgrounds específicos para cada geossítio
 * baseado nas imagens fornecidas pela equipe do Geopark Araripe
 */

/* ============================================
   BACKGROUNDS DOS GEOSSÍTIOS
   ============================================ */

/* 1. Ponte de Pedra */
.geossitio-img-ponte-de-pedra,
.geossitio-img[data-geossitio*="ponte"] {
    background-image: url('../images/Geossítio Ponte de Pedra - Constance Pinheiro.jpg');
}

/* 2. Riacho do Meio */
.geossitio-img-riacho-do-meio,
.geossitio-img[data-geossitio*="riacho"] {
    background-image: url('../images/Geossítio Riacho do Meio - Allan Bastos.JPG');
}

/* 3. Cachoeira de Missão Velha */
.geossitio-img-cachoeira,
.geossitio-img[data-geossitio*="cachoeira"] {
    background-image: url('../images/Geossítio Cachoeira de Missão Velha - Allan Bastos.JPG');
}

/* 4. Parque dos Pterossauros */
.geossitio-img-pterossauros,
.geossitio-img[data-geossitio*="pterossaur"] {
    background-image: url('../images/Geossítio Parque dos Pterossauros_2.jpg');
}

/* 5. Pedra Cariri */
.geossitio-img-pedra-cariri,
.geossitio-img[data-geossitio*="pedra"] {
    background-image: url('../images/Geossítio Pedra Cariri (2).JPG');
}

/* 6. Floresta Petrificada */
.geossitio-img-floresta-petrificada,
.geossitio-img[data-geossitio*="floresta"],
.geossitio-img[data-geossitio*="petrificada"] {
    background-image: url('../images/Floresta petrificada_Vitória Emanuele (11).JPG');
}

/* 7. Colina do Horto */
.geossitio-img-colina-do-horto,
.geossitio-img[data-geossitio*="colina"],
.geossitio-img[data-geossitio*="horto"] {
    background-image: url('../images/Colina do Horto_Lídia Gomes (40).JPG');
}

/* 8. Pontal de Santa Cruz */
.geossitio-img-pontal,
.geossitio-img[data-geossitio*="pontal"],
.geossitio-img[data-geossitio*="santa cruz"] {
    background-image: url('../images/Pontal da Santa Cruz_Diego Monteiro (2).jpg');
}

/* 9. Batateiras */
.geossitio-img-batateiras,
.geossitio-img[data-geossitio*="batateira"] {
    background-image: url('../images/Geossitio-Batateiras_Diego-Monteiro.jpg');
}

/* Placeholder para logo do Geopark */
.geopark-logo-placeholder {
    width: 200px;
    height: 80px;
    background: linear-gradient(135deg, var(--geopark-primary), var(--geopark-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    border-radius: 8px;
    margin: 0 auto;
}

.geopark-logo-placeholder-small {
    width: 120px;
    height: 40px;
    font-size: 12px;
}

.geopark-logo-navbar {
    width: 30px;
    height: 30px;
    font-size: 8px;
    vertical-align: middle;
}

/* Cards de localização com mapas placeholder */
.location-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.location-card:hover {
    transform: translateY(-4px);
}

.location-map-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #e8f5e8, #4a8c6a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--geopark-primary);
    font-size: 18px;
    position: relative;
}

.location-map-placeholder::before {
    content: '📍';
    font-size: 24px;
    margin-right: 8px;
}

/* Gallery placeholder para geossítios */
.geossitio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.geossitio-image-placeholder {
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

/* Fallback gradient quando não há imagem específica */
.geossitio-image-placeholder:not([style*="background-image"]) {
    background: linear-gradient(45deg, #f0f8f0, #2c5f41);
}

/* Classes utilitárias para imagens de geossítios */
.geossitio-img,
.geopark-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 200px;
    border-radius: 8px 8px 0 0;
}

.geossitio-img-card {
    height: 150px;
    object-fit: cover;
}

.geossitio-img-hero {
    height: 400px;
}

.geossitio-img-thumb {
    height: 100px;
    width: 100px;
    border-radius: 8px;
}

/* Efeito hover nas imagens dos cards */
.card .geossitio-img,
.card .geossitio-image-placeholder {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.card:hover .geossitio-img,
.card:hover .geossitio-image-placeholder {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Overlay para imagens com texto */
.geossitio-img-overlay {
    position: relative;
}

.geossitio-img-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    border-radius: 8px 8px 0 0;
}

.geossitio-img-overlay .overlay-text {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: white;
    z-index: 1;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Gallery placeholder para geossítios */
.geossitio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.geossitio-image-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(45deg, #f0f8f0, #2c5f41);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.geossitio-image-placeholder:hover {
    transform: scale(1.05);
}

/* Ícones personalizados para tipos de atração */
.atracao-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    margin-right: 12px;
}

.atracao-icon.trilha {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.atracao-icon.mirante {
    background: linear-gradient(135deg, #2196f3, #1565c0);
}

.atracao-icon.cachoeira {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
}

.atracao-icon.centro_visitacao {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.atracao-icon.area_contemplacao {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
}

/* Cards de pesquisador com avatar placeholder */
.pesquisador-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pesquisador-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pesquisador-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--geopark-primary), var(--geopark-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin: 0 auto 16px;
    position: relative;
}

.pesquisador-avatar::after {
    content: attr(data-initials);
    font-weight: bold;
    font-size: 24px;
}

/* Status badges personalizados */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pendente {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc02;
}

.status-badge.em_andamento {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #2196f3;
}

.status-badge.concluida {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.status-badge.ativo {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.status-badge.inativo {
    background: #fce4ec;
    color: #c2185b;
    border: 1px solid #e91e63;
}

/* Imagens de background para seções */
.hero-section {
    background: linear-gradient(135deg, rgba(44, 95, 65, 0.9), rgba(74, 140, 106, 0.8)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="mountains" patternUnits="userSpaceOnUse" width="100" height="50"><path d="M0,50 L20,20 L40,30 L60,10 L80,25 L100,15 L100,50 Z" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="1200" height="600" fill="url(%23mountains)"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Charts e gráficos com melhor estilo */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.chart-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.chart-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

/* Melhorias para modais */
.modal-header-geopark {
    background: linear-gradient(135deg, var(--geopark-primary), var(--geopark-secondary));
    color: white;
    border-radius: 0.5rem 0.5rem 0 0;
}

.modal-header-geopark .btn-close {
    filter: invert(1);
}

/* Animações suaves */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.4s ease;
}

/* Loading states melhorados */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 16px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 24px;
    border-radius: 4px;
    margin-bottom: 16px;
    width: 70%;
}

.skeleton-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

/* Responsive melhorado */
@media (max-width: 768px) {
    .geopark-logo-placeholder {
        width: 150px;
        height: 60px;
        font-size: 12px;
    }

    .location-map-placeholder {
        height: 150px;
        font-size: 16px;
    }

    .geossitio-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .pesquisador-avatar {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .chart-container {
        height: 250px;
    }
}