/**
 * Theme Name: Developry Plugins Theme
 * Theme URI: https://www.developry.com
 * Author: Krasen Slavov
 * Author URI: https://krasenslavov.com
 * Description: A modern, fully-featured WordPress theme with light/dark mode, multi-site color schema support, EDD integration, and CF7 styling. Built with performance and SEO in mind.
 * Version: 1.0.6
 * Requires at least: 6.0
 * Tested up to: 6.7
 * 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: developry-plugins-theme
 * Tags: blog, e-commerce, custom-colors, featured-images, flexible-header, custom-menu, sticky-post, threaded-comments, translation-ready, dark-mode, accessibility-ready
 */

/**
 * CSS Variables - Color System
 * These can be customized via the Theme Customizer
 */
:root {
	/* Accent Colors */
	--accent: #4ab5ac;
	--accent-alt: #3a9d95;

	/* Contrast Colors (Text on dark backgrounds) */
	--contrast: #ffffff;
	--contrast-2: #f7f8f9;
	--contrast-3: #f0f0f0;

	/* Base Colors (Backgrounds) */
	--base: #b2b2be;
	--base-2: #575760;
	--base-3: #222222;
	--base-4: #242628;
	--base-5: #202020;

	/* Semantic Colors */
	--color-success: #10b981;
	--color-error: #ef4444;
	--color-warning: #f59e0b;
	--color-info: #3b82f6;

	/* Spacing Scale */
	--spacing-xs: 5px;
	--spacing-sm: 10px;
	--spacing-md: 15px;
	--spacing-base: 20px;
	--spacing-lg: 40px;
	--spacing-xl: 60px;
	--spacing-2xl: 80px;
	--spacing-3xl: 120px;

	/* Typography */
	--font-body: 'Roboto', system-ui, -apple-system, sans-serif;
	--font-heading: 'Oswald', system-ui, sans-serif;

	/* Container & Layout */
	--container-width: 1240px;
	--content-width: 768px;

	/* Transitions */
	--transition-speed: 300ms;
	--transition-easing: ease-in-out;

	/* Shadows */
	--shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
	--shadow-md: 0 0.5rem 0.5rem rgba(15, 23, 42, 0.05), 0 3px 6px rgba(15, 23, 42, 0.05);
	--shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.1);

	--shadow-cards: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/**
 * Light Mode Theme
 */
[data-theme="light"] {
	/* Invert the color scheme for light mode */
	--contrast: #202020;
	--contrast-2: #242628;
	--contrast-3: #575760;

	--base: #575760;
	--base-2: #b2b2be;
	--base-3: #ffffff;
	--base-4: #f7f8f9;
	--base-5: #f0f0f0;

	/* Adjust shadows for light mode */
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
	--shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/**
 * CSS Reset & Base Styles
 */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--base-3);
	color: var(--contrast-2);
	font-family: var(--font-body);
	font-size: 18px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-weight: 300;
	line-height: 1.6;
	margin: 0;
	overflow-x: hidden;
	padding: 0;
	transition: background-color var(--transition-speed) var(--transition-easing),
		color var(--transition-speed) var(--transition-easing);
}

/**
 * Typography
 */
h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--accent);
	font-family: var(--font-heading);
	font-weight: 500;
	line-height: 1.2;
	margin: 0 0 var(--spacing-md);
}

h1 {
	font-size: clamp(52px, 5vw, 72px);
	line-height: 1em;
}

h2 {
	font-size: clamp(44px, 4.5vw, 64px);
}

h3 {
	font-size: clamp(24px, 3vw, 44px);
}

h4 {
	font-size: clamp(20px, 2vw, 28px);
}

h5 {
	font-size: clamp(18px, 1.5vw, 22px);
}

h6 {
	font-size: 18px;
}

p {
	margin: 0 0 var(--spacing-base);
}

a {
	color: var(--accent);
	font-weight: 700;
	text-decoration: none;
	transition: color var(--transition-speed) var(--transition-easing);
}

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

a.external::after {
	content: '↗';
	margin: 0 2px;
}

strong,
b {
	font-weight: 700;
}

/**
 * Layout & Container
 */
.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-content {
	flex: 1;
	position: relative;
}

.site-main {
	position: relative;
}

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

.content-wrapper {
	margin: 0 auto;
	max-width: var(--content-width);
}

/**
 * Buttons
 */
.button,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
	align-items: center;
	background-color: var(--accent);
	border: 0;
	border-radius: 0.25rem;
	color: var(--contrast);
	cursor: pointer;
	display: inline-flex;
	font-size: 1rem;
	font-weight: 700;
	justify-content: center;
	padding: 0.725rem 2rem;
	text-decoration: none;
	text-transform: uppercase;
	transition: all var(--transition-speed) var(--transition-easing);
}

.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover {
	background-color: var(--base-2);
	color: var(--contrast);
	transform: translateY(-2px);
}

/**
 * Forms
 */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
textarea,
select {
	background-color: var(--contrast);
	border: 1px solid var(--base-4);
	border-radius: 0.5rem;
	color: var(--base-5);
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 300;
	padding: 0.5rem 1rem;
	transition: all var(--transition-speed) var(--transition-easing);
	width: 100%;
}

input:focus,
textarea:focus,
select:focus {
	background-color: var(--contrast-2);
	border-color: var(--contrast-3);
	color: var(--base-5);
	outline: none;
}

/**
 * Images & Media
 */
img {
	display: block;
	height: auto;
	max-width: 100%;
}

figure {
	margin: 0;
}

/**
 * Utilities
 */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--base-5);
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: var(--contrast);
	display: block;
	font-size: 14px;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.text-center {
	text-align: center;
}

.box-shadow {
	box-shadow: var(--shadow-md);
}

/**
 * WordPress Core Alignment Classes
 */
.alignleft {
	float: left;
	margin-bottom: var(--spacing-base);
	margin-right: var(--spacing-base);
}

.alignright {
	float: right;
	margin-bottom: var(--spacing-base);
	margin-left: var(--spacing-base);
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.alignwide {
	margin-left: auto;
	margin-right: auto;
	max-width: 1400px;
}

.alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100%;
	width: 100vw;
}

/**
 * Shapes
 */
.shape-top,
.shape-bottom {
	height: 120px;
	left: 0;
	position: absolute;
	width: 100%;
	z-index: 1;
}

.shape-top {
	background-color: var(--base-3);
	background-repeat: no-repeat;
	background-size: cover;
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 194.3' preserveAspectRatio='none'><path d='M1200 133.3l-50 8.9c-50 8.6-150 26.9-250 31.1-100 4.2-200-4.2-300-26.7S400 89.2 300 62.2C200 35.8 100 17.5 50 8.9L0 0v194.3h1200v-61z'/></svg>");
	top: 0;
	transform: rotate(180deg);
}

.shape-bottom {
	background-color: var(--base-4);
	background-repeat: no-repeat;
	background-size: cover;
	bottom: 0;
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 194.3' preserveAspectRatio='none'><path d='M1200 133.3l-50 8.9c-50 8.6-150 26.9-250 31.1-100 4.2-200-4.2-300-26.7S400 89.2 300 62.2C200 35.8 100 17.5 50 8.9L0 0v194.3h1200v-61z'/></svg>");
	position: absolute;
	z-index: 10;
}

/**
 * Responsive Design
 */
@media (max-width: 1024px) {
	body {
		font-size: 16px;
	}
}

@media (max-width: 768px) {
	.container {
		padding: 0 var(--spacing-md);
	}
}

/**
 * Print Styles
 */
@media print {

	*,
	*::before,
	*::after {
		background: transparent !important;
		box-shadow: none !important;
		color: #000 !important;
		text-shadow: none !important;
	}

	a,
	a:visited {
		text-decoration: underline;
	}

	a[href]::after {
		content: " (" attr(href) ")";
	}

	img {
		page-break-inside: avoid;
	}

	h2,
	h3,
	p {
		orphans: 3;
		widows: 3;
	}

	h2,
	h3 {
		page-break-after: avoid;
	}
}
