/*
 Theme Name:   PN Master
 Description:  Custom WordPress theme for the Player Network
 Author:       Player Network
 Template:     generatepress
 Version:      1.0
*/
:root {
--space-xx:4px;
--space-xs:8px;
--space-sm:12px;
--space-md:16px;
--space-lg:24px;
--space-xl:32px;
--tooltip-arrow: #ffffff;
--grad-dir: 90deg;
}
html {
scroll-behavior: smooth;
scroll-padding-top: 80px;
scrollbar-gutter: stable;
-webkit-text-size-adjust: 100%;
}
html[dir="rtl"] {
  --grad-dir: -90deg;
}
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
accent-color: var(--red);
}
ol, ul {
margin: 0 0 1.5rem 0;
margin-inline-start: 2rem;
}

/* VERY SMALL DEVICES */
@media (max-width: 389px) {
    .author-box {
        flex-wrap: wrap;
    }
}

/* BREADCRUMBS */
.wp-block-wpseopress-breadcrumbs {
margin-bottom: var(--space-md);
}
.single-post .breadcrumb .breadcrumb-item:first-child, .single-post .breadcrumb .breadcrumb-item:last-child {
display: none;
}
.single-post .breadcrumb-item a {
text-transform: uppercase;
font-size: 0.875rem;
font-weight: 600;
color: var(--blue-med);
background-color: rgba(60, 64, 199, 0.1);
border-radius: var(--space-lg);
padding:var(--space-xx) var(--space-xs);
transition: all 0.15s ease-in-out 0s;
}
.single-post .breadcrumb-item a:hover, .single-post .breadcrumb-item a:focus {
background-color:rgba(60, 64, 199, 0.15);
}
.single-post .breadcrumb li::after {
content: none;
display: none;
}
.page .wp-block-wpseopress-breadcrumbs {
line-height: 1.1;
}
.page .breadcrumb-item {
text-transform: uppercase;
color: var(--gray-1);
font-size: 0.875rem;
font-weight: 500;
transition: all 0.15s ease-in-out 0s;
}
.page .breadcrumb-item a {
color: inherit;
}
.page .breadcrumb-item a:hover, .page .breadcrumb-item a:focus {
color: var(--black);
}
.page .breadcrumb li::after {
margin-inline-start: 3px;
}

/* SUMMARY BOX */
.body-box ul {
margin: 0;
margin-inline-start: 1.5rem;
}
.body-box ul li:not(:last-child) {
margin-bottom: var(--space-xs);
}
ul.pn-toc {
list-style-type: none;
margin-inline-start: 0;
}
.entry-content a[href^="#"]::after {
content:"";
display:inline-block;
width:0.75em; 
height:0.75em;
background-color: currentColor;
mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M 222.235855 406.274628 L 10.463135 164.210815 C -14.529222 135.730164 5.782589 91 43.712685 91 L 467.258057 91 C 484.596039 90.985138 500.338257 101.118286 507.50412 116.906067 C 514.670044 132.693909 511.93335 151.214386 500.507629 164.255005 L 288.734955 406.230469 C 280.349854 415.825867 268.228241 421.330963 255.485382 421.330963 C 242.742508 421.330963 230.620926 415.825867 222.235855 406.230469 Z'/%3E%3C/svg%3E");
mask-size:contain;
mask-repeat:no-repeat;
margin-inline-start: 3px;
vertical-align:-1px;
}

/* BODY LINKS */
.entry-content p a,
.entry-content li a {
    font-weight: 500;
    color: var(--red);
    text-decoration-line: underline;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--red-light);
    text-underline-offset: 2px;
    transition: all 0.15s ease-in-out;
}

.entry-content p strong a,
.entry-content p b a,
.entry-content li strong a,
.entry-content li b a {
    font-weight: inherit;
}

.entry-content p a:hover,
.entry-content p a:focus,
.entry-content li a:hover,
.entry-content li a:focus {
    text-decoration-color: var(--red);
}

/* CTAS */
.smart-cta-wrapper {
display: grid;
grid-template-columns: 1fr;
gap: 24px;
margin-bottom: 1.5rem;
}
@media (min-width: 768px) and (max-width: 1024px) {
.smart-cta-wrapper {
grid-template-columns: repeat(2, 1fr);
}
.smart-cta-wrapper .casino-card-wrapper:only-child {
grid-column: 1 / -1;
}
}
.casino-card-wrapper {
container-type: inline-size;
container-name: casinocard;
}
@media (min-width: 1200px) {
.smart-cta-wrapper {
grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
}
}
@container casinocard (min-width: 768px) {
body .casino-cta-card {
flex-direction: row;
align-items: stretch;
gap: 24px;
}
body .casino-card-brand {
flex: 0 0 220px !important;
height: auto !important;
}
body .casino-card-info {
flex: 1;
padding: 20px 0;
}
body .casino-card-action {
flex: 0 0 220px !important;
padding: 20px 0;
padding-inline-end: 24px;
box-sizing: border-box;
justify-content: center; /* remove once secondary button gets added */
}
}
.casino-card-brand {
background: linear-gradient(var(--grad-dir), var(--c1) 0%, var(--c2) 100%) !important;
}

/* TABLES */
body .entry-content .wp-block-table table {
border-collapse: separate;
border-radius: 8px;
border-spacing: 0;
border: 1px solid rgba(30, 39, 46, 0.12);
overflow: hidden;
box-shadow: 0px 2px 4px -1px rgba(23, 24, 51, 0.04);
}
body .entry-content .wp-block-table thead th {
background-color: var(--gray-5);
font-weight: 600;
text-align: start;
padding: 12px 24px;
border: none;
border-bottom: 1px solid rgba(30, 39, 46, 0.12);
}
body .entry-content .wp-block-table tbody tr {
background-color: #ffffff !important; 
transition: background-color 0.15s ease-in-out;
}
body .entry-content .wp-block-table tbody tr:hover {
background-color: rgba(30, 39, 46, 0.02) !important;
}
body .entry-content .wp-block-table tbody td {
padding: 12px 24px;
text-align: start;
color: var(--gray-1);
border: none;
border-bottom: 1px solid rgba(30, 39, 46, 0.06);
}
body .entry-content .wp-block-table tbody tr:last-child td {
border-bottom: none;
}
body .entry-content .wp-block-table th,
body .entry-content .wp-block-table td {
font-size: 1rem;
}
@media (max-width: 768px) {
body .entry-content .wp-block-table thead th,
body .entry-content .wp-block-table tbody td {
padding: 8px 16px;
}
body .entry-content .wp-block-table th,
body .entry-content .wp-block-table td {
font-size: 0.875rem;
}
.wp-block-table.fit-mobile table {
table-layout: fixed;
width: 100%;
}
.wp-block-table.fit-mobile th,
.wp-block-table.fit-mobile td {
white-space: normal;
word-wrap: break-word; 
overflow-wrap: break-word;
hyphens: auto;
}
}

/* SIDEBAR ON TABLET */
@media (max-width: 1024px) {
.site-content {
display: flex !important;
flex-direction: column !important;
}
.one-container.right-sidebar .site-main,
.one-container.both-right .site-main {
margin-right: 0 !important;
margin-left: 0 !important;
}
.site-content .content-area,
.site-content .sidebar {
width: 100% !important;
float: none !important;
}
.site-content .sidebar {
margin-top: 24px !important;
}
}

/* FOOTER */
.footer-link-list {
color: var(--gray-5);
font-size: 1rem;
font-weight: 500;
transition: color 0.15s ease-in-out;
}
.footer-link-list a:hover, .footer-link-list a:focus {
color: var(--gray-3) !important;
}
.footer-link-list.is-layout-flex {
gap: 0.3em;
}
@media (max-width: 768px) {
.footer-link-list {
font-size: 0.875em;
}
}
.footer-bar a {
color: var(--gray-3) !important; 
transition: color 0.15s ease-in-out;
}
.footer-bar a:hover,
.footer-bar a:focus {
color: var(--gray-5) !important;
}
.footer-bar ul {
gap: 32px;
}
@media (max-width: 768px) {
.footer-bar ul {
gap: 20px;
}
}
/* LANG SWITCHER */
.dynamic-lang-switcher.is-open .lang-overlay-content {
opacity: 1;
visibility: visible;
transform: scale3d(1, 1, 1);
pointer-events: auto;
}
.dynamic-lang-switcher:not(:has(.dahm-button-group-single)) {
display: none !important;
}
.lang-overlay-content .dahm-locale-selector {
margin: 0 !important;
}
.lang-overlay-content ul.dahm-button-group {
flex-direction: column !important;
gap: 4px !important;
}
.lang-overlay-content a.dahm-button-group-single {
display: block !important;
background-color: transparent !important;
padding: 12px 0px !important;
color: var(--black) !important;
font-size: 1rem !important;
font-weight: 500 !important;
text-align: start !important; 
border-radius: 0 !important;
transition: color 0.15s ease-in-out !important;
}
@media (max-width: 768px) {
.lang-overlay-content a.dahm-button-group-single {
font-size: 0.875rem !important;
}
}
.lang-overlay-content a.dahm-button-group-single:hover, .lang-overlay-content a.dahm-button-group-single:focus {
color: var(--gray-2) !important;
}

/* ELEMENTS */
.carousel-control {
transition: background-color 0.15s ease-in-out 0s !important;
}
.timeline-item::before {
content: '';
position: absolute;
inset-inline-start: -9px;
top: 44px;
width: 16px;
height: 16px;
border-radius: 50%;
background-color: var(--red);
border: 4px solid #ffffff;
transition: all 0.15s ease-in-out;
}
.timeline-item:hover::before {
border-color: var(--red);
}
.timeline-item h3 {
transition: 0.15s ease-in-out;
}
.timeline-item:hover h3 {
color: var(--red);
}
/* FRONT PAGE */
.hero-coins::before {
content: "";
position: absolute;
top: 24px;
right: 0;
bottom: 0;
left: 0;
background-image: url('/wp-content/uploads/coins-hero.png');
background-position: 100% 50%;
background-repeat: no-repeat;
background-size: contain;
opacity: 0.9; 
filter:
  brightness(0.85)
  contrast(1.15) 
  drop-shadow(0 15px 20px rgba(0, 0, 0, 0.75)) 
  drop-shadow(0 0 30px rgba(255, 211, 42, 0.25));
pointer-events: none;
}
@media (max-width: 1280px) and (min-width: 1025px) {
.hero-coins::before {
background-size: 34%;
top: 0px;
}
}
@media (max-width: 1024px) {
.hero-coins::before {
display: none !important;
}
}
/* ABOUT US PAGE */
.scrolling-hero {
animation: scrollSeamless 30s linear infinite;
}
@keyframes scrollSeamless {
0% {
background-position: 0px 0px;
}
100% {
background-position: 0px 1000px; 
}
}
.body-box-illustration {
-webkit-transform: translateZ(0);
transform: translateZ(0);
will-change: filter;
}
/* ANIMATIONS */
.button-header {
position: relative;
z-index: 1;
}
.button-header::after {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
box-shadow: 0 0 10px var(--red), 0 0 30px var(--red-alt);
z-index: -1;
opacity: 0;
animation: buttonGlow 5s ease-in-out infinite;
will-change: opacity;
}
@keyframes buttonGlow {
0%, 100% {
opacity: 0;
}
20% {
opacity: 0.85;
}
50% {
opacity: 0;
}
}
.meta-label.pill::after {
content: "";
position: absolute;
top: 0;
inset-inline-start: -100%;
width: 60%; 
height: 100%; 
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
transform: skewX(-20deg);
animation: badgeShimmer 4s infinite ease-in-out; 
pointer-events: none;
}
@keyframes badgeShimmer {
0% { inset-inline-start: -100%; }
60% { inset-inline-start: 200%; }
100% { inset-inline-start: 200%; }
}
.checkmark-icon {
animation: trustPop 4s ease-in-out infinite;
will-change: transform, opacity;
}
@keyframes trustPop {
0%, 85%, 100% {
transform: scale(1);
opacity: 0.9;
}
90% {
transform: scale(1.15);
opacity: 1;
}
95% {
transform: scale(0.95);
opacity: 0.95;
}
}
.dahm-button-group-single-li-active {
display: none;
}