/* ========================================
   POST / ARTICLE — Modern dark UI
   ======================================== */

/* --- Typography --- */
.post-content h1 {
    color: #ffbc27;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 12px;
}

.post-content h2 {
    color: #fff;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

/* Border accent SAMO na h2 koji su direktna djeca article-a (iz markdowna, ne iz HTML komponenti) */
.post-content > h2 {
    margin-top: 56px;
    padding-left: 16px;
    border-left: 4px solid #ffbc27;
}

.post-content h3 {
    color: #ffbc27;
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 10px;
}

/* h3 unutar komponenti neka nema veliki margin */
.post-content .cta-inline h3,
.post-content .tip-box h3,
.post-content .toc h3 {
    margin-top: 0;
}

.post-content h4 {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-content p,
.post-content ul,
.post-content ol {
    font-size: 1.05rem;
    margin-bottom: 16px;
    line-height: 1.8;
    color: #dde0f0;
    font-weight: 400;
}

.post-content ul,
.post-content ol {
    margin-left: 24px;
}

.post-content li {
    margin-bottom: 6px;
}

.post-content strong {
    color: #fff;
    font-weight: 700;
}

.post-content em {
    color: rgba(255,255,255,0.7);
}

/* --- Links ---
   SAMO inline text linkovi (unutar p, li, blockquote) dobivaju žutu boju i underline.
   Block-level linkovi (kartice, gumbi) ne smiju biti zahvaćeni. */
.post-content p a,
.post-content li a,
.post-content blockquote a {
    color: #ffbc27;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.post-content p a:hover,
.post-content li a:hover,
.post-content blockquote a:hover {
    color: #fff;
    text-decoration: none;
}

/* --- HR divider --- */
.post-content hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 44px 0;
}

/* --- Images --- */
.post-content img {
    width: 100%;
    border-radius: 16px;
    margin: 24px 0;
    display: block;
    height: auto;
}

/* --- Tables --- */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 0.92rem;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.post-content th {
    background: #ffbc27;
    color: #1a0050;
    padding: 13px 16px;
    text-align: left;
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    pointer-events: all;
    user-select: all;
}

.post-content td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    color: #dde0f0;
    vertical-align: top;
    pointer-events: all;
    user-select: all;
}

.post-content tr:nth-child(even) td {
    background: rgba(255,255,255,0.03);
}

.post-content tr:last-child td {
    border-bottom: none;
    font-weight: 700;
    background: rgba(255,188,39,0.08);
    color: #ffbc27;
}

/* --- Blockquote / callout --- */
.post-content blockquote {
    background: rgba(255,188,39,0.07);
    border-left: 4px solid #ffbc27;
    border-radius: 0 12px 12px 0;
    padding: 18px 22px;
    margin: 24px 0;
}

.post-content blockquote p {
    margin: 0;
    color: #fff;
    font-style: normal;
}

/* --- Table of Contents --- */
.toc {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 24px 28px;
    margin: 32px 0;
}

.toc-label {
    color: #ffbc27;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    display: block;
}

.toc ol {
    margin: 0 0 0 20px;
    padding: 0;
    list-style: decimal;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    color: rgba(255,255,255,0.75) !important;
    text-decoration: none !important;
    font-weight: 400;
    font-size: 0.95rem;
    pointer-events: all;
}

.toc a:hover {
    color: #ffbc27 !important;
}

/* --- Stat grid --- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin: 28px 0;
}

.stat-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
}

.stat-number {
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffbc27;
    line-height: 1;
    margin-bottom: 6px;
    display: block;
    pointer-events: all;
    user-select: all;
}

.stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    line-height: 1.3;
    pointer-events: all;
}

/* --- Tip / info box --- */
.tip-box {
    background: rgba(255,188,39,0.06);
    border: 1px solid rgba(255,188,39,0.25);
    border-radius: 14px;
    padding: 18px 22px;
    margin: 24px 0;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.tip-box-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.tip-box p {
    margin: 0;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- CTA box inline --- */
.cta-inline {
    background: linear-gradient(135deg, rgba(87,60,249,0.35) 0%, rgba(26,0,80,0.6) 100%);
    border: 1px solid rgba(255,188,39,0.3);
    border-radius: 20px;
    padding: 30px 28px;
    text-align: center;
    margin: 40px 0;
}

.cta-inline h3 {
    color: #fff;
    font-size: 1.25rem;
    margin: 0 0 8px;
    font-weight: 700;
}

.cta-inline p {
    color: rgba(255,255,255,0.65);
    margin: 0 0 20px;
    font-size: 0.95rem;
}

.cta-btn-yellow,
.post-content .cta-btn-yellow {
    background: #ffbc27;
    color: #1a0050 !important;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none !important;
    display: inline-block;
    box-shadow: 0 4px 16px rgba(255,188,39,0.3);
    pointer-events: all;
}

.cta-btn-yellow:hover,
.post-content .cta-btn-yellow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,188,39,0.45);
    color: #1a0050 !important;
    background: #ffd060;
    text-decoration: none !important;
}

/* --- Post meta (date/reading time) --- */
.post-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    color: rgba(255,255,255,0.45);
    font-size: 0.82rem;
    font-weight: 500;
    margin: 12px 0 36px;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: all;
}

/* --- Article divider with label --- */
.section-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 48px 0 32px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

.section-divider-label {
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    font-weight: 600;
}

/* --- Related links card row --- */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 28px 0;
}

.related-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 14px;
    padding: 18px 20px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    pointer-events: all;
    text-decoration: none !important;
    display: block;
}

.related-card:hover {
    background: rgba(255,188,39,0.07);
    border-color: rgba(255,188,39,0.25);
    transform: translateY(-2px);
}

.related-card-icon {
    font-size: 1.4rem;
    margin-bottom: 8px;
    display: block;
}

.related-card-title {
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
    text-decoration: none !important;
}

.related-card-sub {
    color: rgba(255,255,255,0.45);
    font-size: 0.78rem;
    font-weight: 400;
}

/* ========================================
   AO HUB — city/model index pages
   ======================================== */
.ao-hero { text-align: center; padding: 48px 24px 40px; }
.ao-hero-title { color: #ffbc27; font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; margin-bottom: 12px; line-height: 1.15; pointer-events: all; text-align: center !important; }
.ao-hero-sub { color: rgba(255,255,255,0.7); font-size: 1.1rem; margin-bottom: 28px; font-weight: 400; pointer-events: all; }
.ao-cta-btn { display: inline-block; background: #ffbc27; color: #1a0050; font-weight: 800; font-size: 1.05rem; padding: 15px 36px; border-radius: 50px; text-decoration: none; box-shadow: 0 4px 20px rgba(255,188,39,0.35); pointer-events: all; }
.ao-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,188,39,0.5); color: #1a0050; text-decoration: none; }

.ao-region-grid { display: flex; flex-direction: column; gap: 20px; padding: 8px 0 40px; }
.ao-region { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 20px 24px; }
.ao-region-label { color: rgba(255,255,255,0.5); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 14px; pointer-events: all; }
.ao-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ao-pill { display: inline-block; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); color: #fff; font-size: 0.9rem; font-weight: 600; padding: 8px 16px; border-radius: 50px; text-decoration: none; pointer-events: all; }
.ao-pill:hover { background: rgba(255,188,39,0.15); border-color: rgba(255,188,39,0.4); color: #ffbc27; text-decoration: none; }

.ao-info-section { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.ao-faq-item { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 18px 22px; }
.ao-faq-q { color: #ffbc27; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; pointer-events: all; }
.ao-faq-a { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin: 0; line-height: 1.6; font-weight: 400; pointer-events: all; }
.ao-faq-a a { color: #ffbc27; text-decoration: underline; pointer-events: all; }

.ao-cross-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 48px; }
.ao-cross-card { display: block; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 18px 20px; text-decoration: none; pointer-events: all; }
.ao-cross-card:hover { background: rgba(255,188,39,0.07); border-color: rgba(255,188,39,0.25); transform: translateY(-2px); text-decoration: none; }
.ao-cross-title { display: block; color: #fff; font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.ao-cross-sub { display: block; color: rgba(255,255,255,0.45); font-size: 0.8rem; font-weight: 400; }

/* --- Responsive --- */
@media (max-width: 767px) {
    .post-content h1 { font-size: 1.65rem; }
    .post-content h2 { font-size: 1.15rem; margin-top: 40px; }
    .post-content p, .post-content ul, .post-content ol { font-size: 1rem; }

    .post-content table { font-size: 0.8rem; }
    .post-content th, .post-content td { padding: 9px 10px; }

    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-number { font-size: 1.5rem; }

    .toc { padding: 18px 20px; }
    .cta-inline { padding: 22px 18px; }
    .related-grid { grid-template-columns: 1fr; }
    .ao-cross-links { grid-template-columns: 1fr; }
    .ao-hero { padding: 32px 16px 28px; }
    .ao-region { padding: 16px; }
}
