/*
Theme Name:        JITAI Theme
Theme URI:         https://jitai-gaming.com/
Author:            JITAI
Description:       Presentation theme for the JITAI slot cabinet showcase site. All content is managed by the jitai-products plugin; this theme only renders.
Version:           0.1.0
Requires at least: 6.6
Requires PHP:      8.0
License:           GPL-2.0-or-later
Text Domain:       jitai-theme
*/

/*
 * The homepage sections, product pages, header and footer are rendered with
 * the static template's exact Tailwind markup (ported into theme block
 * overrides) and styled entirely by the template CSS stack. This file only
 * carries design tokens plus styles for surfaces the template does NOT cover:
 * legal pages, the blog/post lists, generic pages and 404.
 *
 * It must NOT restyle .jitai-hero/.jitai-feature/... — those classes belong to
 * the plugin's fallback templates, and overriding them here would fight the
 * Tailwind utilities on the ported markup.
 */

:root {
	--jitai-blue: #1b365d;
	--jitai-blue-dark: #0f2a44;
	--jitai-orange: #ff6b35;
	--jitai-gray: #4a5568;
	--jitai-light: #f7fafc;
	--jitai-border: rgba(15, 42, 68, 0.12);
	--jitai-radius: 10px;
	--jitai-container: 1100px;
	--jitai-font: "Inter", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* Product spotlights (home) — stateful tab look the Tailwind utilities can't
 * express on their own. These are theme-owned classes (not plugin fallback
 * classes), so they don't fight the ported Tailwind markup. */
.jitai-spotlight--light .jitai-spot-tab { color: var(--jitai-gray); }
.jitai-spotlight--dark .jitai-spot-tab { color: #c7d2e5; }
.jitai-spot-tab:hover { background: rgba(255, 107, 53, 0.12); }
.jitai-spot-tab.is-active { background: var(--jitai-orange); color: #fff; box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3); }

/* Footer link columns (Cabinets/Company/Support) — plain left-aligned text
 * links, not the boxed model-card style. Higher specificity than the template
 * CSS so the mobile-centered footer-link rule never leaks onto desktop. */
.telescro-footer-grid .telescro-footer-links { max-width: none; margin: 0; }
.telescro-footer-grid .telescro-footer-link { text-align: left; padding: 0.3rem 0; }
.telescro-footer-grid .telescro-footer-link:hover { color: var(--jitai-orange); transform: translateX(2px); }

/* Generic page / legal / blog surfaces only -------------------------------- */

.jitai-container {
	max-width: var(--jitai-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.jitai-page,
.jitai-blog {
	padding-top: 2.5rem;
	padding-bottom: 3rem;
	font-family: var(--jitai-font);
	color: var(--jitai-blue);
	line-height: 1.65;
}

.jitai-page h1,
.jitai-blog h1 { color: var(--jitai-blue); }

.jitai-btn {
	display: inline-block;
	padding: 0.7rem 1.5rem;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	transition: filter 0.15s, transform 0.15s;
}
.jitai-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.jitai-btn-primary { background: var(--jitai-orange); color: #fff; }
.jitai-btn-primary:hover { color: #fff; }
.jitai-btn-secondary { background: var(--jitai-blue); color: #fff; }
.jitai-btn-secondary:hover { color: #fff; }

/* Blog / post lists */
.jitai-entry { max-width: 760px; margin: 0 auto; color: var(--jitai-blue); line-height: 1.7; }
.jitai-entry-meta { color: var(--jitai-gray); font-size: 0.9rem; }
.jitai-entry-content { font-family: var(--jitai-font); }
.jitai-entry-content img { border-radius: var(--jitai-radius); }
.jitai-post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; list-style: none; padding: 0; }
.jitai-post-card { border: 1px solid var(--jitai-border); border-radius: var(--jitai-radius); overflow: hidden; background: #fff; }
.jitai-post-card img { width: 100%; height: auto; display: block; }
.jitai-post-card-body { padding: 1.1rem; }
.jitai-post-card h2 { font-size: 1.15rem; margin: 0.3rem 0; color: var(--jitai-blue); }
.jitai-post-card a { text-decoration: none; color: var(--jitai-blue); }
.jitai-post-card a:hover { color: var(--jitai-orange); }
.jitai-post-inquiry { max-width: 760px; margin: 2.5rem auto 0; }

/* Legal pages (hard-coded semantic HTML) */
.jitai-legal {
	max-width: 820px;
	padding-top: 2.5rem;
	padding-bottom: 3rem;
	font-family: var(--jitai-font);
	color: var(--jitai-gray);
	line-height: 1.7;
}
.jitai-legal h1 { color: var(--jitai-blue); border-bottom: 3px solid var(--jitai-orange); padding-bottom: 0.75rem; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.jitai-legal h2 { color: var(--jitai-blue); margin-top: 2.25rem; font-size: 1.4rem; }
.jitai-legal h3 { color: var(--jitai-blue); margin-top: 1.5rem; }
.jitai-legal a { color: var(--jitai-orange); }
.jitai-legal table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; }
.jitai-legal th, .jitai-legal td { border: 1px solid var(--jitai-border); padding: 0.5rem 0.7rem; text-align: left; font-size: 0.92rem; }
.jitai-legal .legal-notice {
	background: rgba(255, 107, 53, 0.08);
	border-left: 4px solid var(--jitai-orange);
	border-radius: 0 8px 8px 0;
	padding: 1rem 1.25rem;
	margin: 1.5rem 0;
}
