/*
Theme Name: Newsmatic Child
Template: newsmatic
*/

/* =========================
   GRID
========================= */
body.single .prediction-grid{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:1.5rem;
    align-items:stretch;
}
/* =========================
   KÁRTYA (STABIL FIX)
========================= */
body.single .prediction-card{
    width:15rem;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    background:#ffffff;
    border:1px solid #000;
    padding:1.5rem;
    border-radius:1rem;
    box-sizing:border-box;
    margin-bottom: 1.0rem;
    /* ERŐSEBB ÁRNYÉK */
    box-shadow: 6px 6px 8px rgba(0,0,0,0.45);
}
/* =========================
   TEAMS
========================= */
body.single .teams{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:0.8rem;
    margin-bottom:0.8rem;
}
body.single .teams img{
    height:3.5rem;
}
body.single .teams span{
    font-size:1.0rem;
    font-weight:700;
    color:#3dbb3d;
}
/* =========================
   TIPP (FIX MAX 2 SOR)
========================= */
body.single .prediction-text{
    font-size:1.2rem;
    font-weight:700;
    line-height:1.3;
    min-height:2.6em;
    margin-bottom:0.6rem;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
/* =========================
   ODDS
========================= */
body.single .prediction-odds{
    font-size:1.0rem;
    font-weight:800;
    color:#3dbb3d;
    margin-bottom:1rem;
}
/* =========================
   BUTTON
========================= */
body.single .bet-button{
    display:block;
    width:100%;
    text-align:center;
    background:#3dbb3d;
    color:#fff;
    text-decoration:none;
    padding:0.5rem 0.8rem;
    border-radius:0.2rem;
    font-weight:700;
    margin-bottom:1rem;
}
/* =========================
   BOOKMAKER
========================= */
body.single .bookmaker{
    text-align:center;
}
body.single .bookmaker img{
    max-width:10rem;
    opacity:0.9;
}
/* =========================
   MECCS (mai/holnapi tipp)
========================= */
body.single .match-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #3dbb3d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
    min-height: 2.4em;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.newsmatic_dark_mode .match-name {
    color: #aaa !important;
}
/* =========================
   DARK MODE
========================= */
body.newsmatic_dark_mode .prediction-card{
    background:#1f1f1f !important;
    border:1px solid #333 !important;
    /* ERŐSEBB DARK SHADOW */
    box-shadow: 6px 10px 25px rgba(0,0,0,0.6);
}
body.newsmatic_dark_mode .prediction-text,
body.newsmatic_dark_mode .prediction-odds,
body.newsmatic_dark_mode .teams span{
    color:#4ade80 !important;
}
body.newsmatic_dark_mode .bet-button{
    background:#22c55e !important;
}
body.newsmatic_dark_mode .bookmaker img{
    opacity:0.85;
}
/* =========================
   Bejegyzés/Kiemelt kép, szerző, comment hide
========================= */
.single .post-thumbnail {
    display: none;
}
.byline{
    display:none;
}
.author_name {
    display:none;
}
.read-time{
    display:none;
}
.post-comment{
    display:none;
}
/* =========================
   Bejegyzés: bekezdés justify
========================= */
p {
    text-align:justify;
}
figure.alignleft {
    float: left !important;
    display: block !important;
    margin: 0 1.5rem 1rem 0 !important;
    max-width: 18rem;
}
figure.alignright {
    float: right !important;
    display: block !important;
    margin: 0 0 1rem 1.5rem !important;
    max-width: 18rem;
}
.wp-block-post-content:after {
    content: "";
    display: block;
    clear: both;
}
.wp-block-post-content p {
    text-align: justify;
}
/* Mobil nézet */
@media (max-width: 768px) {
    figure.alignleft,
    figure.alignright {
        float: none !important;
        display: block !important;
        margin: 0 auto 1rem auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    figure.alignleft img,
    figure.alignright img {
        width: 100% !important;
        height: auto !important;
    }
    .wp-block-post-content p {
        text-align: left;
    }
}
/* =========================
   HEADER logó csere
========================= */
body:not(.newsmatic_dark_mode) .site-branding img.custom-logo {
    content: url("https://focitipppro.hu/wp-content/uploads/2026/05/focitipppro.png");
    max-width: 237px !important;
    height: auto !important;
}
body.newsmatic_dark_mode .site-branding img.custom-logo {
    content: url("https://focitipppro.hu/wp-content/uploads/2026/05/focitipppro-sotet.png");
    max-width: 237px !important;
    height: auto !important;
}
/* =========================
   Header sötét mód (asztali + mobil)
========================= */
body.newsmatic_dark_mode .site-header .row-two.full-width,
body.newsmatic_dark_mode .site-header .row-two .full-width,
body.newsmatic_dark_mode .site-header .row-three.full-width,
body.newsmatic_dark_mode .site-header .row-three .full-width {
    background: #181818 !important;
}
body.newsmatic_dark_mode .site-header,
body.newsmatic_dark_mode .site-header .menu_txt,
body.newsmatic_dark_mode .site-header a,
body.newsmatic_dark_mode .site-header .newsletter-element a,
body.newsmatic_dark_mode .site-header .random-news-element a,
body.newsmatic_dark_mode .site-header .main-navigation a {
    color: #fff !important;
}
body.newsmatic_dark_mode .site-header .toggle-button-wrapper span,
body.newsmatic_dark_mode .site-header #newsmatic_menu_burger span {
    background: #fff !important;
}
/* =========================
   Footer site-info stílus
========================= */
.site-info {
    font-weight: 400 !important;
    color: #9a9a9a !important;
}
.site-info a {
    color: #9a9a9a !important;
    font-weight: 400 !important;
    text-decoration: none;
}
.site-info a:hover {
    color: #c0c0c0 !important;
}
/* =========================
   wp-block-post-title színek
========================= */
/* Sötét mód */
body.newsmatic_dark_mode .wp-block-post-title,
body.newsmatic_dark_mode .wp-block-post-title a {
    color: #ffffff !important;
}
body.newsmatic_dark_mode .wp-block-post-title a:hover {
    color: #1B8415 !important;
}
/* Világos mód */
body.newsmatic_main_body .wp-block-post-title,
body.newsmatic_main_body .wp-block-post-title a {
    color: #000000 !important;
}
body.newsmatic_main_body .wp-block-post-title a:hover {
    color: #1B8415 !important;
}
/* =========================
   Bejegyzés + oldal tartalmán belüli linkek
   (kivéve .bet-button és a főoldal)
========================= */
body.single .wp-block-post-content a:not(.bet-button),
body.single .entry-content a:not(.bet-button),
body.single .post-content a:not(.bet-button),
body.page:not(.home) .wp-block-post-content a:not(.bet-button),
body.page:not(.home) .entry-content a:not(.bet-button),
body.page:not(.home) .post-content a:not(.bet-button) {
    color: #13af11 !important;
}
body.single .wp-block-post-content a:not(.bet-button):hover,
body.single .wp-block-post-content a:not(.bet-button):focus,
body.single .wp-block-post-content a:not(.bet-button):active,
body.single .entry-content a:not(.bet-button):hover,
body.single .entry-content a:not(.bet-button):focus,
body.single .entry-content a:not(.bet-button):active,
body.single .post-content a:not(.bet-button):hover,
body.single .post-content a:not(.bet-button):focus,
body.single .post-content a:not(.bet-button):active,
body.page:not(.home) .wp-block-post-content a:not(.bet-button):hover,
body.page:not(.home) .wp-block-post-content a:not(.bet-button):focus,
body.page:not(.home) .wp-block-post-content a:not(.bet-button):active,
body.page:not(.home) .entry-content a:not(.bet-button):hover,
body.page:not(.home) .entry-content a:not(.bet-button):focus,
body.page:not(.home) .entry-content a:not(.bet-button):active,
body.page:not(.home) .post-content a:not(.bet-button):hover,
body.page:not(.home) .post-content a:not(.bet-button):focus,
body.page:not(.home) .post-content a:not(.bet-button):active {
    color: #1B8415 !important;
}

/* =========================
   Rank Math TOC - lenyitható
========================= */
.wp-block-rank-math-toc-block {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0;
    margin: 1.5rem 0;
    background: #fafafa;
}
.wp-block-rank-math-toc-block h2 {
    cursor: pointer;
    user-select: none;
    position: relative;
    margin: 0;
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    font-size: 1.2rem;
}
.wp-block-rank-math-toc-block h2::after {
    content: "\25BC";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    font-size: 0.7em;
    color: #1B8415;
}
.wp-block-rank-math-toc-block.toc-collapsed h2::after {
    transform: translateY(-50%) rotate(-90deg);
}
.wp-block-rank-math-toc-block nav {
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    max-height: 2000px;
    padding: 0 1rem 1rem 1rem;
}
.wp-block-rank-math-toc-block.toc-collapsed nav {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Dark mode */
body.newsmatic_dark_mode .wp-block-rank-math-toc-block {
    background: #1f1f1f;
    border-color: #333;
}

/* =========================
   Képaláírások - középre, kisebb betű
========================= */
.wp-block-image figcaption,
figure.wp-block-image figcaption,
figure.wp-caption .wp-caption-text,
.entry-content figcaption,
.wp-block-post-content figcaption,
.post-content figcaption,
figure figcaption {
    text-align: center !important;
    font-size: 0.85rem !important;
    color: #666;
    margin-top: 0.4rem !important;
    font-style: italic;
    line-height: 1.4;
}
body.newsmatic_dark_mode figure figcaption,
body.newsmatic_dark_mode .wp-block-image figcaption {
    color: #aaa !important;
}