/* =========================================================================
   Platincasino — supplemental component styles
   These back the custom classNames used inside the block patterns.
   Colours reference theme.json CSS custom properties so they stay in sync.
   ========================================================================= */

:root {
	--pc-radius: 14px;
	--pc-radius-sm: 10px;
	--pc-border: var(--wp--preset--color--border, rgba(255,255,255,0.12));
}

/* ---- Generic premium card ---------------------------------------------- */
.pc-card {
	background: var(--wp--preset--gradient--surface, #192c43);
	border: 1px solid var(--pc-border);
	border-radius: var(--pc-radius);
	box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

/* ---- Gold rule / divider under headings -------------------------------- */
.pc-rule:after {
	content: "";
	display: block;
	width: 64px;
	height: 3px;
	margin-top: 0.6rem;
	border-radius: 3px;
	background: var(--wp--preset--gradient--cyan, linear-gradient(135deg,#0bdede,#0057ff));
}
.pc-rule.has-text-align-center:after { margin-left: auto; margin-right: auto; }

/* ---- Star rating -------------------------------------------------------- */
.pc-rating { display: inline-flex; align-items: center; gap: 0.55rem; }
.pc-rating__stars {
	--pc-fill: 90%; /* set per instance: rating/5*100 */
	font-size: 1.35rem;
	line-height: 1;
	letter-spacing: 2px;
	background: linear-gradient(90deg, var(--wp--preset--color--gold, #ffd336) var(--pc-fill), #33507d var(--pc-fill));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.pc-rating__stars:before { content: "\2605\2605\2605\2605\2605"; }
.pc-rating__value {
	font-weight: 800;
	color: var(--wp--preset--color--gold, #ffd336);
	font-size: 1.1rem;
}
.pc-rating__count { color: var(--wp--preset--color--muted, #8ea7cf); font-size: 0.9rem; }

/* ---- Bonus highlight box ----------------------------------------------- */
.pc-bonus {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(11,222,222,0.40);
	border-radius: var(--pc-radius);
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(11,222,222,0.10) 0%, rgba(227,179,65,0) 55%),
		var(--wp--preset--color--surface, #192c43);
	box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.pc-bonus__ribbon {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #241500;
	background: var(--wp--preset--gradient--gold, #ffd336);
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
}
.pc-bonus__amount {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	line-height: 1.1;
	color: var(--wp--preset--color--gold-soft, #ffe27a);
}

/* ---- Key-stat tiles ----------------------------------------------------- */
.pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.pc-stat { text-align: center; padding: 0.4rem 0.6rem; }
.pc-stat + .pc-stat { border-left: 1px solid var(--pc-border); }
.pc-stat__value { font-weight: 800; font-size: 1.25rem; color: var(--wp--preset--color--platinum, #d6dde9); }
.pc-stat__label { font-size: 0.8rem; color: var(--wp--preset--color--muted, #8ea7cf); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---- Info grid (Allgemeine Informationen) ------------------------------ */
.pc-info { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--pc-border); border-radius: var(--pc-radius); overflow: hidden; }
.pc-info__row { display: grid; grid-template-columns: 40% 60%; }
.pc-info__row:nth-child(odd)  { background: rgba(255,255,255,0.015); }
.pc-info__cell { padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--pc-border); }
.pc-info__cell--key { color: var(--wp--preset--color--muted, #8ea7cf); font-size: 0.92rem; }
.pc-info__cell--val { font-weight: 700; }
@media (max-width: 781px) {
	.pc-info { grid-template-columns: 1fr; }
}

/* ---- Pros / Cons -------------------------------------------------------- */
.pc-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.pc-proscons__col { padding: 1.4rem; border-radius: var(--pc-radius); border: 1px solid var(--pc-border); }
.pc-proscons__col--pros { background: rgba(43,182,115,0.06); border-color: rgba(43,182,115,0.25); }
.pc-proscons__col--cons { background: rgba(245,25,105,0.05); border-color: rgba(245,25,105,0.22); }
.pc-proscons ul { list-style: none; margin: 0; padding: 0; }
.pc-proscons li { padding: 0.4rem 0 0.4rem 1.8rem; position: relative; }
.pc-proscons__col--pros li:before { content: "\2714"; position: absolute; left: 0; color: var(--wp--preset--color--success, #00ed97); font-weight: 800; }
.pc-proscons__col--cons li:before { content: "\2715"; position: absolute; left: 0; color: var(--wp--preset--color--primary, #f51969); font-weight: 800; }
@media (max-width: 781px) { .pc-proscons { grid-template-columns: 1fr; } }

/* ---- Category / feature tiles ------------------------------------------ */
.pc-tile {
	border: 1px solid var(--pc-border);
	border-radius: var(--pc-radius-sm);
	background: var(--wp--preset--color--surface, #192c43);
	transition: transform .15s ease, border-color .15s ease;
}
.pc-tile:hover { transform: translateY(-3px); border-color: rgba(227,179,65,0.4); }

/* ---- Payment / provider chips ------------------------------------------ */
.pc-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.pc-chip {
	border: 1px solid var(--pc-border);
	border-radius: 999px;
	padding: 0.5rem 1rem;
	font-size: 0.9rem;
	color: var(--wp--preset--color--platinum, #d6dde9);
	background: rgba(255,255,255,0.02);
}

/* ---- Sticky CTA polish -------------------------------------------------- */
.pc-cta-strong .wp-block-button__link { box-shadow: 0 10px 24px rgba(245,25,105,0.30); }

/* ---- 18+ / responsible-gambling note ----------------------------------- */
.pc-rg-note {
	font-size: 0.82rem;
	color: var(--wp--preset--color--muted, #8ea7cf);
	border-top: 1px solid var(--pc-border);
}
.pc-badge-18 {
	display: inline-flex; align-items: center; justify-content: center;
	width: 2.1rem; height: 2.1rem; border-radius: 50%;
	border: 2px solid var(--wp--preset--color--primary, #f51969);
	color: var(--wp--preset--color--primary, #f51969);
	font-weight: 800; font-size: 0.8rem; flex: none;
}

/* ---- Header / footer trim ---------------------------------------------- */
.pc-header { border-bottom: 1px solid var(--pc-border); background: rgba(0,27,51,0.90); backdrop-filter: saturate(140%) blur(8px); }
.pc-footer { border-top: 1px solid var(--pc-border); }

/* ---- FAQ (details) ------------------------------------------------------ */
.pc-faq details {
	border: 1px solid var(--pc-border);
	border-radius: var(--pc-radius-sm);
	background: var(--wp--preset--color--surface, #192c43);
	padding: 0 1.1rem;
	margin-bottom: 0.75rem;
}
.pc-faq summary {
	cursor: pointer; list-style: none; padding: 1rem 0; font-weight: 700;
	display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.pc-faq summary::-webkit-details-marker { display: none; }
.pc-faq summary:after { content: "+"; color: var(--wp--preset--color--gold, #ffd336); font-weight: 800; font-size: 1.3rem; }
.pc-faq details[open] summary:after { content: "\2013"; }
.pc-faq details > *:not(summary) { padding-bottom: 1rem; color: var(--wp--preset--color--muted, #8ea7cf); }

/* =========================================================================
   SEO article + CSS-only "read more"
   The hidden text is NEVER display:none — it stays in the DOM and is clipped
   only with max-height/overflow, so Googlebot reads the full article in the
   raw HTML. No JavaScript: a hidden checkbox + <label> toggles expansion.
   ========================================================================= */
.pc-article { max-width: 1180px; }
.pc-article h2 { margin-top: 0; }
.pc-article h3 { margin-top: 1.8rem; margin-bottom: 0.4rem; }
.pc-article p { margin: 0 0 1rem; color: var(--wp--preset--color--platinum, #d6dde9); }
.pc-article strong { color: #fff; }

/* visually-hidden but focusable checkbox (keyboard accessible, no JS) */
.pc-readmore-toggle {
	position: absolute; width: 1px; height: 1px;
	opacity: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* collapsed remainder — clipped, not removed */
.pc-article__more {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.5s ease;
}
.pc-readmore-toggle:checked ~ .pc-article__more { max-height: 400rem; }

/* fade hint over the last visible lines, hidden once expanded */
.pc-article__fade {
	height: 96px;
	margin-top: -96px;
	position: relative;
	pointer-events: none;
	background: linear-gradient(to bottom, rgba(0,27,51,0) 0%, var(--wp--preset--color--base, #001b33) 92%);
}
.pc-readmore-toggle:checked ~ .pc-article__fade { display: none; }

/* the toggle button */
.pc-readmore-label {
	display: inline-flex; align-items: center; gap: 0.5rem;
	margin-top: 1.25rem; cursor: pointer; user-select: none;
	font-weight: 800; letter-spacing: 0.01em;
	color: var(--wp--preset--color--accent, #0bdede);
	border: 1px solid rgba(11,222,222,0.45);
	border-radius: 999px; padding: 0.6rem 1.25rem;
	transition: background 0.15s ease;
}
.pc-readmore-label:hover { background: rgba(11,222,222,0.08); }
.pc-rm-close { display: none; }
.pc-readmore-toggle:checked ~ .pc-readmore-label .pc-rm-open  { display: none; }
.pc-readmore-toggle:checked ~ .pc-readmore-label .pc-rm-close { display: inline; }
.pc-rm-icon {
	width: 0.55rem; height: 0.55rem;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); transition: transform 0.3s ease;
}
.pc-readmore-toggle:checked ~ .pc-readmore-label .pc-rm-icon { transform: rotate(-135deg); margin-top: 4px; }

/* =========================================================================
   Header logo / site title
   WordPress adds the body class .wp-custom-logo when a Custom Logo is set.
   So: show the site NAME until a logo is uploaded, then show only the logo
   (never both), and render the logo larger.
   ========================================================================= */
.wp-custom-logo .pc-site-title { display: none !important; }

.pc-header .wp-block-site-logo img {
	max-height: 60px;
	width: auto;
	height: auto;
}
@media (max-width: 781px) {
	.pc-header .wp-block-site-logo img { max-height: 46px; }
}
