/* ============================================================
   Royal Rummy – Frontend Styles
   Loaded by TPM_Assets alongside Tailwind CDN (Play CDN).
   ============================================================ */

:root {
	--primary-gold: linear-gradient( 135deg, #fceabb 0%, #f8b500 50%, #fceabb 100% );
	--glass-bg:     rgba( 255, 255, 255, 0.05 );
	--dark-bg:      #0f0c29;
	--main-gradient: linear-gradient( to right, #0f0c29, #302b63, #24243e );
}

/* Base reset for the Royal Rummy wrapper */
.rr-wrap *,
.rr-single-wrap * {
	box-sizing: border-box;
}

.rr-wrap,
.rr-single-wrap {
	font-family: 'Poppins', sans-serif;
	background: var( --main-gradient );
	color: #fff;
	overflow-x: hidden;
	scroll-behavior: smooth;
}

/* ── Glassmorphism ── */
.rr-wrap .glass-card,
.rr-single-wrap .glass-card {
	background: rgba( 255, 255, 255, 0.03 );
	backdrop-filter: blur( 20px );
	border: 1px solid rgba( 255, 255, 255, 0.1 );
	border-radius: 24px;
	box-shadow: 0 15px 35px rgba( 0, 0, 0, 0.5 );
}

/* ── Glossy gold button ── */
.rr-wrap .glossy-button,
.rr-single-wrap .glossy-button {
	background: var( --primary-gold );
	color: #000;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.4s cubic-bezier( 0.175, 0.885, 0.32, 1.275 );
	box-shadow: 0 5px 15px rgba( 248, 181, 0, 0.3 );
	border: none;
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px !important;
	cursor: pointer;
	text-decoration: none;
}

.rr-wrap .glossy-button:hover,
.rr-single-wrap .glossy-button:hover {
	transform: translateY( -5px );
	box-shadow: 0 10px 25px rgba( 248, 181, 0, 0.5 );
	filter: brightness( 1.1 );
}

.rr-wrap .glossy-button::after,
.rr-single-wrap .glossy-button::after {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: rgba( 255, 255, 255, 0.3 );
	transform: rotate( 45deg );
	transition: 0.6s;
}

.rr-wrap .glossy-button:hover::after,
.rr-single-wrap .glossy-button:hover::after {
	left: 120%;
}

/* ── Nav link underline ── */
.rr-wrap .nav-link,
.rr-single-wrap .nav-link {
	position: relative;
	transition: 0.3s;
}

.rr-wrap .nav-link::after,
.rr-single-wrap .nav-link::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background: var( --primary-gold );
	transition: 0.3s;
}

.rr-wrap .nav-link:hover::after,
.rr-single-wrap .nav-link:hover::after {
	width: 100%;
}

/* ── Game cards hover ── */
.rr-wrap .game-card,
.rr-single-wrap .game-card {
	transition: all 0.4s ease;
}

.rr-wrap .game-card:hover,
.rr-single-wrap .game-card:hover {
	transform: scale( 1.03 );
	background: rgba( 255, 255, 255, 0.08 );
	border-color: rgba( 248, 181, 0, 0.4 );
}

/* ── Bonus highlight text ── */
.rr-wrap .bonus-highlight,
.rr-single-wrap .bonus-highlight {
	background: var( --primary-gold );
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	font-weight: 800;
}

/* ── Step numbers ── */
.rr-wrap .step-number,
.rr-single-wrap .step-number {
	background: var( --primary-gold );
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	color: #000;
	font-weight: 800;
	margin-right: 15px;
	flex-shrink: 0;
	box-shadow: 0 4px 10px rgba( 248, 181, 0, 0.3 );
}

/* ── Mobile menu overlay ── */
.rr-wrap #rr-mobile-menu,
.rr-single-wrap #rr-mobile-menu {
	transition: all 0.4s ease-in-out;
	transform: translateX( 100% );
	opacity: 0;
	visibility: hidden;
	display: flex;
}

.rr-wrap #rr-mobile-menu.active,
.rr-single-wrap #rr-mobile-menu.active {
	transform: translateX( 0 );
	opacity: 1;
	visibility: visible;
}

/* ── Floating bottom button (mobile) ── */
.rr-wrap .rr-ftr-btn,
.rr-single-wrap .rr-ftr-btn {
	width: fit-content;
	left: unset !important;
	padding: 0 !important;
	right: 16px !important;
}

.rr-wrap header,
.rr-single-wrap header,
.rr-wrap .hdr-inside,
.rr-single-wrap .hdr-inside {
	padding: 10px 16px !important;
}

/* Spacing for footer and content sections */
.rr-wrap #rr-apps,
.rr-wrap #rr-guide,
.rr-wrap #rr-how-to-play,
.rr-wrap footer,
.rr-single-wrap #rr-apps,
.rr-single-wrap #rr-guide,
.rr-single-wrap #rr-how-to-play,
.rr-single-wrap footer {
	padding: 40px 16px;
}

/* ── Scrollbar ── */
.rr-wrap ::-webkit-scrollbar,
.rr-single-wrap ::-webkit-scrollbar {
	width: 8px;
}

.rr-wrap ::-webkit-scrollbar-track,
.rr-single-wrap ::-webkit-scrollbar-track {
	background: #0f0c29;
}

.rr-wrap ::-webkit-scrollbar-thumb,
.rr-single-wrap ::-webkit-scrollbar-thumb {
	background: var( --primary-gold );
	border-radius: 10px;
}

/* ── Blog posts grid (WP dynamic section) ── */
.rr-wrap .rr-blog-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 260px, 1fr ) );
	gap: 28px;
}

.rr-wrap .rr-post-card {
	padding: 20px;
}

.rr-wrap .rr-post-img {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 14px;
	margin-bottom: 16px;
	background: rgba( 255, 255, 255, 0.05 );
	display: flex;
	align-items: center;
	justify-content: center;
}

.rr-wrap .rr-post-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rr-wrap .rr-post-img.no-thumb i {
	font-size: 3rem;
	color: rgba( 248, 181, 0, 0.4 );
}

.rr-wrap .rr-post-title {
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 14px;
	line-height: 1.4;
}

.rr-wrap .rr-blog-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 20px;
	color: rgba( 255, 255, 255, 0.5 );
}

.rr-wrap .rr-blog-empty i {
	font-size: 3rem;
	margin-bottom: 16px;
	display: block;
}

/* ── Single post – hero ── */
.rr-single-wrap .rr-sp-hero {
	position: relative;
	min-height: 60vh;
	display: flex;
	align-items: flex-end;
	padding-bottom: 60px;
	padding-top: 120px;
	overflow: hidden;
}

.rr-single-wrap .rr-sp-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	filter: brightness( 0.35 );
}

.rr-single-wrap .rr-sp-hero-inner {
	position: relative;
	z-index: 2;
	max-width: 860px;
	margin: 0 auto;
	padding: 0 24px;
	width: 100%;
}

.rr-single-wrap .rr-sp-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: rgba( 248, 181, 0, 0.85 );
	font-size: 0.85rem;
	margin-bottom: 24px;
	text-decoration: none;
	transition: 0.2s;
}

.rr-single-wrap .rr-sp-back:hover {
	color: #f8b500;
}

.rr-single-wrap .rr-sp-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba( 248, 181, 0, 0.12 );
	border: 1px solid rgba( 248, 181, 0, 0.3 );
	color: #f8b500;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	padding: 6px 14px;
	border-radius: 50px;
	margin-bottom: 20px;
}

.rr-single-wrap .rr-sp-title {
	font-size: clamp( 1.8rem, 4vw, 3rem );
	font-weight: 900;
	line-height: 1.2;
	background: var( --primary-gold );
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 16px;
}

.rr-single-wrap .rr-sp-lead {
	font-size: 1.05rem;
	color: rgba( 255, 255, 255, 0.7 );
	line-height: 1.7;
	margin-bottom: 28px;
}

/* ── Single – content area ── */
.rr-single-wrap .rr-sp-content {
	max-width: 860px;
	margin: 0 auto;
	padding: 48px 24px;
}

.rr-single-wrap .rr-sp-content p,
.rr-single-wrap .rr-sp-content li {
	color: rgba( 255, 255, 255, 0.8 );
	font-size: 1.05rem;
	line-height: 1.8;
	margin-bottom: 16px;
}

.rr-single-wrap .rr-sp-content h2,
.rr-single-wrap .rr-sp-content h3,
.rr-single-wrap .rr-sp-content h4 {
	color: #f8b500;
	margin-top: 32px;
	margin-bottom: 12px;
}

/* ── Single – CTA ── */
.rr-single-wrap .rr-sp-cta {
	background: rgba( 248, 181, 0, 0.06 );
	border-top: 1px solid rgba( 248, 181, 0, 0.2 );
	border-bottom: 1px solid rgba( 248, 181, 0, 0.2 );
	padding: 64px 24px;
	text-align: center;
}

.rr-single-wrap .rr-sp-cta h2 {
	font-size: clamp( 1.6rem, 3vw, 2.4rem );
	font-weight: 900;
	background: var( --primary-gold );
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 12px;
}

.rr-single-wrap .rr-sp-cta p {
	color: rgba( 255, 255, 255, 0.6 );
	margin-bottom: 32px;
}

/* ── Responsive ── */
@media screen and ( min-width: 1241px ) and ( max-width: 1500px ) {
	.rr-wrap .container { max-width: 1200px; }
	.rr-wrap .hero-text { font-size: 3.5rem; }
}

@media screen and ( min-width: 1025px ) and ( max-width: 1240px ) {
	.rr-wrap .container { max-width: 1000px; }
	.rr-wrap .hero-text { font-size: 3rem; }
}

@media screen and ( min-width: 992px ) and ( max-width: 1024px ) {
	.rr-wrap .hero-text { font-size: 2.8rem; }
}

@media screen and ( min-width: 768px ) and ( max-width: 991px ) {
	.rr-wrap .hero-section { flex-direction: column; text-align: center; }
	.rr-wrap .hero-content { margin-bottom: 3rem; }
	.rr-wrap .game-grid { grid-template-columns: repeat( 2, 1fr ); gap: 20px; }
	.rr-wrap .nav-menu { display: none; }
}

@media ( max-width: 767px ) {
	.rr-wrap .hero-text { font-size: 2.2rem; }
	.rr-wrap .glass-card { padding: 1.5rem; }
	.rr-wrap .game-grid { grid-template-columns: repeat( 2, 1fr ) !important; gap: 12px !important; }
	.rr-wrap .game-card { padding: 12px !important; border-radius: 16px !important; }
	.rr-wrap .game-card h3 { font-size: 13px !important; margin-bottom: 12px !important; }
	.rr-wrap .game-card .glossy-button { padding: 8px 0 !important; font-size: 11px !important; border-radius: 8px !important; }
	.rr-wrap .nav-menu { display: none; }
	.rr-wrap .desktop-logo-text { font-size: 1.2rem; }
}

@media screen and ( max-width: 575px ) {
	.rr-wrap .hero-text { font-size: 1.8rem; }
	.rr-wrap .glossy-button { width: 100%; }
	.rr-wrap .step-number { width: 30px; height: 30px; font-size: 0.9rem; }
	.rr-wrap .game-grid { gap: 10px !important; }
	.rr-wrap .game-card { padding: 10px !important; }
}

@media screen and ( max-width: 480px ) {
	.rr-wrap .hero-text { font-size: 1.5rem; }
	.rr-wrap .section-title { font-size: 1.5rem; }
	.rr-wrap .footer-grid { grid-template-columns: 1fr; text-align: center; }
	.rr-wrap .footer-socials { justify-content: center; }
	.rr-wrap .game-grid { gap: 8px !important; }
	.rr-wrap .game-card h3 { font-size: 15px !important; display: flex; align-items: center; justify-content: center; }
}
