/*
Theme Name: Review Host
Theme URI: https://danhgiahost.net
Author: Hoang Lam
Author URI: https://facebook.com/lamhnn
Description: Đánh giá host
Version: 1.0.0
Text Domain: reviewhost
Tags: hosting, vps, coupon, domain, review, comparison, dark-mode, responsive
*/

/* ========================================
   CSS VARIABLES - DESIGN SYSTEM
   ======================================== */
:root {
	/* Primary - Green */
	--primary: 142 70% 45%;
	--primary-foreground: 0 0% 100%;

	/* Background & Foreground */
	--background: 0 0% 98%;
	--foreground: 220 20% 10%;

	/* Card */
	--card: 0 0% 100%;
	--card-foreground: 220 20% 10%;

	/* Popover */
	--popover: 0 0% 100%;
	--popover-foreground: 220 20% 10%;

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

	/* Muted */
	--muted: 220 10% 92%;
	--muted-foreground: 220 10% 45%;

	/* Accent - Light green (from React) */
	--accent: 142 70% 96%;
	--accent-foreground: 142 70% 30%;

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

	/* Border & Input */
	--border: 220 10% 88%;
	--input: 220 10% 88%;
	--ring: 142 70% 45%;

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

	/* Sidebar */
	--sidebar: 0 0% 98%;
	--sidebar-background: 0 0% 98%;
	--sidebar-foreground: 220 20% 10%;
	--sidebar-primary: 142 70% 45%;
	--sidebar-primary-foreground: 0 0% 100%;
	--sidebar-accent: 220 10% 94%;
	--sidebar-accent-foreground: 220 20% 10%;
	--sidebar-border: 220 10% 88%;
	--sidebar-ring: 142 70% 45%;
}

.dark {
	/* Primary - Green (brighter in dark mode) */
	--primary: 142 70% 50%;
	--primary-foreground: 0 0% 100%;

	/* Background & Foreground */
	--background: 220 20% 8%;
	--foreground: 0 0% 95%;

	/* Card */
	--card: 220 15% 12%;
	--card-foreground: 0 0% 95%;

	/* Popover */
	--popover: 220 15% 15%;
	--popover-foreground: 0 0% 95%;

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

	/* Muted */
	--muted: 220 15% 15%;
	--muted-foreground: 220 10% 55%;

	/* Accent - Dark green (from React) */
	--accent: 142 70% 10%;
	--accent-foreground: 142 70% 60%;

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

	/* Border & Input */
	--border: 220 15% 18%;
	--input: 220 15% 18%;
	--ring: 142 70% 50%;

	/* Sidebar */
	--sidebar: 220 20% 10%;
	--sidebar-background: 220 20% 10%;
	--sidebar-foreground: 0 0% 95%;
	--sidebar-primary: 142 70% 50%;
	--sidebar-primary-foreground: 0 0% 100%;
	--sidebar-accent: 220 15% 15%;
	--sidebar-accent-foreground: 0 0% 95%;
	--sidebar-border: 220 15% 18%;
	--sidebar-ring: 142 70% 50%;
}

/* ========================================
   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;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.line-clamp-3 {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	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 {
	/* Required by WordPress theme check */
}

/* Pagination Styles */
.hoanglam-pagination .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.hoanglam-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border-radius: var(--radius);
	font-size: 0.875rem;
	font-weight: 500;
	color: hsl(var(--foreground));
	background-color: hsl(var(--secondary));
	border: 1px solid hsl(var(--border));
	transition: all 0.2s;
}

.hoanglam-pagination .page-numbers:hover {
	background-color: hsl(var(--muted));
}

.hoanglam-pagination .page-numbers.current {
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border-color: hsl(var(--primary));
}

.hoanglam-pagination .page-numbers.prev,
.hoanglam-pagination .page-numbers.next {
	padding: 0 1rem;
}

.hoanglam-pagination .page-numbers.dots {
	background: transparent;
	border: none;
	cursor: default;
}