/* ===================================
   ESTILOS ESPECÃFICOS DAS PÃGINAS
   Centralizados para evitar CSS inline
   =================================== */

/* ===================================
   HERO CUSTOMIZADO POR PÃGINA
   =================================== */

/* About Page Hero */
.hero-about {
    background-image: url('../images/1.jpg');
    height: 300px;
}

/* Blog Page Hero */
.hero-blog {
    background-image: url('../images/2.jpg');
    height: 350px;
}

/* Contact Page Hero */
.hero-contact {
    background-image: url('../images/3.jpg');
    height: 300px;
}

/* Vehicles Page Hero */
.hero-vehicles {
    background-image: url('../images/4.jpg');
    height: 300px;
}

/* Blog Post Hero - altura específica */
.hero-blog-post {
    height: 400px;
}

/* ===================================
   POST CONTENT (BLOG)
   =================================== */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-content h2, 
.post-content h3, 
.post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.post-content ul, 
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

.post-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.post-content a:hover {
    color: var(--primary-dark);
}

/* Post Summary */
.post-summary {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

/* Author Avatar */
.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

/* ===================================
   VEHICLE DETAILS
   =================================== */
.vehicle-gallery {
    width: 100%;
}

.vehicle-gallery .main-photo img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

/* ===================================
   FILTROS
   =================================== */
.filter-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    width: 100%;
}

/* ===================================
   INFORMAÃ‡Ã•ES DE CONTATO
   =================================== */
.contact-info {
    width: 100%;
}

.info-box-contact {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    width: 100%;
}

.info-box-contact:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ===================================
   CALL TO ACTION
   =================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 5rem 0;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white !important;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: white !important;
}

/* ===================================
   BLOG CONTENT CARD
   =================================== */
.blog-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    width: 100%;
}

/* ===================================
   GALLERY
   =================================== */
.cursor-pointer {
    cursor: pointer;
}

.img-thumbnail {
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.img-thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* ===================================
   ALERTS E BADGES
   =================================== */
.alert {
    border-radius: 8px;
    border: none;
}

.badge {
    font-weight: 600;
}

/* ===================================
   PAGINAÃ‡ÃƒO
   =================================== */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link {
    color: var(--primary-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.pagination .page-link:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: white;
}

/* ===================================
   BREADCRUMB
   =================================== */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    font-size: 0.9rem;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #6c757d;
    content: ">";
    padding: 0 0.5rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* ===================================
   SOCIAL SHARE
   =================================== */
.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===================================
   LOADER
   =================================== */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================
   CONTADOR ANIMADO
   =================================== */
.counter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ===================================
   NO PHOTO PLACEHOLDER
   =================================== */
.no-photo {
    height: 250px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 3rem;
}

/* ===================================
   SEARCH FORM
   =================================== */
.search-form {
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   STICKY SIDEBAR
   =================================== */
.sticky-top {
    position: sticky;
    top: 100px;
    z-index: 10;
}

/* ===================================
   RESPONSIVO
   =================================== */
@media (max-width: 768px) {
    /* Ajustar heights dos heros em mobile */
    .hero-about,
    .hero-contact,
    .hero-vehicles {
        height: 250px;
    }
    
    .hero-blog {
        height: 300px;
    }
    
    .hero-blog-post {
        height: 350px;
    }
    
    /* CTA section */
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    /* Sticky sidebar em mobile não deve ser sticky */
    .sticky-top {
        position: relative;
        top: 0;
    }
    
    /* Post content em mobile */
    .post-content {
        font-size: 1rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
    }
    
    .post-content h3 {
        font-size: 1.3rem;
    }
}

/* ===================================
   DARK MODE OVERRIDES
   =================================== */
[data-theme="dark"] .post-content {
    color: #cbd5e1;
}

[data-theme="dark"] .post-content h2,
[data-theme="dark"] .post-content h3,
[data-theme="dark"] .post-content h4 {
    color: #93C5FD;
}

[data-theme="dark"] .post-content blockquote {
    color: #94a3b8;
    border-left-color: #60A5FA;
}

[data-theme="dark"] .no-photo {
    background: rgba(32, 49, 56, 0.4);
    color: #60A5FA;
}

[data-theme="dark"] .breadcrumb-item,
[data-theme="dark"] .breadcrumb-item.active {
    color: #cbd5e1;
}

[data-theme="dark"] .breadcrumb-item a {
    color: #60A5FA;
}

[data-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
    color: #cbd5e1;
}