:root {
    --primary: #1a237e; 
    --secondary: #2e7d32; 
    --bg: #f4f7f6;
    --card: #ffffff; 
    --text-main: #1c1c1c; 
    --text-muted: #575757;
    --radius: 18px;
    --whatsapp: #25d366;
    --accent-fire: #e65100;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: system-ui, -apple-system, sans-serif; 
    background-color: var(--bg); 
    color: var(--text-main); 
    line-height: 1.4; 
    transition: background-color 0.3s; 
    padding-top: 70px !important; 
}

body.dark-mode { 
    --bg: #121212; 
    --card: #1e1e1e; 
    --text-main: #f0f0f0; 
    --text-muted: #b5b5b5; 
}

/* Acessibilidade */
.sr-only {
    position: absolute; 
    width: 1px; 
    height: 1px; 
    padding: 0; 
    margin: -1px;
    overflow: hidden; 
    clip: rect(0, 0, 0, 0); 
    border: 0;
}

/* Utilitários */
.h-full { height: 100%; }
.mb-0 { margin-bottom: 0 !important; }
.mb-25 { margin-bottom: 25px; }
.w-45 { width: 45%; }
.w-60 { width: 60%; }
.w-85 { width: 85%; }
.w-90 { width: 90%; }
.pointer-events-none { pointer-events: none; }
.icon-fire { color: var(--accent-fire); }

main { 
    max-width: 900px; 
    margin: 0 auto; 
    padding-bottom: 60px; 
}

.section-title { 
    padding: 20px 15px 10px; 
    font-size: 0.85rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    color: var(--primary); 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.section-title::after { 
    content: ""; 
    flex: 1; 
    height: 1px; 
    background: rgba(0,0,0,0.08); 
}

/* Carrossel */
.carousel-wrapper { 
    padding: 0 15px; 
    margin-bottom: 20px; 
}

.carousel-container { 
    position: relative; 
    width: 100%; 
    aspect-ratio: 3 / 2; 
    background: var(--card); 
    border-radius: var(--radius); 
    overflow: hidden; 
}

.carousel-slide { 
    position: absolute; 
    inset: 0; 
    opacity: 0; 
    transition: opacity 0.6s ease; 
    cursor: pointer; 
    z-index: 1; 
}

.carousel-slide.active { 
    opacity: 1; 
    z-index: 2; 
}

.carousel-slide img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.carousel-overlay { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    padding: 35px 15px 25px; 
    background: linear-gradient(transparent, rgba(0,0,0,0.88)); 
    color: white; 
    z-index: 3; 
}

.carousel-overlay h3 { 
    font-weight: 700; 
    line-height: 1.25;
    margin-top: 4px;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-overlay h3.font-lg { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
.carousel-overlay h3.font-md { font-size: clamp(0.95rem, 2vw, 1.15rem); }
.carousel-overlay h3.font-sm { font-size: clamp(0.8rem, 1.7vw, 0.95rem); }

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.carousel-dot.active {
    width: 20px;
    border-radius: 10px;
    background-color: #ffffff;
}

.badge-destaque { 
    background: var(--secondary); 
    color: #fff; 
    padding: 2px 8px; 
    font-size: 8px; 
    font-weight: 800; 
    text-transform: uppercase; 
    border-radius: 4px; 
    margin-bottom: 6px; 
    display: inline-block; 
}

.nav-btn { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 32px; 
    height: 32px; 
    background: rgba(0,0,0,0.4); 
    border: none; 
    color: white; 
    border-radius: 50%; 
    z-index: 10; 
    cursor: pointer; 
    font-size: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

#prev-btn { left: 10px; } 
#next-btn { right: 10px; }

/* Cards & Feeds */
.feed-container { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 12px; 
    padding: 0 15px; 
}

@media (min-width: 768px) { 
    .feed-container { grid-template-columns: 1fr 1fr; } 
}

.news-card { 
    display: flex; 
    background: var(--card); 
    padding: 10px; 
    border-radius: 14px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); 
    cursor: pointer; 
    border: 1px solid transparent; 
    transition: border-color 0.2s; 
}

.news-card:hover { border-color: var(--secondary); }

.news-card img { 
    width: 95px; 
    height: 65px; 
    object-fit: cover; 
    border-radius: 10px; 
    flex-shrink: 0; 
}

.news-content { 
    margin-left: 12px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    width: 100%; 
}

.news-content h3 { 
    font-size: 0.95rem; 
    font-weight: 500; 
    margin-bottom: 4px; 
    line-height: 1.2; 
}

.news-meta { 
    font-size: 11px; 
    color: var(--text-muted); 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.news-meta .author { 
    font-weight: 600; 
    color: var(--secondary); 
}

.news-meta .dot { 
    width: 3px; 
    height: 3px; 
    background: #ccc; 
    border-radius: 50%; 
}

/* Banner de Comunidade */
.mid-section-community {
    margin: 10px 15px 15px; 
    background: var(--card); 
    border-left: 4px solid var(--whatsapp);
    padding: 12px 18px; 
    border-radius: 12px; 
    display: flex; 
    align-items: center;
    justify-content: space-between; 
    text-decoration: none; 
    color: inherit;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
    transition: transform 0.3s, box-shadow 0.3s;
}

.mid-section-community:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(0,0,0,0.1); 
}

.community-info { display: flex; align-items: center; gap: 12px; }
.community-info i { color: var(--whatsapp); font-size: 20px; }
.community-info span { font-size: 0.85rem; font-weight: 700; color: var(--text-main); }
.community-btn { font-size: 0.75rem; font-weight: 800; color: var(--whatsapp); text-transform: uppercase; }

/* Banner Colabore Conosco */
.mid-section-collab {
    margin: 0 15px 25px;
    background: var(--card);
    border-left: 4px solid var(--primary);
    padding: 12px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.mid-section-collab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.collab-info { display: flex; align-items: center; gap: 12px; }
.collab-info i { color: var(--primary); font-size: 20px; }
.collab-info strong { font-size: 0.85rem; font-weight: 700; color: var(--text-main); display: block; }
.collab-info p { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.collab-btn { font-size: 0.75rem; font-weight: 800; color: var(--primary); text-transform: uppercase; white-space: nowrap; margin-left: 10px; }

/* Paginação */
.pagination-container { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 30px; }
.page-btn { background: none; border: 1px solid rgba(0,0,0,0.1); color: var(--text-main); width: 35px; height: 35px; border-radius: 50%; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.page-btn:hover:not(:disabled) { border-color: var(--secondary); color: var(--secondary); }
.page-btn:disabled { opacity: 0.3; cursor: default; }
.page-number { font-size: 13px; font-weight: 700; color: var(--text-muted); }

/* Skeleton Shimmer Loading */
.shimmer { 
    background: linear-gradient(90deg, #e0e0e0 25%, #ecebeb 50%, #e0e0e0 75%); 
    background-size: 200% 100%; 
    animation: loading-shimmer 1.5s infinite; 
}

body.dark-mode .shimmer { 
    background: linear-gradient(90deg, #252525 25%, #333333 50%, #252525 75%); 
    background-size: 200% 100%; 
}

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

.skeleton-text { height: 12px; border-radius: 6px; margin-bottom: 8px; }
.skeleton-overlay { background: linear-gradient(transparent, rgba(0,0,0,0.6)); }
.sk-badge { width: 30%; height: 12px; margin-bottom: 10px; }
.sk-title { width: 80%; height: 20px; }
.sk-thumb { width: 95px; height: 65px; border-radius: 10px; flex-shrink: 0; }

/* Accordion de Frota */
#fleet-accordion { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.4s ease-out; 
    padding: 0 15px; 
}

#fleet-accordion.open { 
    max-height: 500px; 
    margin-bottom: 20px; 
}

.fleet-toggle-btn { 
    margin: 10px 15px; 
    background: var(--card); 
    border: 1px solid rgba(0,0,0,0.08); 
    padding: 12px; 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    cursor: pointer; 
    font-weight: 700; 
    font-size: 0.85rem; 
    color: var(--primary); 
}

.fleet-card-wrapper { display: block; padding: 15px; border-radius: 14px; }
.fleet-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.fleet-table th { text-align: left; color: var(--text-muted); border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 8px; }
.text-center-padding { text-align: center; padding: 20px; }
.fleet-footer { text-align: center; margin-top: 15px; border-top: 1px solid rgba(0,0,0,0.05); padding-top: 10px; }
.fleet-more-link { font-size: 0.7rem; font-weight: 800; color: var(--secondary); text-decoration: none; text-transform: uppercase; }
