/* ============================================================
   Article Components – unified stylesheet
   Obsahuje: article-top, breadcrumb, meta, hero thumbnail,
   faq, category listing, broker card, related articles
   ============================================================ */


/* ============================================================
   {{article-top}} – Zelený wrapper přes celou šířku
   ============================================================ */

.article-top-wrap {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 50%, #e8f5e9 100%);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 1.5rem calc(50vw - 50%) 1.5rem;
    margin-bottom: 1.5rem;
}

.article-top-wrap h1 {
    margin-block-start: 0.5rem;
    margin-block-end: 0.75rem;
}

.article-top-wrap h1::after {
    display: none;
}

.article-top-wrap .article-top-meta {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* ============================================================
   Breadcrumb
   ============================================================ */

.article-breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.article-breadcrumb a {
    color: var(--color-secondary, #1d9d7a);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.article-breadcrumb a:hover {
    color: var(--color-primary, #135383);
    text-decoration: underline;
}

.article-breadcrumb-sep {
    color: var(--color-text-light, #6c757d);
    margin: 0 0.25rem;
}

.article-breadcrumb > span {
    color: var(--color-text-light, #6c757d);
}

/* ============================================================
   Article meta (autor, datum, aktualizace)
   ============================================================ */

.article-top-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    padding-top: 0.5rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border, #dee2e6);
    font-size: 0.875rem;
    color: var(--color-text-light, #6c757d);
    line-height: 1;
}

.article-meta-author {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--color-text, #2c3e50);
    text-decoration: none;
    transition: color 0.3s;
}

.article-meta-author:hover {
    color: var(--color-primary, #135383);
    text-decoration: underline;
}

.article-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.article-meta-date {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-text-light, #6c757d);
}

.article-meta-date svg {
    opacity: 0.55;
}

.article-meta-updated {
    color: #94a3b8;
    font-size: 0.8125rem;
}

/* ============================================================
   Article hero: thumbnail vlevo vedle H1
   ============================================================ */

.article-top-hero {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.article-top-thumb {
    flex-shrink: 0;
    margin-top: 1rem;
}

.article-top-thumb img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.article-top-heading {
    flex: 1;
    min-width: 0;
}

.article-top-hero .article-top-heading h1 {
    margin-block-start: 0;
    margin-block-end: 0.5rem;
}

.article-top-hero .article-top-meta {
    padding-top: 0.25rem;
}

@media (max-width: 576px) {
    .article-top-hero {
        flex-direction: column;
        gap: 0.75rem;
    }

    .article-top-thumb {
        width: 100%;
        margin-top: 0;
    }

    .article-top-thumb img {
        width: 100%;
        height: 200px;
        border-radius: 6px;
    }

    .article-top-meta {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .article-author-avatar {
        width: 24px;
        height: 24px;
    }

    .article-breadcrumb {
        font-size: 0.8rem;
    }
}

/* ============================================================
   {{faq}} – Bootstrap 5 Accordion
   ============================================================ */

.faq-section {
    margin: 2.5rem 0;
}

.faq-accordion-item {
    border: none !important;
    border-radius: 0 !important;
    background: transparent;
    border-bottom: 1px solid var(--color-border, #dee2e6) !important;
}

.faq-accordion-item:first-child {
    border-top: 1px solid var(--color-border, #dee2e6) !important;
}

.faq-accordion-button {
    padding: 1.15rem 0.5rem 1.15rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text, #2c3e50);
    background: transparent !important;
    border: none;
    box-shadow: none !important;
    line-height: 1.45;
    transition: color 0.3s;
}

.faq-accordion-button:hover {
    color: var(--color-primary, #135383);
}

.faq-accordion-button:not(.collapsed) {
    color: var(--color-primary, #135383);
    background: transparent !important;
    box-shadow: none !important;
}

.faq-accordion-button::after {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-left: auto;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236c757d'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-size: 1rem;
    transition: transform 0.25s ease;
}

.faq-accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23135383'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-accordion-body {
    padding: 0 0.5rem 1.25rem 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-light, #6c757d);
}

@media (max-width: 768px) {
    .faq-accordion-button { font-size: 0.95rem; padding: 1rem 0.25rem 1rem 0; }
    .faq-accordion-body { font-size: 0.9rem; padding: 0 0.25rem 1rem 0; }
}

/* ============================================================
   Category / News listing
   ============================================================ */

.cat-listing {
    margin-top: 1.5rem;
}

.cat-listing-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.cat-listing-item:first-child {
    padding-top: 0;
}

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

.cat-listing-img {
    flex-shrink: 0;
    width: 240px;
}

.cat-listing-img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    transition: opacity 0.3s;
}

.cat-listing-img a:hover img {
    opacity: 0.85;
}

.cat-listing-content {
    flex: 1;
    min-width: 0;
}

.cat-listing-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.5rem;
    color: var(--color-primary, #135383);
}

.cat-listing-title a {
    color: inherit;
    text-decoration: none;
}

.cat-listing-title a:hover {
    text-decoration: underline;
}

.cat-listing-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    font-size: 0.8125rem;
}

.cat-listing-author {
    color: var(--color-secondary, #1d9d7a);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.cat-listing-author:hover {
    text-decoration: underline;
}

.cat-listing-sep {
    color: #ccc;
    font-weight: 300;
}

.cat-listing-date {
    color: var(--color-text-light, #6c757d);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.cat-listing-desc {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #444;
    margin: 0;
}

@media (max-width: 767.98px) {
    .cat-listing-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cat-listing-img {
        width: 100%;
    }

    .cat-listing-img img {
        height: 200px;
    }

    .cat-listing-title {
        font-size: 1.1rem;
    }
}

/* ============================================================
   Broker Card – kompaktní inline promo karta
   ============================================================ */

.broker-card {
    margin: 2rem 0;
}

.broker-card-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    background: #fdfdfe;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: box-shadow 0.25s;
}

.broker-card-inner:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.broker-card-left {
    flex-shrink: 0;
    text-align: center;
    min-width: 100px;
}

.broker-card-logo {
    height: 32px;
    width: auto;
    display: block;
    margin: 0 auto 0.35rem;
}

.broker-card-reg {
    font-size: 0.62rem;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.broker-card-center {
    flex: 1;
    min-width: 0;
    border-left: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    padding: 0 1.25rem;
}

.broker-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.broker-card-tags span {
    font-size: 0.72rem;
    color: #475569;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}

.broker-card-promo {
    font-size: 0.78rem;
    color: var(--color-primary, #135383);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.broker-card-promo strong {
    color: var(--color-secondary, #1d9d7a);
}

.broker-card-risk {
    font-size: 0.62rem;
    color: #b0b8c4;
    line-height: 1.35;
    font-style: italic;
}

.broker-card-right {
    flex-shrink: 0;
    text-align: left;
}

.broker-card-cta {
    display: inline-block;
    background: linear-gradient(135deg, #1d9d7a, #17b890);
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.55rem 1.2rem;
    border-radius: 7px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(29,157,122,0.25);
}

.broker-card-cta:hover {
    background: linear-gradient(135deg, #17b890, #15a880);
    box-shadow: 0 3px 10px rgba(29,157,122,0.35);
    transform: translateY(-1px);
}

.broker-card-deposit {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 0.35rem;
    font-weight: 500;
}

@media (max-width: 767.98px) {
    .broker-card-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem;
    }

    .broker-card-center {
        border-left: none;
        border-right: none;
        border-top: 1px solid #f1f5f9;
        border-bottom: 1px solid #f1f5f9;
        padding: 0.75rem 0;
    }

    .broker-card-tags {
        justify-content: center;
    }

    .broker-card-cta {
        width: 100%;
        padding: 0.6rem 1rem;
    }
}

/* ============================================================
   Related articles – grid pod článkem
   ============================================================ */

.related-section {
    margin: 2.5rem 0 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.related-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary, #135383);
    margin-bottom: 1rem;
}

.related-title::after {
    display: none;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.related-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

.related-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.related-card-img {
    overflow: hidden;
}

.related-card-img img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.related-card:hover .related-card-img img {
    transform: scale(1.05);
}

.related-card-body {
    padding: 0.75rem;
    flex: 1;
}

.related-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-primary, #135383);
    line-height: 1.35;
    margin: 0 0 0.35rem;
}

.related-card-title::after {
    display: none;
}

.related-card:hover .related-card-title {
    color: var(--color-secondary, #1d9d7a);
}

.related-card-desc {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.45;
    margin: 0;
}

@media (max-width: 767.98px) {
    .related-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .related-card {
        flex-direction: row;
    }

    .related-card-img {
        flex-shrink: 0;
        width: 120px;
    }

    .related-card-img img {
        height: 100%;
        width: 120px;
    }
}