/*
Theme Name: PokerExploits
Description: Custom poker analysis theme
Author: Tudor Alexandru
Version: 1.0.0
Text Domain: pokerexploits
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/* =============================================================================
   TABLE OF CONTENTS

   1.  Design Tokens      - colors, fonts, spacing, radii, shadows
   2.  Reset              - box model, margins, base element defaults
   3.  Base Typography     - h1-h6, p, a, lists, blockquote, hr, code
   4.  Layout Primitives   - .container, .site-main, section spacing
   5.  Generic Entry       - fallback page/post wrapper (index.php) + pagination
   6.  Buttons             - .btn and variants
   7.  Form Controls       - inputs, selects, labels
   8.  Utilities           - screen-reader text, skip link, misc helpers
   ========================================================================== */


/* =============================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
	/* --- Color: surfaces (dark, blueish-navy) --- */
	--color-bg: #070a12;             /* page background */
	--color-bg-raised: #0c1120;      /* sections that sit slightly above the page bg */
	--color-surface: #121728;        /* cards, panels, header */
	--color-surface-raised: #1a2138; /* inputs, hovered rows, nested surfaces */
	--color-border: #262e48;
	--color-border-strong: #37426a;

	/* --- Color: text --- */
	--color-text: #eef1f8;
	--color-text-muted: #98a3c2;
	--color-text-faint: #626d90;

	/* --- Color: brand (main / secondary / accent) --- */
	--color-main: #3b6fed;           /* primary blue - links, primary buttons, focus */
	--color-main-hover: #5c8bff;
	--color-secondary: #06aed5;      /* cyan - secondary actions, highlights */
	--color-secondary-hover: #3fc4e6;
	--color-accent: #f2b134;         /* poker-chip gold - active states, callouts */
	--color-accent-hover: #f7c565;

	/* --- Color: semantic --- */
	--color-success: #22c55e;
	--color-danger: #ef4444;

	/* --- Color: card suits (tuned for dark backgrounds) --- */
	--suit-spades: #dbe2f1;
	--suit-hearts: #f0596a;
	--suit-diamonds: #5b8def;
	--suit-clubs: #3ecf72;

	/* --- Typography --- */
	--font-heading: 'Rajdhani', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--font-size-xs: 0.75rem;    /* 12px - meta, labels */
	--font-size-sm: 0.875rem;   /* 14px - secondary text */
	--font-size-base: 1rem;     /* 16px - body */
	--font-size-md: 1.125rem;   /* 18px */
	--font-size-lg: 1.375rem;   /* 22px - h5/h4 */
	--font-size-xl: 1.75rem;    /* 28px - h3 */
	--font-size-2xl: 2.25rem;   /* 36px - h2 */
	--font-size-3xl: 2.75rem;   /* 44px - h1 */

	--line-height-tight: 1.2;
	--line-height-base: 1.6;

	/* --- Spacing scale --- */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.5rem;
	--space-6: 2rem;
	--space-7: 3rem;
	--space-8: 4rem;

	/* --- Radii & shadows --- */
	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 16px;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
	--shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);

	/* --- Layout --- */
	--container-width: 1280px;
	--container-padding: 20px;
}

/* =============================================================================
   2. RESET
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* Reserves the scrollbar's width whether or not it's actually showing, so
	   content doesn't shift sideways when a shorter page (e.g. per_page=10)
	   grows past the viewport - like expanding the archive-hand "More
	   Filters" accordion - and the scrollbar pops in. */
	scrollbar-gutter: stable;
}

body {
	background-color: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--font-size-base);
	line-height: var(--line-height-base);
}

img {
	max-width: 100%;
	display: block;
}

ul,
ol {
	list-style: none;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

/* =============================================================================
   3. BASE TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: var(--line-height-tight);
	letter-spacing: 0.01em;
	color: var(--color-text);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-md); font-weight: 600; }
h6 {
	font-size: var(--font-size-sm);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-text-muted);
}

p {
	color: var(--color-text-muted);
}

p + p {
	margin-top: var(--space-4);
}

a {
	color: var(--color-main);
	text-decoration: none;
	transition: color 0.15s ease-in-out;
}

a:hover,
a:focus {
	color: var(--color-main-hover);
}

strong, b {
	color: var(--color-text);
	font-weight: 600;
}

blockquote {
	border-left: 3px solid var(--color-secondary);
	padding-left: var(--space-4);
	color: var(--color-text-muted);
	font-style: italic;
}

hr {
	border: 0;
	border-top: 1px solid var(--color-border);
	margin: var(--space-6) 0;
}

code, pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	background: var(--color-surface-raised);
	border-radius: var(--radius-sm);
}

code {
	padding: 0.15em 0.4em;
	font-size: 0.9em;
}

pre {
	padding: var(--space-4);
	overflow-x: auto;
}

/* =============================================================================
   4. LAYOUT PRIMITIVES
   ========================================================================== */

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

.site-main {
	display: block;
	min-height: 60vh;
}

/* =============================================================================
   5. GENERIC ENTRY
   Fallback layout used by index.php for any page/post that doesn't have a
   dedicated template (regular Pages, blog posts, search results, etc.).
   Custom templates (archive-hand.php, single-hand.php) define their own
   layout and don't rely on these classes.
   ========================================================================== */

.entry {
	padding: var(--space-6) 0 var(--space-8);
}

.entry__header {
	max-width: 760px;
	margin: 0 auto var(--space-5);
}

.entry__title {
	font-size: var(--font-size-2xl);
}

.entry__content {
	max-width: 760px;
	margin: 0 auto;
	color: var(--color-text-muted);
}

.entry__content > * + * {
	margin-top: var(--space-4);
}

.entry__content h2,
.entry__content h3,
.entry__content h4 {
	margin-top: var(--space-6);
	margin-bottom: var(--space-1);
}

.entry__content ul,
.entry__content ol {
	list-style: disc;
	padding-left: 1.4em;
}

.entry__content ol {
	list-style: decimal;
}

.entry__content li + li {
	margin-top: var(--space-2);
}

.entry__content a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.entry__content img {
	border-radius: var(--radius-md);
}

/* --- Pagination (the_posts_pagination default markup) --- */

.pagination {
	display: flex;
	justify-content: center;
	gap: var(--space-2);
	margin-top: var(--space-7);
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 var(--space-2);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-sm);
	background-color: var(--color-surface-raised);
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
	font-weight: 600;
}

.pagination a.page-numbers:hover {
	border-color: var(--color-secondary);
	color: var(--color-text);
}

.pagination .page-numbers.current {
	background-color: var(--color-main);
	border-color: var(--color-main);
	color: #fff;
}

.pagination .page-numbers.dots {
	border-color: transparent;
	background-color: transparent;
}

/* =============================================================================
   6. BUTTONS
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	padding: 0.6em 1.3em;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	font-family: var(--font-body);
	font-size: var(--font-size-sm);
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, color 0.15s ease-in-out, transform 0.1s ease-in-out;
}

.btn:active {
	transform: translateY(1px);
}

.btn--primary {
	background-color: var(--color-main);
	color: #fff;
}

.btn--primary:hover,
.btn--primary:focus {
	background-color: var(--color-main-hover);
	color: #fff;
}

.btn--accent {
	background-color: var(--color-accent);
	color: #1a1200;
}

.btn--accent:hover,
.btn--accent:focus {
	background-color: var(--color-accent-hover);
	color: #1a1200;
}

.btn--ghost {
	background-color: transparent;
	border-color: var(--color-border-strong);
	color: var(--color-text-muted);
}

.btn--ghost:hover,
.btn--ghost:focus {
	border-color: var(--color-secondary);
	color: var(--color-text);
}

/* =============================================================================
   7. FORM CONTROLS
   ========================================================================== */

input,
select,
textarea {
	font-family: var(--font-body);
	font-size: var(--font-size-sm);
	color: var(--color-text);
	background-color: var(--color-surface-raised);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-sm);
	padding: 0.6em 0.8em;
}

input::placeholder,
textarea::placeholder {
	color: var(--color-text-faint);
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--color-secondary);
	box-shadow: 0 0 0 3px rgba(6, 174, 213, 0.2);
}

label {
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
	font-weight: 600;
}

/* =============================================================================
   8. UTILITIES
   ========================================================================== */

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link.screen-reader-text:focus {
	position: fixed;
	top: 0;
	left: 0;
	width: auto;
	height: auto;
	clip: auto;
	z-index: 1000;
	padding: 12px 16px;
	background-color: var(--color-accent);
	color: var(--color-bg);
	font-weight: 600;
}
