/*
Theme Name: Magician Writes
Theme URI: https://abeshjha.com.np
Description: Dark felt theme for Magician Writes: poker math, money math and words. Child of Twenty Twenty-Five.
Author: Magician
Template: twentytwentyfive
Version: 1.0.1
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: magician-writes
*/

/* Felt table background */
body {
	background:
		radial-gradient(ellipse 90% 60% at 50% 0%, rgba(61, 220, 132, 0.10), transparent 70%),
		radial-gradient(ellipse 120% 80% at 50% 0%, #0c3b2b 0%, #03130d 70%) fixed;
	background-color: #03130d;
}

::selection { background: #f7c948; color: #03130d; }

/* Header */
.mw-header { border-bottom: 1px solid rgba(247, 201, 72, 0.18); backdrop-filter: blur(6px); }
.mw-header .wp-block-site-logo img { border-radius: 50%; border: 2px solid #f7c948; }
.mw-header .wp-block-site-title a { text-decoration: none; letter-spacing: -0.01em; }
.mw-header .wp-block-navigation a { text-decoration: none; }
.mw-header .wp-block-navigation a:hover { color: #f7c948; }

/* Eyebrow / badge */
.mw-badge {
	display: inline-block;
	padding: 0.35em 0.9em;
	border-radius: 999px;
	background: #3ddc84;
	color: #03130d !important;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.72rem !important;
}
.mw-badge.is-gold { background: #f7c948; }
.mw-badge.has-text-align-center { display: table; margin-left: auto !important; margin-right: auto !important; }
.mw-badge.is-red { background: #ff4d5e; color: #fff !important; }

/* Hero */
.mw-hero { position: relative; overflow: hidden; }
.mw-hero .mw-suits {
	position: absolute; inset: auto -2rem -3rem auto;
	font-size: clamp(8rem, 22vw, 16rem); line-height: 1; opacity: 0.07; color: #f6f2e8;
	pointer-events: none; user-select: none; margin: 0;
}
.mw-hero h1 em { font-style: normal; color: #f7c948; }

/* Cards */
.mw-card {
	height: 100%;
	background: linear-gradient(160deg, rgba(12, 59, 43, 0.85), rgba(3, 19, 13, 0.9));
	border: 1px solid rgba(247, 201, 72, 0.16);
	border-radius: 18px;
	overflow: hidden;
	transition: transform 0.2s ease, border-color 0.2s ease;
}
.mw-card:hover { transform: translateY(-3px); border-color: rgba(247, 201, 72, 0.55); }
.mw-card .wp-block-post-featured-image { margin: 0; }
.mw-card .wp-block-post-featured-image img { display: block; }
.mw-card .wp-block-post-title a { text-decoration: none; }
.mw-card .wp-block-post-title a:hover { color: #f7c948; }
.mw-card .wp-block-post-terms a { text-decoration: none; color: #3ddc84; }
.wp-block-post-template.is-layout-grid > li { height: 100%; }

/* Section headings */
.mw-section-head { border-bottom: 1px solid rgba(247, 201, 72, 0.18); padding-bottom: 0.6rem; }
.mw-section-head a { text-decoration: none; }

/* Panels (courses box, recap boxes) */
.mw-panel {
	background: rgba(3, 19, 13, 0.65);
	border: 1px solid rgba(247, 201, 72, 0.35);
	border-radius: 20px;
}

/* Reel video: vertical, centred, never huge */
.wp-block-video.mw-reel { max-width: 400px; margin-left: auto !important; margin-right: auto !important; }
.wp-block-video.mw-reel video { border-radius: 18px; border: 1px solid rgba(247, 201, 72, 0.35); aspect-ratio: 9 / 16; background: #03130d; }

/* Maths recap lists */
.mw-recap { list-style: none; padding-left: 0; }
.mw-recap li { padding: 0.55em 0 0.55em 1.6em; border-bottom: 1px dashed rgba(159, 179, 170, 0.25); position: relative; }
.mw-recap li::before { content: "♠"; position: absolute; left: 0; color: #f7c948; }

/* Tables (outs chart) */
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table th { background: rgba(247, 201, 72, 0.12); color: #f7c948; font-weight: 800; }
.wp-block-table td, .wp-block-table th { border: 1px solid rgba(159, 179, 170, 0.25); padding: 0.6em 0.8em; }

/* Writing posts read in a serif */
body.mw-writing .wp-block-post-content { font-family: var(--wp--preset--font-family--lora); font-size: 1.15rem; line-height: 1.85; }
body.mw-writing .wp-block-post-content p { margin-block: 1.1em; }

/* Footer */
.mw-footer { border-top: 1px solid rgba(247, 201, 72, 0.18); }
.mw-footer a { text-decoration: none; }
.mw-footer a:hover { color: #f7c948; }

@media (max-width: 600px) {
	.mw-hero .mw-suits { font-size: 7rem; right: -1rem; bottom: -1.5rem; }
}

/* Two reels per row on phones */
@media (max-width: 600px) {
	.mw-reels-grid .wp-block-post-title { font-size: 0.9rem !important; }
}
