/* ============================================
   BGMI Style Name Generator - Responsive CSS
   All media queries for mobile/tablet/desktop
   ============================================ */

/* ========== Extra Large (≤1400px) ========== */
@media (max-width: 1400px) {
	.container {
		max-width: 1140px;
	}
}

/* ========== Large Desktop (≤1200px) ========== */
@media (max-width: 1200px) {
	.container {
		max-width: 960px;
	}

	.grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.hero-section__title {
		font-size: 3rem;
	}

	.hero-section__stats {
		gap: 16px;
	}

	.footer-widgets__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ========== Tablet (≤992px) ========== */
@media (max-width: 992px) {
	.container {
		max-width: 720px;
	}

	/* Typography */
	h1, .h1 { font-size: 2.2rem; }
	h2, .h2 { font-size: 1.75rem; }
	h3, .h3 { font-size: 1.35rem; }

	.section-title {
		font-size: 2rem;
	}

	/* Layout */
	.content-area {
		flex-direction: column;
	}

	.content-area__main {
		width: 100%;
	}

	.sidebar {
		width: 100%;
		margin-top: 40px;
	}

	/* Grid */
	.grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Hero */
	.hero-section {
		min-height: 80vh;
		padding-top: 100px;
	}

	.hero-section__title {
		font-size: 2.5rem;
	}

	.hero-section__subtitle {
		font-size: 1rem;
	}

	.hero-section__stats {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Floating Icons */
	.floating-icon--5,
	.floating-icon--6 {
		display: none;
	}

	/* How-To Steps */
	.how-to-steps {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Names List */
	.names-list,
	.names-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	/* Single Post */
	.single-post__content {
		max-width: 100%;
		padding: 0 20px;
	}

	/* Related Posts */
	.related-posts__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Footer */
	.footer-widgets__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 30px;
	}

	/* About Features */
	.features-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Contact */
	.contact-layout {
		grid-template-columns: 1fr;
		gap: 30px;
	}
}

/* ========== Mobile Landscape / Small Tablet (≤768px) ========== */
@media (max-width: 768px) {
	/* Base */
	body {
		font-size: 15px;
	}

	section {
		padding: 60px 0;
	}

	/* Typography */
	h1, .h1 { font-size: 1.85rem; }
	h2, .h2 { font-size: 1.5rem; }
	h3, .h3 { font-size: 1.2rem; }
	h4, .h4 { font-size: 1.05rem; }

	.section-title {
		font-size: 1.65rem;
	}

	.section-subtitle {
		font-size: 0.9rem;
	}

	/* Header - Mobile Nav */
	.main-navigation {
		position: fixed;
		top: 0;
		right: -100%;
		width: 80%;
		max-width: 320px;
		height: 100vh;
		background: rgba(10, 10, 15, 0.98);
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
		flex-direction: column;
		padding: 80px 30px 30px;
		transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
		z-index: 999;
		border-left: 1px solid rgba(255, 215, 0, 0.1);
		overflow-y: auto;
	}

	.site-header.menu-open .main-navigation {
		right: 0;
	}

	.main-navigation .nav-menu,
	.main-navigation ul {
		flex-direction: column;
		gap: 0;
		width: 100%;
	}

	.main-navigation .nav-menu li,
	.main-navigation ul li {
		width: 100%;
		border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	}

	.main-navigation .nav-menu li a,
	.main-navigation ul li a {
		display: block;
		padding: 16px 0;
		font-size: 1rem;
	}

	.mobile-menu-toggle {
		display: flex !important;
	}

	.nav-search-toggle {
		display: flex;
	}

	/* Mobile menu overlay */
	.site-header.menu-open::after {
		content: '';
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.5);
		z-index: 998;
	}

	/* Hero */
	.hero-section {
		min-height: auto;
		padding: 120px 0 60px;
	}

	.hero-section__title {
		font-size: 2rem;
		line-height: 1.3;
	}

	.hero-section__subtitle {
		font-size: 0.95rem;
		max-width: 100%;
	}

	.hero-section__cta {
		flex-direction: column;
		gap: 12px;
	}

	.hero-section__cta .btn {
		width: 100%;
		justify-content: center;
	}

	.hero-section__stats {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.hero-stat {
		padding: 16px 12px;
	}

	.hero-stat__number {
		font-size: 1.5rem;
	}

	.hero-section__scroll-indicator {
		display: none;
	}

	.hero-section__floating-icons {
		display: none;
	}

	/* Grids */
	.grid-2,
	.grid-3,
	.grid-4 {
		grid-template-columns: 1fr;
	}

	.posts-grid {
		grid-template-columns: 1fr;
	}

	/* How-To Steps */
	.how-to-steps {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.how-to-step {
		flex-direction: row;
		text-align: left;
		padding: 20px;
	}

	.how-to-step__number {
		font-size: 2rem;
		min-width: 50px;
	}

	/* Symbols Table */
	.symbols-table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.symbols-table table {
		min-width: 500px;
	}

	/* Names Grid */
	.names-list,
	.names-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}

	.name-item {
		padding: 10px;
		font-size: 0.85rem;
	}

	/* FAQ */
	.faq-question {
		padding: 16px;
		font-size: 0.95rem;
	}

	.faq-answer__content {
		padding: 0 16px 16px;
	}

	/* CTA Section */
	.cta-section {
		padding: 60px 0;
	}

	.cta-section__title {
		font-size: 1.65rem;
	}

	.cta-section__buttons {
		flex-direction: column;
		gap: 12px;
	}

	.cta-section__buttons .btn {
		width: 100%;
		justify-content: center;
	}

	.cta-section__features {
		flex-direction: column;
		gap: 8px;
	}

	/* Single Post */
	.single-post__header {
		padding: 20px 0 30px;
	}

	.single-post__title {
		font-size: 1.65rem;
	}

	.single-post__meta {
		flex-wrap: wrap;
		gap: 10px;
	}

	.entry-content {
		font-size: 0.95rem;
	}

	.entry-content blockquote {
		padding: 16px 20px;
		margin: 20px 0;
	}

	/* Author Box */
	.author-box {
		flex-direction: column;
		text-align: center;
		padding: 24px;
	}

	.author-box__avatar {
		margin: 0 auto;
	}

	/* Share Buttons */
	.share-buttons__row {
		flex-wrap: wrap;
	}

	.share-btn {
		flex: 1 1 calc(50% - 6px);
	}

	/* Related Posts */
	.related-posts__grid {
		grid-template-columns: 1fr;
	}

	/* Footer */
	.footer-widgets__grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.footer-bottom__inner {
		flex-direction: column;
		text-align: center;
		gap: 12px;
	}

	/* Search Form */
	.search-form__wrapper {
		flex-direction: column;
		gap: 8px;
	}

	.search-form__button {
		width: 100%;
	}

	/* 404 */
	.error-404__code {
		font-size: 5rem;
	}

	.error-404__title {
		font-size: 1.5rem;
	}

	/* Breadcrumbs */
	.breadcrumbs {
		font-size: 0.8rem;
		flex-wrap: wrap;
	}

	/* About Page */
	.features-grid {
		grid-template-columns: 1fr;
	}

	.about-story {
		padding: 30px 20px;
	}

	/* Contact Page */
	.contact-info-cards {
		grid-template-columns: 1fr;
	}

	.contact-form input,
	.contact-form textarea,
	.contact-form select {
		font-size: 16px; /* Prevents iOS zoom on focus */
	}

	/* Back to top - adjust position */
	.back-to-top {
		bottom: 20px;
		right: 20px;
		width: 44px;
		height: 44px;
	}

	/* Pagination */
	.pagination {
		gap: 6px;
	}

	.pagination .page-numbers {
		min-width: 38px;
		height: 38px;
		font-size: 0.85rem;
	}
}

/* ========== Mobile Portrait (≤480px) ========== */
@media (max-width: 480px) {
	/* Base */
	.container {
		padding: 0 15px;
	}

	section {
		padding: 40px 0;
	}

	/* Typography */
	h1, .h1 { font-size: 1.5rem; }
	h2, .h2 { font-size: 1.3rem; }

	.section-title {
		font-size: 1.4rem;
	}

	.section-badge {
		font-size: 0.7rem;
	}

	/* Hero */
	.hero-section {
		padding: 100px 0 40px;
	}

	.hero-section__title {
		font-size: 1.6rem;
	}

	.hero-section__badge {
		font-size: 0.75rem;
		padding: 6px 14px;
	}

	.hero-section__stats {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.hero-stat {
		padding: 12px 8px;
	}

	.hero-stat__number {
		font-size: 1.3rem;
	}

	.hero-stat__label {
		font-size: 0.65rem;
	}

	/* Buttons */
	.btn-lg {
		padding: 12px 24px;
		font-size: 0.9rem;
	}

	/* Post Cards */
	.post-card__content {
		padding: 14px;
	}

	.post-card__title {
		font-size: 1rem;
	}

	.post-card__meta {
		font-size: 0.75rem;
	}

	/* Names Grid */
	.names-list,
	.names-grid {
		grid-template-columns: 1fr;
	}

	/* FAQ */
	.faq-question__text {
		font-size: 0.85rem;
	}

	/* Share Buttons */
	.share-btn {
		flex: 1 1 100%;
	}

	.share-btn span {
		display: none;
	}

	.share-btn {
		flex: 0 0 auto;
		width: 44px;
		height: 44px;
		border-radius: 50%;
		justify-content: center;
	}

	.share-buttons__row {
		justify-content: center;
	}

	/* Comments */
	.comment-body {
		padding: 16px;
	}

	.comment .children {
		margin-left: 16px;
	}

	/* 404 */
	.error-404__code {
		font-size: 4rem;
	}

	.error-404__title {
		font-size: 1.25rem;
	}

	.error-404__actions {
		flex-direction: column;
	}

	.error-404__actions .btn {
		width: 100%;
	}

	/* Pagination - Compact */
	.pagination .page-numbers {
		min-width: 34px;
		height: 34px;
		font-size: 0.8rem;
	}
}

/* ========== Extra Small (≤360px) ========== */
@media (max-width: 360px) {
	.container {
		padding: 0 12px;
	}

	.hero-section__title {
		font-size: 1.4rem;
	}

	.btn-lg {
		padding: 10px 20px;
		font-size: 0.85rem;
	}

	.section-title {
		font-size: 1.25rem;
	}

	.hero-section__stats {
		grid-template-columns: 1fr;
	}
}

/* ========== Landscape Orientation ========== */
@media (max-height: 500px) and (orientation: landscape) {
	.hero-section {
		min-height: auto;
		padding: 80px 0 40px;
	}

	.hero-section__stats {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ========== Print Styles ========== */
@media print {
	.site-header,
	.site-footer,
	.sidebar,
	.share-buttons,
	.related-posts,
	.comments-area,
	.back-to-top,
	.hero-section__particles,
	.hero-section__floating-icons,
	.generator-tool__actions,
	.cta-section,
	.mobile-menu-toggle,
	.search-toggle {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
		font-size: 12pt;
	}

	a {
		color: #000;
		text-decoration: underline;
	}

	.container {
		max-width: 100%;
		padding: 0;
	}

	.entry-content {
		max-width: 100%;
	}

	h1, h2, h3 {
		color: #000;
		page-break-after: avoid;
	}

	img {
		max-width: 100% !important;
		page-break-inside: avoid;
	}
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.animate-on-scroll {
		opacity: 1 !important;
		transform: none !important;
	}

	.particle,
	.floating-icon {
		animation: none !important;
	}

	.hero-section__scroll-indicator {
		display: none;
	}
}

/* ========== High Contrast Mode ========== */
@media (prefers-contrast: high) {
	.card-glass,
	.post-card,
	.name-card,
	.faq-item {
		border-width: 2px;
		border-color: rgba(255, 255, 255, 0.3);
	}

	.btn {
		border-width: 2px;
	}

	.site-header {
		border-bottom-width: 2px;
	}
}

/* ========== Dark Mode Preference (already dark, but ensure) ========== */
@media (prefers-color-scheme: light) {
	/* Theme is dark by design, no changes needed */
}

/* Generator homepage polish overrides */
@media (max-width: 768px) {
	.hero-section {
		min-height: auto;
		padding: 100px 0 46px;
	}

	.hero-section__proof {
		gap: 8px;
		margin-bottom: 22px;
	}

	.hero-section__proof span {
		flex: 1 1 calc(50% - 8px);
		justify-content: center;
		font-size: 0.76rem;
	}

	.generator-tool__actions {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.hero-section__proof span {
		flex-basis: 100%;
	}
}

@media (max-width: 768px) {
	.generator-tool__advisor,
	.generator-tool__advanced-panel {
		grid-template-columns: 1fr;
	}
}

/* Screenshot QA fixes: homepage spacing, reading flow, and PUBG keyword sections */
.front-page section {
	padding: 64px 0;
}

.hero-section {
	min-height: auto;
	padding: 96px 20px 54px;
	align-items: flex-start;
}

.hero-section__content {
	max-width: 980px;
}

.hero-section__title {
	font-size: clamp(2.35rem, 4.6vw, 4.25rem);
	line-height: 1.08;
	margin-bottom: 18px;
}

.hero-section__subtitle {
	max-width: 820px;
	margin-bottom: 28px;
	font-size: 1.02rem;
}

.hero-section__cta {
	margin-bottom: 20px;
}

.hero-section__proof {
	margin-bottom: 26px;
}

.hero-section__stats {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	max-width: 880px;
}

.hero-stat {
	min-height: 108px;
	border-radius: 8px;
}

.hero-section__scroll-indicator {
	display: none;
}

.content-section {
	text-align: left;
}

.content-section .container {
	max-width: 1040px;
}

.content-section .section-title,
.content-section > .container > .section-intro,
.content-section > .container > p:first-of-type {
	text-align: center;
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
}

.content-section p {
	max-width: 850px;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
}

.why-names-section h3,
.rules-section h3,
.change-name-section h3,
.tips-section h3 {
	max-width: 850px;
	margin: 28px auto 10px;
	text-align: center;
}

.how-to-section {
	text-align: center;
}

.how-to-section .container {
	max-width: 1160px;
}

.how-to-steps {
	align-items: stretch;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	padding-left: 0;
}

.how-to-step {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 14px;
	align-items: start;
	padding: 24px 18px;
	text-align: left;
	min-height: 0;
	border-radius: 8px;
}

.how-to-step .step-icon {
	margin-bottom: 0;
}

.how-to-step .step-number {
	width: 46px;
	height: 46px;
	font-size: 1rem;
}

.step-content h3 {
	font-size: 0.94rem;
	line-height: 1.28;
	margin-bottom: 8px;
	text-align: left;
}

.step-content p {
	font-size: 0.86rem;
	line-height: 1.58;
	margin: 0;
	max-width: none;
}

.name-types-grid,
.rules-grid,
.steps-grid,
.tips-grid,
.top-names-grid {
	max-width: 1120px;
	margin-left: auto;
	margin-right: auto;
}

.name-type-card,
.rule-card,
.change-step,
.tip-card,
.names-category {
	border-radius: 8px;
}

.cta-section {
	padding: 64px 0 !important;
	min-height: auto;
}

.cta-section__content,
.cta-section .container {
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.cta-section__title {
	font-size: clamp(2rem, 4vw, 3.15rem);
	line-height: 1.16;
	margin-bottom: 18px;
}

.cta-section__text {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
	font-size: 1rem;
	line-height: 1.65;
	text-align: center;
}

.cta-section__buttons {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 28px auto 0;
}

.cta-section__buttons .btn {
	min-width: 260px;
	justify-content: center;
}

.cta-section__features {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px 24px;
	flex-wrap: wrap;
	margin-top: 18px;
}

.cta-feature {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
}

@media (max-width: 1100px) {
	.how-to-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.front-page section {
		padding: 48px 0;
	}

	.hero-section {
		padding: 90px 0 42px;
	}

	.hero-section__title {
		font-size: 2rem;
	}

	.hero-section__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.how-to-steps {
		grid-template-columns: 1fr;
	}

	.how-to-step {
		grid-template-columns: 42px 1fr;
		padding: 20px 16px;
	}

	.content-section p,
	.content-section .section-intro {
		text-align: left;
	}

	.cta-section__buttons .btn {
		width: 100%;
		min-width: 0;
	}

	.cta-section__features {
		align-items: flex-start;
		flex-direction: column;
		max-width: 270px;
	}
}

@media (max-width: 480px) {
	.hero-section__stats {
		grid-template-columns: 1fr;
	}

	.hero-stat {
		min-height: 92px;
	}

	.cta-section__title {
		font-size: 1.65rem;
	}
}
