/**
 * Custom styles for Prism.js
 *
 * @package Aistros
 * @since 1.0.0
	========================================================================
   Prism.js Code Highlighting Styles (Removed duplicates, managed in style.css and buttons.css)
   ======================================================================== */
/* Line Numbers - managed in style.css */
/* Copy Button - managed in buttons.css */

/* ========================================================================
   General Typography & Content Styles
   ======================================================================== */

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

/* Main content area */
.site-main,
.entry-content,
.content-area {
	color: var(--text-primary);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
	color: var(--primary-color);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-heading);
	margin-top: var(--spacing-lg); /* Adjusted from 1.5em (24px) to 30px */
	margin-bottom: var(--spacing-xs); /* Adjusted from 0.8em (12.8px) to 8px */
}

h1 { font-size: 2.5rem; } /* 40px */
h2 { font-size: 2rem; }   /* 32px */
h3 { font-size: 1.5rem; }  /* 24px */
h4 { font-size: 1.25rem; } /* 20px */
h5 { font-size: 1.1rem; }  /* ~18px */
h6 { font-size: 1rem; }    /* 16px */

/* Paragraphs */
p {
	margin-bottom: var(--spacing-base-rem);
}

/* Lists */
ul, ol {
	margin-bottom: var(--spacing-base-rem);
	padding-left: var(--spacing-lg); /* Adjusted from 1.5rem (24px) to 30px */
}

li {
	margin-bottom: var(--spacing-xs); /* Adjusted from 0.5rem (8px) to 8px */
}

/* Blockquotes */
blockquote {
	border-left: 4px solid var(--info-color);
	padding: var(--spacing-base-rem) var(--spacing-md); /* Adjusted from 1rem 1.5rem */
	margin: var(--spacing-lg) 0; /* Adjusted from 1.5rem 0 */
	background-color: color-mix(in srgb, var(--info-color) 10%, transparent); /* Lighter version of info color */
	color: var(--text-primary); /* Adjusted from #4b5563 */
	font-style: italic;
}

blockquote p {
	margin: 0;
}

/* Code blocks (inline) */
code {
	background-color: var(--bg-light); /* Adjusted from #f3f4f6 */
	color: var(--danger-color);
	padding: 0.2em 0.4em;
	border-radius: var(--aistros-radius-sm); /* Adjusted from 3px */
	font-family: var(--font-mono);
	font-size: 0.9em;
}

/* Code blocks (preformatted) */
pre {
	background-color: var(--code-block-bg); /* Adjusted from #1f2937 */
	color: var(--code-block-text); /* Adjusted from #e5e7eb */
	padding: var(--spacing-base-rem); /* Adjusted from 1rem */
	border-radius: var(--aistros-radius-md); /* Adjusted from 6px */
	overflow-x: auto;
	margin: var(--spacing-lg) 0; /* Adjusted from 1.5rem 0 */
	font-size: 0.9em;
	line-height: var(--line-height-base);
}

pre code {
	background-color: transparent;
	color: inherit;
	padding: 0;
}

/* ========================================================================
   Images and Media
   ======================================================================== */

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

figure {
	margin: var(--spacing-lg) 0; /* Adjusted from 1.5rem 0 */
}

figcaption {
	color: var(--text-secondary); /* Adjusted from #6b7280 */
	font-size: 0.9em;
	margin-top: var(--spacing-xs); /* Adjusted from 0.5rem */
	text-align: center;
	font-style: italic;
}

/* ========================================================================
   Tables
   ======================================================================== */

table {
	width: 100%;
	border-collapse: collapse;
	margin: var(--spacing-lg) 0; /* Adjusted from 1.5rem 0 */
}

thead {
	background-color: var(--bg-light); /* Adjusted from #f3f4f6 */
}

th, td {
	padding: var(--spacing-xs); /* Adjusted from 0.75rem (12px) to 8px */
	text-align: left;
	border-bottom: 1px solid var(--border-color); /* Adjusted from #e5e7eb */
}

th {
	font-weight: var(--font-weight-semibold); /* Adjusted from 600 */
	color: var(--text-primary); /* Adjusted from #1f2937 */
}

tbody tr:hover {
	background-color: color-mix(in srgb, var(--bg-light) 50%, transparent); /* Adjusted from #f9fafb */
}

/* ========================================================================
   Form Elements
   ======================================================================== */

input,
textarea,
select {
	font-family: inherit;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
	padding: var(--spacing-xs) var(--spacing-sm); /* Adjusted from 0.75rem 1rem (12px 16px) */
	border: 1px solid var(--border-color); /* Adjusted from #d1d5db */
	border-radius: var(--aistros-radius-md); /* Adjusted from 6px */
	font-size: var(--font-size-base); /* Adjusted from 1rem */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--primary-color);
}

@import url("custom-styles-light.css");
@import url("custom-styles-dark.css");