/*
Theme Name: Pokatheme Child
Template: pokatheme
Version: 1.0
*/

.poka_author_info__shortcode {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px 10px 2px;
    background: #e8f4fa;
    color: #050c2f;
    font-size: 14px;
    font-weight: 500;
    width: fit-content;
    width: max-content;
    max-width: 100%;
    margin: 12px 0;
}

.poka_author_info__shortcode .author {
    color: #134d9c;
}

.poka_author_info__shortcode a:hover {
    text-decoration: underline;
}

.poka_custom-author-box__image img {
    width: 80px;
    height: 80px;
    border-radius: 200px;
    overflow: hidden;
    background: #ddd;
}

.poka_custom-author-box {
    border: 1px solid #ccc;
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
}

.poka_custom-author-box__social {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-top: 24px;
}

.poka_custom-author-box__social a {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #655a95;
    color: #fff;
    border-radius: 200px;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
    padding: 6px 4px;
    font-size: 14px;
}

.poka_custom-author-box__social a:hover {
    background: #4b3f6b;
    color: #fff;
}

.poka_custom-author-box__social a img {
    max-width: 18px!important;
    width: 18px!important;
    height: auto!important;
    display: block!important;
}

@media only screen and (max-width: 768px) {
    .poka_custom-author-box__content {
        width: 100%;
        max-width: 100%;
        flex: 100%;
    }
}

/* ==========================================================
   Table list v2 (casinos) — logo box fixes
   Parent builds the box with an aspect-ratio hack (height:0 +
   padding-bottom:55%) and centers the image only when it is
   wrapped in a link (.logo-box a img). Replace that with a
   fixed-height flex box so the logo is always centered and the
   frame matches the compact design — with or without a link.
   ========================================================== */
.table-s2 .item .item-row .col-logo .logo-box {
    height: 110px !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    /* parent reserves 35px for the rank number — we removed it */
    margin-left: 0 !important;
}

.table-s2 .item .item-row .col-logo .logo-box a {
    position: absolute !important;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.table-s2 .item .item-row .col-logo .logo-box img {
    position: static !important;
    margin: 0 auto !important;
    max-width: 80% !important;
    max-height: 85% !important;
    width: auto !important;
    height: auto !important;
}

@media only screen and (max-width: 768px) {
    .table-s2 .item .item-row .col-logo .logo-box {
        height: 90px !important;
    }
}

/* Corner tag badge (Casino Tag fields) */
.table-s2 .item {
    position: relative;
}

.table-s2 .item.item--has-tag {
    padding-top: 22px;
}

/* extra room above the table so the first row's tag isn't clipped */
.table-s2 {
    padding-top: 14px;
}

.table-s2 .item .tbl-tag {
    position: absolute;
    top: -12px;
    left: 12px;
    display: inline-block;
    background: #ffd54d;
    color: #1d2327;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 12px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    z-index: 2;
}

/* ==========================================================
   Expandable details panel ("More info") under table rows
   ========================================================== */
.table-s2 .item .tbl-details-toggle {
    display: block;
    margin-top: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #134d9c;
    text-decoration: none;
    cursor: pointer;
}

.table-s2 .item .tbl-details-toggle:hover {
    text-decoration: underline;
    color: #134d9c;
}

.table-s2 .item .tbl-details-toggle .td-arr::after {
    content: "\25BE"; /* ▾ */
    display: inline-block;
    margin-left: 3px;
    transition: transform 200ms ease;
}

.table-s2 .item .tbl-details-toggle.is-open .td-arr::after {
    transform: rotate(180deg);
}

.table-s2 .item .tbl-details {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px 30px;
    margin-top: 15px;
    padding: 18px 20px;
    background: #f5f8fb;
    border-radius: 5px;
}

.table-s2 .item .tbl-details.is-open {
    display: grid;
}

.table-s2 .item .tbl-details .td-sec h4 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-style: italic;
    color: #134d9c;
    margin: 0 0 10px;
}

.table-s2 .item .tbl-details .td-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed #b9c7d9;
    font-size: 13px;
}

.table-s2 .item .tbl-details .td-row .td-lbl {
    color: #134d9c;
}

.table-s2 .item .tbl-details .td-row .td-val {
    font-weight: 700;
    text-align: right;
}

.table-s2 .item .tbl-details .td-row .td-yes {
    color: #1d9d47;
    font-weight: 700;
}

.table-s2 .item .tbl-details .td-row .td-no {
    opacity: 0.5;
}

@media only screen and (max-width: 768px) {
    .table-s2 .item .tbl-details {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   Expert rating block — "Meidän arvosana"
   ========================================================== */
.poka-rating .pr-head {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* in the details panel the section heading style is inherited instead */
.tbl-details .td-sec--rating .pr-head {
    font-size: 15px;
    text-transform: uppercase;
    font-style: italic;
    color: #134d9c;
}

.poka-rating .pr-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 600;
}

.poka-rating .pr-row:nth-child(even) {
    background: #f4f4f4;
    border-radius: 4px;
}

/* overlay stars (support halves: fill width = score %) */
.po-stars {
    position: relative;
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
}

.po-stars .po-stars-bg {
    color: #d5d5d5;
}

.po-stars .po-stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #f7c31d;
}

/* ⓘ tooltip */
.pr-info {
    position: relative;
    display: inline-flex;
    cursor: help;
    outline: none;
}

.pr-info .pr-i {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    background: #9aa4ae;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-style: normal;
}

.pr-info .pr-tip {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    max-width: 80vw;
    background: #6b9bd1;
    color: #fff;
    padding: 15px 17px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    text-transform: none;
    font-style: normal;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    z-index: 20;
}

.pr-info .pr-tip::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: #6b9bd1;
}

.pr-info:hover .pr-tip,
.pr-info:focus .pr-tip {
    display: block;
}

/* Operator name + numeric score in the rating column */
.table-s2 .item .item-row .col-rating .tbl-casino-name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.table-s2 .item .item-row .col-rating .tbl-casino-name a {
    color: #134d9c;
    text-decoration: none;
}

.table-s2 .item .item-row .col-rating .tbl-casino-name a:hover {
    text-decoration: underline;
}

.table-s2 .item .item-row .col-rating .tbl-rating-num {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.75;
    margin-top: 2px;
}
