/*
 Theme Name: Premium Theme
 Author: Premium Theme
 Description: A professional, responsive WordPress theme for blog sites with a clean design.
 Version: 1.1
 Text Domain: problog
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =Reset
-------------------------------------------------------------- */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td, button {
	border: 0;
	font-family: inherit;
	font-size: 100%;
	font-style: inherit;
	font-weight: inherit;
	margin: 0;
	outline: 0;
	padding: 0;
	vertical-align: baseline;
}
html {
	font-size: 62.5%; 
	overflow-y: scroll;
	-webkit-text-size-adjust: 100%; 
	-ms-text-size-adjust: 100%; 
}
body {
	background: #fff;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section {
	display: block;
}
ol, ul {
	list-style: none;
}
table {
	border-collapse: separate;
	border-spacing: 0;
}
caption, th, td {
	font-weight: normal;
	text-align: left;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: "";
}
blockquote, q {
	quotes: "" "";
}
a:focus {
	outline: thin dotted;
}
a:hover,
a:active {
	outline: 0;
}
a img {
	border: 0;
}

/* Global Styles */
:root {
	--bg: #f2f8fc;
	--front: #222;
	--hover: #2222;
	--a: #126fcc;
	--bglight: #fff;
	--frontlow: #666;
}

body {
	background: var(--bg);
	background-attachment: fixed;
	color: #FFF;
	height: 100%;
}

html, body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
		Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	line-height: 1.6;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	margin: 0;
	color: var(--front);
	font-size: 1.0rem;
}

a {
	color: var(--a);
	text-decoration: none;
}

section {
	position: relative;
	width: 100%;
	margin-bottom: 10px;
}

.section-title {
	margin-bottom: 30px;
	text-align: center;
	color: var(--frontlow);
	font-size: 1.5rem;
}

.see-all-posts {
	text-align: center;
}

h2, h3, h4 {
	font-size: 1.2rem;
	font-weight: 600;
}

/* Base Reset */
ul, li {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Styled Unordered List */
ul {
	margin: 1em 0;
	padding-left: 1.5em;
}

ul li {
	position: relative;
	padding-left: 1.2em;
	margin-bottom: 0.5em;
	line-height: 1.6;
	color: #333;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #333;
}

table thead tr {
  background-color: #f2f2f2;
  text-align: left;
  border-bottom: 2px solid #ddd;
}

table th, table td {
  padding: 12px 15px;
  border: 1px solid #ddd;
}

table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

table tbody tr:hover {
  background-color: #f1f7ff;
}

table th {
  font-weight: 600;
  color: #222;
}


/* Custom Bullet */
ul li::before {
	content: "•";
	position: absolute;
	left: 0;
	top: 0;
	font-size: 1.2em;
	line-height: 1;
}

@media (max-width: 600px) {
	ul li {
		font-size: 0.95rem;
	}
}

a:focus {
	outline: none;
}

/* Header */
header {
	background: var(--a);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	padding: 10px 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100%;
}

.header-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	align-content: center;
	gap: 10px;
	justify-content: space-between;
}

.header-left {
	display: flex;
	flex-direction: column;
}

.header-left span {
	font-size: 1.0rem;
}

.site-title {
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--bg);
	text-transform: uppercase;
}

.header-container a {
	color: var(--bg);
}

.professional-dl-btn {
	padding: 8px 18px;
	background-color: transparent;
	cursor: pointer;
}

.professional-dl-btn svg {
	width: 2.2rem;
	fill: var(--bglight);
}

/* HERO Styles */
.hero {
  background: var(--a);
  color: var(--bglight);
  padding: 30px 20px;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 40px;
}

.hero .up {
  max-width: 700px;
  margin: 0 auto;
}

.hero .up h2 {
  font-size: 1.5rem;
	font-weight: 600;
}

.hero .up p {
  font-size: 1.1rem;
  margin: 15px 0 30px;
  line-height: 1.5;
}

.hero .keys {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

.hero .keys span {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg);
  color: var(--a);
  border-radius: 5px;
  text-transform: capitalize;
  transition: background 0.3s ease;
  cursor: pointer;
	font-weight: 200;
	font-size: 12px;
}

/* Modern App Card - Full CSS */
.app-card {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	background: #fff;
	border-radius: 16px;
	padding: 1.5rem;
	max-width: 100%;
	width: 100%;
	margin: 0 auto;
	margin-bottom: 20px;
}

.app-info-section {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.app-meta, .app-rating {
	flex: 1;
	min-width: 0;
	width: 100%;
}

.meta-title, .rating-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #f0f0f0;
}

.meta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5rem;
}

.meta-item {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.meta-icon {
	width: 24px;
	height: 24px;
	color: #6366f1;
	flex-shrink: 0;
}

.meta-label {
	font-size: 0.875rem;
	color: #64748b;
	margin-bottom: 0.25rem;
}

.meta-value {
	font-size: 1rem;
	font-weight: 500;
	color: #1e293b;
	margin: 0;
}

/* Action Buttons */
div.action-buttons {
	display: flex !important;
	flex-direction: column !important;
}

.action-buttons {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	width: 100%;
}

.download-button,
.link-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
	text-align: center;
}

.download-button {
	background-color: #6366f1;
	color: white;
	border: 2px solid #6366f1;
}

.download-button:hover {
	background-color: #4f46e5;
	border-color: #4f46e5;
	transform: translateY(-1px);
}

.link-button {
	background-color: #148545; 
	color: white;
	border: 2px solid #148545;
}

.link-button:hover {
	background-color: #186e3d; 
	border-color: #186e3d;
	transform: translateY(-1px);
}

.button-icon {
	width: 20px;
	height: 20px;
}

/* Rating Styles */
.stars-interactive {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.stars-container {
	display: flex;
	gap: 0.25rem;
	margin-bottom: 1rem;
}

.star-icon {
	color: #e2e8f0;
	cursor: pointer;
	transition: all 0.2s;
	width: 32px;
	height: 32px;
}

.star-icon svg {
	width: 100%;
	height: 100%;
}

.star-icon:hover, 
.star-icon.active, 
.star-icon.hover {
	color: #f59e0b;
	transform: scale(1.1);
}

.rating-summary {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	font-size: 0.9375rem;
}

.average-rating {
	font-size: 1.5rem;
	font-weight: 700;
	color: #1e293b;
}

.out-of {
	font-size: 1rem;
	color: #64748b;
}

.divider {
	color: #cbd5e1;
}

.total-ratings {
	color: #64748b;
}

.rating-distribution {
	width: 100%;
}

.distribution-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.star-label {
	width: 60px;
	font-size: 0.875rem;
	color: #64748b;
	text-align: right;
}

.progress-bar {
	flex: 1;
	height: 8px;
	background: #f1f5f9;
	border-radius: 4px;
	overflow: hidden;
	min-width: 0;
}

.progress-fill {
	height: 100%;
	border-radius: 4px;
}

.count-value {
	width: 40px;
	font-size: 0.875rem;
	color: #64748b;
	text-align: left;
}

/* Rating bar colors */
.rating-5 { background: #10b981; }
.rating-4 { background: #84cc16; }
.rating-3 { background: #f59e0b; }
.rating-2 { background: #f97316; }
.rating-1 { background: #ef4444; }

/* Desktop Layout */
@media (min-width: 768px) {
	.app-card {
		flex-direction: row;
		padding: 2rem;
		max-width: 1200px;
	}

	.app-info-section {
		width: 50%;
		padding-right: 1.5rem;
	}

	.app-rating {
		width: 50%;
		padding-left: 1.5rem;
		border-left: 1px solid #f0f0f0;
	}

	.action-buttons {
		flex-direction: row;
	}
}

/* Mobile Optimizations */
@media (max-width: 767px) {
	.meta-grid {
		grid-template-columns: 1fr 1fr;
		gap: 1.25rem;
	}
}

@media (max-width: 480px) {
	.app-card {
		padding: 1.25rem;
		gap: 1.5rem;
		border-radius: 12px;
	}

	.meta-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.rating-summary {
		flex-wrap: wrap;
		justify-content: center;
		text-align: center;
		gap: 0.5rem 1rem;
		margin-bottom: 1.25rem;
	}

	.distribution-row {
		gap: 0.5rem;
	}

	.star-label {
		width: 50px;
		font-size: 0.8rem;
	}

	.count-value {
		width: 30px;
		font-size: 0.8rem;
	}

	.progress-bar {
		height: 6px;
	}

	.meta-title, .rating-title {
		font-size: 1.1rem;
		margin-bottom: 1.25rem;
	}

	.download-button,
	.whatsapp-button {
		padding: 0.75rem 1rem;
		font-size: 0.9rem;
	}

	.button-icon {
		width: 18px;
		height: 18px;
	}
}

/* Desktop Mockup - Enhanced */
.desktop-mockup {
    max-width: 800px;
    margin: 40px auto;
    position: relative;
}

.monitor {
    background: #333;
    border: 15px solid #333;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden; /* Ensures no image overflow */
}

.screen {
    background: #000;
    position: relative;
    border-radius: 2px;
    height: 0;
    padding-bottom: 62.5%; /* 16:10 aspect ratio */
    overflow: hidden; /* Hide any image overflow */
}

.screen img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Changed from 'contain' to 'cover' */
    object-position: top center; /* Focus on top portion of image */
    background: #f1f1f1;
}

.no-screenshot {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	background: #f9f9f9;
}

.stand {
	width: 100px;
	height: 50px;
	background: #222;
	margin: 0 auto;
	position: relative;
}

.stand:before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 150%;
	height: 100%;
	background: #222;
	border-radius: 5px 5px 0 0;
}

.stand-bottom {
	width: 150px;
	height: 15px;
	background: #111;
	margin: 0 auto;
	border-radius: 0 0 5px 5px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
	.monitor {
		border-width: 10px;
	}

	.stand {
		width: 80px;
		height: 40px;
	}

	.stand-bottom {
		width: 120px;
	}
}

/* Global Overflow Protection */
body {
	overflow-x: hidden;
	max-width: 100vw;
}

/* download-btn */
.download-btn, .watch-video {
  background: linear-gradient(45deg, #6a11cb, #2575fc);
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  font-weight: 600;
  text-decoration: none;
  display: block;
  margin: 0 auto;
  width: max-content;
}

.download-btn:hover {
  opacity: 0.9;
}


/* MENU */
/* Profile Menu Button */
.profile-menu-toggle {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	padding: 10px;
	color: inherit;
}

/* Profile Sidebar */
.profile-sidebar {
	position: fixed;
	top: 0;
	right: -300px;
	width: 300px;
	height: 100%;
	background: #fff;
	box-shadow: -2px 0 5px rgba(0,0,0,0.1);
	z-index: 1000;
	transition: right 0.3s ease;
}

.profile-sidebar.active {
	right: 0;
}

.sidebar-header {
	padding: 15px;
	text-align: right;
}

.close-sidebar {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
}

.profile-navigation a {
	text-decoration: none;
	color: inherit;
	display: block;
}

/* Sidebar Overlay */
.sidebar-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.5);
	z-index: 999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* Main Content */
.main-content {
	max-width: 1200px;
	margin: 20px auto;
	padding: 0 20px;
}

/* Homepage Posts */
.post-item {
	display: flex;
	align-items: stretch;
	background: var(--bglight);
	border-radius: 12px;
	margin-bottom: 35px;
	overflow: hidden;
}

.post-item img {
	width: 35%;
	height: auto;
	display: block;
}

.post-preview {
	width: 65%;
	padding: 25px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.preview-title {
	margin-bottom: 12px;
	line-height: 1.4;
}

.preview-title a {
	color: var(--front);
	text-decoration: none;
	transition: color 0.3s;
}

.preview-title a:hover {
	color: #0073e6;
}

.preview-meta {
	font-size: 1.1rem;
	color: var(--frontlow);
	margin-bottom: 15px;
}

.preview-meta span {
	margin-right: 20px;
	display: inline-block;
}

.preview-excerpt {
	color: var(--front);
	font-size: 1.2rem;
	line-height: 1.6;
}

/* Responsive Mobile Styles */
@media (max-width: 768px) {
	.post-item {
		flex-direction: column;
	}

	.post-item img {
		width: 100%;
		height: 200px;
	}

	.post-preview {
		width: 100%;
		padding: 20px;
	}

	.preview-title {
		font-size: 20px;
	}

	.preview-excerpt {
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.preview-title {
		font-size: 1.5rem;
	}

	.preview-meta {
		font-size: 1.1rem;
		margin-bottom: 10px;
	}

	.preview-meta span {
		margin-right: 10px;
	}

	.preview-excerpt {
		font-size: 1.2rem;
	}
}


/* table of content */
.post-toc {
	background: linear-gradient(135deg, #0073e6 0%, #00bfff 100%);
	color: #fff;
	padding: 25px 30px;
	margin-bottom: 40px;
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba(0, 115, 230, 0.3);
	margin-left: auto;
	margin-right: auto;
}

.post-toc h3 {
	margin-top: 0;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	border-bottom: 2px solid rgba(255, 255, 255, 0.5);
	padding-bottom: 8px;
	margin-bottom: 20px;
}

.post-toc ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.post-toc ul li {
	margin-bottom: 15px;
}

.post-toc ul li a {
	color: #dbeeff;
	text-decoration: none;
	transition: color 0.3s ease, transform 0.2s ease;
	display: inline-block;
	position: relative;
}

.post-toc ul li::before {
	color: #ffd54f;
	position: absolute;    font-size: 24px;
	line-height: 1;
}

.post-toc ul li a:hover {
	color: #fff;
	transform: translateX(5px);
	text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}


/* Single Post */
.post-thumbnail-wrap {
	margin-bottom: 20px;
}

.post-thumbnail-wrap img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	object-position: center;
	border-radius: 20px;
}

.post-title{
	color: #111;
	line-height: 1.3;
	letter-spacing: -0.5px;
	text-transform: capitalize;
	border-left: 5px solid #0073e6;
	padding-left: 15px;
	background: linear-gradient(to right, #f7f9fc, transparent);
}


.post-meta {
	color: var(--frontlow);
	margin: 15px 0;
}

.post-content {
	color: var(--front);
}

.post-content h2, .section-title  {
	padding: 10px 0;
	margin: 20px 0 10px;
	border-bottom: 2px solid #0073e6;
	line-height: 1.4;
}

.post-content p {
	padding: 10px 0;
}
/* Page */
.page .post-title {
	font-size: 1.5rem;
	margin-bottom: 20px;
}

.page .post-content {
	font-size: 1.2rem;
	line-height: 1.8;
}

/* 404 */
.error-404 {
	text-align: center;
	padding: 100px 20px;
}

.error-404 h1 {
	font-size: 48px;
	font-weight: 700;
	color: #222;
	margin-bottom: 20px;
}

.error-404 p {
	font-size: 18px;
	color: #666;
	margin-bottom: 20px;
}

/* Footer Styling */
footer {
	background: var(--a);
	text-align: center;
	margin-top: 20px;
	padding: 10px;
	color: var(--bglight);
}