/* combustible.css - Fuel page styles extending home.css */

/* Page Layout */
.fuel-page {
    padding-top: 16px;
    padding-bottom: 40px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 13px;
    color: var(--color-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--color-muted);
    text-decoration: none;
    transition: color var(--transition-main);
}

.breadcrumb a:hover {
    color: var(--color-ink);
}

.breadcrumb span {
    color: var(--color-ink);
    font-weight: 500;
}

/* Page Header */
.fuel-header {
    text-align: center;
    margin-bottom: 32px;
}

.fuel-header .page-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(26px, 4vw, 36px);
    margin: 0 0 12px;
    color: var(--color-ink);
}

.fuel-header .page-subtitle {
    font-size: 15px;
    color: var(--color-muted);
    max-width: 700px;
    margin: 0 auto 16px;
    line-height: 1.6;
}

.fuel-updated-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-muted);
    background: var(--color-bg-alt);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
}

/* Section Navigation */
.section-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding: 14px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.section-nav a {
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-muted);
    text-decoration: none;
    transition: all var(--transition-main);
}

.section-nav a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-ink);
    transform: translateY(-2px);
}

/* Price Today Block */
.price-today-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-soft);
}

.price-today-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
    align-items: center;
}

@media (max-width: 768px) {
    .price-today-grid {
        grid-template-columns: 1fr;
    }
}

.price-main {
    text-align: left;
}

.price-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--color-muted);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.price-value-big {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    color: var(--color-ink);
    line-height: 1.1;
    margin-bottom: 12px;
}

.price-trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 16px;
}

.trend-neutral {
    background: var(--color-bg-alt);
    color: var(--color-muted);
}

.trend-up {
    background: #fef2f2;
    color: #dc2626;
}

.trend-down {
    background: #f0fdf4;
    color: #16a34a;
}

.price-context {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.6;
    margin: 0;
}

.price-stats-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mini-stat {
    background: var(--color-bg-alt);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.mini-label {
    font-size: 11px;
    color: var(--color-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.mini-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-ink);
}

.text-green {
    color: #16a34a;
}

.text-red {
    color: #dc2626;
}

/* Chart Section */
.chart-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-soft);
}

.chart-section h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 18px;
    margin: 0 0 16px;
    color: var(--color-ink);
}

.chart-container {
    position: relative;
    height: 280px;
    width: 100%;
}

.chart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    color: var(--color-muted);
    font-size: 14px;
}

/* Province Ranking Table */
.ranking-section {
    margin-bottom: 28px;
}

.ranking-section h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 18px;
    margin: 0 0 8px;
    color: var(--color-ink);
}

.ranking-section>p {
    color: var(--color-muted);
    font-size: 13px;
    margin: 0 0 16px;
}

.table-wrapper {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--color-bg-alt);
    color: var(--color-muted);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 1px solid var(--color-border);
}

.modern-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    vertical-align: middle;
    color: var(--color-ink);
    font-size: 14px;
}

.modern-table tbody tr:hover {
    background: var(--color-bg-alt);
}

.badge-rank {
    background: var(--color-bg-alt);
    color: var(--color-muted);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 12px;
}

.badge-rank.top-3 {
    background: #fef3c7;
    color: #92400e;
}

.btn-link {
    color: var(--color-accent-strong);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Top/Bottom Provinces */
.top-bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

@media (max-width: 768px) {
    .top-bottom-section {
        grid-template-columns: 1fr;
    }
}

.tb-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.tb-card h3 {
    font-size: 15px;
    margin: 0 0 14px;
    color: var(--color-ink);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.prov-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
    font-size: 14px;
}

.prov-list li:last-child {
    border-bottom: none;
}

.prov-list .val {
    font-weight: 700;
    font-family: monospace;
}

/* Cheapest Stations */
.stations-section {
    margin-bottom: 28px;
}

.stations-section h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 18px;
    margin: 0 0 16px;
    color: var(--color-ink);
}

.station-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.station-card-mini {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: transform var(--transition-main), box-shadow var(--transition-main);
}

.station-card-mini:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-accent-strong);
}

.stm-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 10px;
}

.stm-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--color-ink);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stm-price {
    font-weight: 800;
    font-size: 1.2rem;
    color: #16a34a;
}

.stm-loc {
    font-size: 12px;
    color: var(--color-muted);
    margin-bottom: 4px;
}

.stm-address {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-map-mini {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--color-bg-alt);
    color: var(--color-accent-strong);
    padding: 8px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: background var(--transition-main);
}

.btn-map-mini:hover {
    background: #dbeafe;
}

/* CTA Block */
.cta-geoloc {
    text-align: center;
    margin-top: 20px;
}

/* Brand Ranking */
.brand-section {
    margin-bottom: 28px;
}

.brand-section h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 18px;
    margin: 0 0 8px;
    color: var(--color-ink);
}

.brand-section>p {
    color: var(--color-muted);
    font-size: 13px;
    margin: 0 0 16px;
}

.brand-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.brand-pill {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 10px 16px;
    border-radius: 999px;
    display: flex;
    gap: 10px;
    align-items: center;
    transition: all var(--transition-main);
}

.brand-pill:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.bp-name {
    font-weight: 600;
    color: var(--color-ink);
    font-size: 13px;
}

.bp-price {
    font-weight: 700;
    color: #16a34a;
    font-size: 13px;
}

/* Info Content */
.fuel-info-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 28px;
    line-height: 1.8;
    color: var(--color-ink);
    box-shadow: var(--shadow-soft);
}

.fuel-info-section h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 18px;
    margin: 24px 0 12px;
    color: var(--color-ink);
}

.fuel-info-section h3:first-child {
    margin-top: 0;
}

.fuel-info-section p {
    margin-bottom: 16px;
    font-size: 14px;
    color: #475569;
}

.fuel-info-section ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.fuel-info-section li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #475569;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 28px;
}

.faq-section h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 18px;
    margin: 0 0 16px;
    color: var(--color-ink);
    text-align: center;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-ink);
    transition: background var(--transition-main);
}

.faq-question:hover {
    background: var(--color-bg-alt);
}

.faq-question i {
    font-size: 12px;
    color: var(--color-muted);
    transition: transform var(--transition-main);
}

.faq-answer {
    display: none;
    padding: 0 20px 16px;
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Internal Links */
.related-links-section {
    text-align: center;
    margin-bottom: 40px;
}

.related-links-section h3 {
    font-size: 16px;
    margin: 0 0 16px;
    color: var(--color-ink);
}

.links-pills {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.link-pill {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--color-accent-strong);
    font-weight: 600;
    font-size: 13px;
    transition: all var(--transition-main);
}

.link-pill:hover {
    border-color: var(--color-accent-strong);
    background: #eff6ff;
    transform: translateY(-2px);
}