/* Estilos para página de detalhes */

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0 20px;
    font-size: 14px;
    color: #999;
}

.breadcrumb a {
    color: #4C5299;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #90619E;
}

.breadcrumb span {
    color: #666;
}

/* Artigo de detalhes */
.detail-article {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin: 30px 0 50px;
}

/* Header do detalhe */
.detail-header {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid #333;
}

.detail-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.detail-main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.detail-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    background: #4C5299;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.detail-badge.secondary {
    background: #90619E;
}

.detail-badge.random {
    background: #28a745;
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.detail-title {
    font-size: 42px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.2;
}

.detail-subtitle {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.6;
}

.detail-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-label {
    font-size: 14px;
    color: #999;
    font-weight: 500;
    min-width: 80px;
}

.meta-value {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

/* Galeria */
.detail-gallery {
    margin-top: 30px;
}

.detail-gallery h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 15px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

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

/* Conteúdo detalhado */
.detail-content {
    grid-column: 1;
}

.content-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
}

.content-text {
    font-size: 16px;
    line-height: 1.8;
    color: #ccc;
}

.content-text p {
    margin-bottom: 15px;
}

.content-text ul,
.content-text ol {
    margin: 15px 0;
    padding-left: 30px;
}

.content-text li {
    margin-bottom: 10px;
}

/* Grid de informações */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    background: #252525;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4C5299;
}

.info-item strong {
    display: block;
    color: #4C5299;
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.info-item span {
    color: #fff;
    font-size: 16px;
}

/* Localização */
.location-content {
    background: #252525;
    padding: 20px;
    border-radius: 8px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* Vídeo */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Itens relacionados */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.related-item {
    background: #252525;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.related-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-item-content {
    padding: 15px;
}

.related-item h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 5px;
}

.related-item p {
    font-size: 12px;
    color: #999;
}

/* Sidebar */
.detail-sidebar {
    grid-column: 2;
}

.sidebar-card {
    background: #252525;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.sidebar-card h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

.quick-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-info li {
    padding: 12px 0;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quick-info li:last-child {
    border-bottom: none;
}

.quick-info strong {
    color: #999;
    font-weight: 500;
}

.quick-info span {
    color: #fff;
    font-weight: 500;
}

/* Botões de compartilhamento */
.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

/* Botões de navegação */
.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: #4C5299;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
}

.nav-btn:hover {
    background: #90619E;
    transform: translateY(-2px);
}

.nav-btn.home {
    background: #333;
}

.nav-btn.home:hover {
    background: #444;
}

.nav-btn svg {
    width: 16px;
    height: 16px;
}

/* Media queries para responsividade */
@media (max-width: 1024px) {
    .detail-article {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        grid-column: 1;
        order: -1;
    }

    .detail-header {
        grid-template-columns: 1fr;
    }

    .detail-image-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .detail-title {
        font-size: 32px;
    }

    .detail-subtitle {
        font-size: 16px;
    }

    .detail-header {
        gap: 30px;
    }

    .content-section h2 {
        font-size: 24px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .share-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .share-btn {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
    }

    .detail-title {
        font-size: 24px;
    }

    .detail-subtitle {
        font-size: 14px;
    }

    .detail-meta {
        gap: 10px;
    }

    .meta-label {
        min-width: 70px;
        font-size: 12px;
    }

    .meta-value {
        font-size: 12px;
    }

    .content-section {
        margin-bottom: 30px;
        padding-bottom: 30px;
    }

    .content-section h2 {
        font-size: 20px;
    }

    .content-text {
        font-size: 14px;
    }

    .sidebar-card {
        padding: 20px;
    }

    .share-btn {
        font-size: 12px;
        padding: 10px 15px;
    }
}

