/*
Theme Name: Zyloka Studio
Theme URI: https://studio.zyloka.com
Author: Carlos De La Rosa
Author URI: https://zyloka.com
Description: Dark block theme matching the Prompt Studio Suite aesthetic — deep black base, indigo-to-violet accents, and the eight module colors as a working palette. Built for Zyloka (reviews, affiliate content, travel guides) with WooCommerce support.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zyloka-studio
Tags: block-patterns, full-site-editing, dark, blog, e-commerce
*/

/* ───────────────────────────────────────────────
   Zyloka Studio — signature styles
   Everything tokenized lives in theme.json;
   this file only holds what theme.json can't do.
   ─────────────────────────────────────────────── */

/* Selection + focus ring in Studio indigo */
::selection {
	background: rgba(99, 102, 241, 0.35);
	color: #ffffff;
}
:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Dark scrollbar (same as the Studio tools) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--wp--preset--color--surface); }
::-webkit-scrollbar-thumb { background: var(--wp--preset--color--border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a48; }

/* ───────────────────────────────────────────────
   .studio-card — the signature element.
   Apply this class to any Group block to get the
   dashboard-style module card: top accent bar,
   panel background, hover lift + glow border.
   Combine with .accent-* to pick the bar color.
   ─────────────────────────────────────────────── */
.studio-card {
	--card-accent: var(--wp--preset--color--primary);
	position: relative;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px;
	padding: 24px !important;
	overflow: hidden;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.studio-card::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: var(--card-accent);
	opacity: 0.75;
	transition: opacity 0.2s ease;
}
.studio-card:hover {
	transform: translateY(-3px);
	border-color: var(--card-accent);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.studio-card:hover::before { opacity: 1; }

/* Accent modifiers — the 8 module colors + brand */
.accent-cyan   { --card-accent: var(--wp--preset--color--accent-cyan); }
.accent-orange { --card-accent: var(--wp--preset--color--accent-orange); }
.accent-green  { --card-accent: var(--wp--preset--color--accent-green); }
.accent-purple { --card-accent: var(--wp--preset--color--accent-purple); }
.accent-amber  { --card-accent: var(--wp--preset--color--accent-amber); }
.accent-pink   { --card-accent: var(--wp--preset--color--accent-pink); }
.accent-teal   { --card-accent: var(--wp--preset--color--accent-teal); }
.accent-rose   { --card-accent: var(--wp--preset--color--accent-rose); }
.accent-violet { --card-accent: var(--wp--preset--color--secondary); }

/* Gradient text helper (like "AI prompts" in the dashboard hero) */
.studio-gradient-text {
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* Tag/badge pill, like module tags in the dashboard */
.studio-tag {
	display: inline-block;
	padding: 3px 9px;
	background: var(--wp--preset--color--surface-2);
	border-radius: 4px;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast-dim);
}

/* Post list cards (query loop) inherit subtle separation */
.wp-block-post {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-bottom: var(--wp--preset--spacing--40);
}
.wp-block-post:last-child { border-bottom: none; }

/* Images get soft rounding by default */
.wp-block-post-featured-image img,
.wp-block-image img {
	border-radius: 10px;
}

/* WooCommerce: keep cards on-theme */
.woocommerce ul.products li.product,
.wc-block-grid__product {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px;
	padding: 16px;
	transition: transform 0.25s ease, border-color 0.25s ease;
}
.woocommerce ul.products li.product:hover,
.wc-block-grid__product:hover {
	transform: translateY(-3px);
	border-color: var(--wp--preset--color--primary);
}
.woocommerce span.onsale {
	background: var(--wp--preset--color--accent-pink);
	border-radius: 6px;
}
.woocommerce .price,
.wc-block-grid__product-price {
	color: var(--wp--preset--color--accent-green) !important;
	font-weight: 700;
}

/* Reduced motion: disable lifts */
@media (prefers-reduced-motion: reduce) {
	.studio-card,
	.woocommerce ul.products li.product,
	.wc-block-grid__product {
		transition: none;
	}
	.studio-card:hover { transform: none; }
}
