/*
Theme Name: ReviewHost
Theme URI: https://reviewhost.vn
Author: Hoang Lam
Author URI: https://hoanglam.vn
Description: A modern Hosting & VPS review theme - Đánh giá và so sánh hosting, VPS, cloud providers
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reviewhost
Tags: hosting, vps, review, comparison, dark-mode, responsive
*/

/* 
 * Based on React codebase: reviewhost/
 * Reference theme: apkstore-theme
 * Design System from: reviewhost/src/index.css
 */

/* ========================================
   CSS VARIABLES - DESIGN SYSTEM
   ======================================== */
:root {
	/* Background & Foreground */
	--background: 0 0% 98%;
	--foreground: 0 0% 9%;

	/* Card */
	--card: 0 0% 98%;
	--card-foreground: 0 0% 9%;

	/* Popover */
	--popover: 0 0% 89%;
	--popover-foreground: 0 0% 9%;

	/* Primary - Green */
	--primary: 142 70% 40%;
	--primary-foreground: 142 70% 98%;

	/* Secondary */
	--secondary: 220 10% 94%;
	--secondary-foreground: 220 20% 10%;

	/* Muted */
	--muted: 0 0% 63%;
	--muted-foreground: 0 0% 9%;

	/* Accent */
	--accent: 142 70% 96%;
	--accent-foreground: 142 70% 30%;

	/* Destructive */
	--destructive: 0 72% 50%;
	--destructive-foreground: 0 85% 97%;

	/* Border & Input */
	--border: 0 0% 83%;
	--input: 0 0% 83%;
	--ring: 142 70% 40%;

	/* Radius */
	--radius: 0.75rem;

	/* Sidebar */
	--sidebar: 0 0% 98%;
	--sidebar-background: 0 0% 98%;
	--sidebar-foreground: 0 0% 9%;
	--sidebar-primary: 142 70% 40%;
	--sidebar-primary-foreground: 142 70% 98%;
	--sidebar-accent: 0 0% 32%;
	--sidebar-accent-foreground: 0 0% 98%;
	--sidebar-border: 0 0% 83%;
	--sidebar-ring: 142 70% 40%;
}

.dark {
	/* Background & Foreground */
	--background: 0 0% 9%;
	--foreground: 0 0% 98%;

	/* Card */
	--card: 0 0% 14%;
	--card-foreground: 0 0% 98%;

	/* Popover */
	--popover: 0 0% 25%;
	--popover-foreground: 0 0% 98%;

	/* Primary - Green (brighter in dark mode) */
	--primary: 142 70% 50%;
	--primary-foreground: 142 70% 5%;

	/* Secondary */
	--secondary: 220 15% 20%;
	--secondary-foreground: 0 0% 95%;

	/* Muted */
	--muted: 0 0% 45%;
	--muted-foreground: 0 0% 98%;

	/* Accent */
	--accent: 142 70% 10%;
	--accent-foreground: 142 70% 60%;

	/* Destructive */
	--destructive: 0 84% 60%;
	--destructive-foreground: 0 85% 97%;

	/* Border & Input */
	--border: 0 0% 32%;
	--input: 0 0% 32%;
	--ring: 142 70% 50%;

	/* Sidebar */
	--sidebar: 0 0% 14%;
	--sidebar-background: 240 5.9% 10%;
	--sidebar-foreground: 0 0% 98%;
	--sidebar-primary: 142 70% 50%;
	--sidebar-primary-foreground: 142 70% 5%;
	--sidebar-accent: 142 70% 60%;
	--sidebar-accent-foreground: 142 70% 10%;
	--sidebar-border: 0 0% 32%;
	--sidebar-ring: 142 70% 50%;
}

/* Alias for compatibility */
.light {
	/* Same as :root */
}

/* ========================================
   BASE STYLES
   ======================================== */
* {
	border-color: hsl(var(--border));
}

body {
	background-color: hsl(var(--background));
	color: hsl(var(--foreground));
}

/* ========================================
   UTILITIES
   ======================================== */

/* Hide scrollbar */
.scrollbar-hide::-webkit-scrollbar {
	display: none;
}

.scrollbar-hide {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

/* Line clamp */
.line-clamp-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.line-clamp-3 {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ========================================
   WORDPRESS SPECIFIC STYLES
   ======================================== */

/* Screen reader text */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: hsl(var(--background));
	clip: auto;
	clip-path: none;
	color: hsl(var(--foreground));
	display: block;
	font-size: 1em;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Alignments */
.alignwide {
	margin-left: -1rem;
	margin-right: -1rem;
	max-width: calc(100% + 2rem);
}

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

/* Sticky post */
.sticky {
	position: relative;
}

/* Gallery */
.gallery-caption {
	display: block;
}

/* Widget */
.widget {
	margin-bottom: 1rem;
}

/* Comment form */
.comment-form label {
	display: block;
	margin-bottom: 0.25rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	background-color: hsl(var(--background));
	color: hsl(var(--foreground));
}

.comment-form input[type="submit"] {
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	padding: 0.5rem 1.5rem;
	border: none;
	border-radius: var(--radius);
	cursor: pointer;
	font-weight: 500;
	transition: opacity 0.2s;
}

.comment-form input[type="submit"]:hover {
	opacity: 0.9;
}

/* bypostauthor class - WP requirement */
.bypostauthor {}