/**
 * ========================================
 * MODAL STYLES - GALERIA DE OBRAS
 * ========================================
 * 
 * Estilos específicos para o modal da galeria de obras
 * Inclui estilos para informações detalhadas e galeria de imagens
 */

/* ========================================
   SEÇÃO DE INFORMAÇÕES DA OBRA
   ======================================== */

.obra-info-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.obra-info-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
}

.obra-info-title {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.obra-info-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

/* ========================================
   ESTATÍSTICAS DA OBRA
   ======================================== */

.obra-info-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-item i {
    color: #007bff;
    font-size: 1.2rem;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

/* ========================================
   DESCRIÇÃO DO PROJETO
   ======================================== */

.obra-info-description {
    margin-bottom: 20px;
}

.obra-info-description h5 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.obra-info-description h5::before {
    content: "📋";
    margin-right: 8px;
}

.obra-info-description p {
    color: #495057;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

/* ========================================
   SERVIÇOS REALIZADOS
   ======================================== */

.obra-info-services {
    margin-bottom: 20px;
}

.obra-info-services h5 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.obra-info-services h5::before {
    content: "🔧";
    margin-right: 8px;
}

.services-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tag {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,123,255,0.3);
    transition: all 0.3s ease;
}

.service-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.4);
}

/* ========================================
   DETALHES TÉCNICOS
   ======================================== */

.obra-info-details h5 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.obra-info-details h5::before {
    content: "⚙️";
    margin-right: 8px;
}

.details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details-list li {
    background: white;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 6px;
    border-left: 4px solid #28a745;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.details-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.details-list li i {
    color: #28a745;
    margin-right: 8px;
    font-size: 0.9rem;
}

/* ========================================
   GALERIA DE IMAGENS
   ======================================== */

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery__image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery__image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

@media (max-width: 768px) {
    .obra-info-stats {
        grid-template-columns: 1fr;
    }
    
    .services-tags {
        justify-content: center;
    }
    
    .gallery__grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .gallery__image {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .obra-info-section {
        padding: 15px;
    }
    
    .stat-item {
        padding: 12px;
    }
    
    .gallery__grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .gallery__image {
        height: 100px;
    }
}

/* ========================================
   ANIMAÇÕES
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.obra-info-section {
    animation: fadeInUp 0.6s ease-out;
}

.stat-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }

.service-tag {
    animation: fadeInUp 0.4s ease-out;
    animation-fill-mode: both;
}

.service-tag:nth-child(1) { animation-delay: 0.1s; }
.service-tag:nth-child(2) { animation-delay: 0.2s; }
.service-tag:nth-child(3) { animation-delay: 0.3s; }
.service-tag:nth-child(4) { animation-delay: 0.4s; }
