/*
Theme Name: DownloadBeer
Author: PMW
Version: 1.0
*/

*{
	box-sizing:border-box;
}

html{
	margin:0;
	padding:0;
	background:#f8fafc;
}

html.dark-mode{
	background:#131314;
}

body{
	margin:0;
	padding:0;
	font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Apple SD Gothic Neo","Malgun Gothic",sans-serif;
	background:#f8fafc;
	color:#111827;
	line-height:1.7;
	overflow-x:hidden;
}

html.dark-mode body{
	background:#131314;
	color:#f3f4f6;
}

strong,
b,
h1,
h2,
h3,
h4,
h5,
h6{
	font-weight:700;
}

a{
	color:#2563eb;
	text-decoration:none;
}

img{
	max-width:100%;
	height:auto;
	display:block;
}

.content-area{
	max-width:670px;
	margin:0 auto;
	padding:14px 16px 40px;
}

.site-header{
	background:#fff;
	border-bottom:1px solid #e5e7eb;
}

.site-footer{
	margin-top:80px;
	padding:40px 20px;
	border-top:1px solid #e5e7eb;
	text-align:center;
	font-size:14px;
	color:#64748b;
}

.entry-content{
	font-size:16px;
	line-height:1.8;
}

.entry-content h2{
	font-size:18px;
	margin-top: 8px;
	margin-bottom:18px;
	line-height:1.2;
}

.entry-content h3{
	font-size:17px;
	margin-top:22px;
	margin-bottom:14px;
}

.single-articles .entry-content img {
	display:block;
	margin-bottom:25px;
}

.single-articles .entry-content h1 {
	font-size:24px;
}

.db-spacer{
	width:100%;
	display:block;
	clear:both;
}

/* =========================
   Header
========================= */

.header-inner{
	position:relative;
	max-width:650px;
	height:60px;
	margin:0 auto;
	padding:0 20px;
	display:flex;
	align-items:center;
	justify-content:space-between;
}

.site-brand{
	position:relative;
	z-index:2;
	display:flex;
	align-items:center;
	gap:10px;
	color:#111827;
	font-weight:900;
}

.site-brand:hover{
	color:#111827;
}

.site-logo,
.custom-logo-link{
	display:flex;
	align-items:center;
}

.custom-logo{
	width:36px;
	height:36px;
	object-fit:contain;
}

.site-name{
	font-size:20px;
	line-height:1;
        font-weight: 700;
	white-space:nowrap;
}

.site-nav{
	display:flex;
	align-items:center;
	gap:28px;
	margin-left:40px;
	margin-right:auto;
}

.site-nav a{
	font-size:15px;
	font-weight:700;
	color:#334155;
}

.site-nav a:hover{
	color:#2563eb;
}

.theme-toggle{
	width:40px;
	height:40px;
	border:0;
	border-radius:999px;
	background:#f1f5f9;
	color:#111827;
	display:flex;
	align-items:center;
	justify-content:center;
	cursor:pointer;
	font-size:18px;
}

.theme-icon svg{
	width:19px;
	height:19px;
	display:block;
	fill:currentColor;
}

.theme-icon-moon{
	display:none;
}

html.dark-mode .theme-icon-sun{
	display:none;
}

html.dark-mode .theme-icon-moon{
	display:inline;
}

html.dark-mode .site-brand,
html.dark-mode .site-brand:hover,
html.dark-mode .site-nav a{
	color:#f3f4f6;
}

html.dark-mode .site-nav a:hover{
	color:#93c5fd;
}

html.dark-mode .theme-toggle{
	background:#27272a;
	color:#f3f4f6;
}

html.dark-mode .wp-block-group {
      	background:#121314;
	color:#f3f4f6;
}

html.dark-mode .entry-content .wp-block-group.has-background{
	background:#121314 !important;
	color:#f3f4f6;
}

html.dark-mode .entry-content .wp-block-group.has-background h2,
html.dark-mode .entry-content .wp-block-group.has-background h3,
html.dark-mode .entry-content .wp-block-group.has-background p,
html.dark-mode .entry-content .wp-block-group.has-background li{
	color:#f3f4f6;
}

html.dark-mode .single-article {
	background:#121314 !important;
	color:#fff;
        border: 1px solid #212223;
}

@media(max-width:768px){

	.header-inner{
		height:60px;
		padding:0 16px;
	}

	.custom-logo{
		width:32px;
		height:32px;
	}

	.site-name{
		font-size:17px;
	}

	.site-nav{
		display:none;
	}

	.theme-toggle{
		width:36px;
		height:36px;
		font-size:16px;
	}
}

/* =========================
   Home and Content Group Card
========================= */
.home-section{
	margin-top:42px;
}

.home-section .related-apps-head{
	margin-bottom:18px;
}

.entry-content .wp-block-group{
	margin-bottom:16px;
	padding: 20px;
	border-radius:28px;
	background:#fff;
}

.entry-content .wp-block-group h2:first-child{
	margin-top:0;
}

@media(max-width:768px){

	.entry-content .wp-block-group{
		padding:26px 22px;
		border-radius:22px;
	}
}

/* =========================
   Download Box
========================= */

.download-box{
	padding:24px;
	border:1px solid #e5e7eb;
	border-radius:24px;
	background:#fff;
	margin-bottom:40px;
}

.download-top{
	display:flex;
	gap:18px;
	align-items:center;
	margin-bottom:18px;
}

.app-logo{
	width:72px;
	height:72px;
	border-radius:18px;
	object-fit:cover;
}

.download-info h1{
	margin:0 0 8px;
	font-size:28px;
	line-height:1.3;
}

.download-buttons{
	display:flex;
	flex-wrap:wrap;
	gap:10px;
	margin-top:18px;
}

.download-btn{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	height:36px;
	padding:0 18px;
	border-radius:10px;
	background:#2563eb;
	color:#fff;
	font-weight:700;
}

.download-btn.secondary{
	background:#879FBA14;
	color:#121314;
}

html.dark-mode body{
	background:#131314;
	color:#f3f4f6;
}

html.dark-mode .site-header{
	background:#131314;
	border-color:#27272a;
}

html.dark-mode .site-footer{
	border-color:#27272a;
}

html.dark-mode .download-box{
	background:#1c1d1f;
	border-color:#2f3033;
}

html.dark-mode .app-download-section{
	background:#121314;
        border: 1px solid #212223;
	color:#f3f4f6 !important;
}


@media(max-width:768px){

	.header-inner{
		height:60px;
		padding:0 16px;
	}

	.content-area{
		padding:20px 16px 50px;
	}

	.download-top{
		align-items:flex-start;
	}

	.download-info h1{
		font-size:24px;
	}
}

/* =========================
   App Profile Section
========================= */

.app-profile-section{
	background:#fff;
	border-radius:20px;
	padding:16px;
	margin-bottom:16px;
}

.app-profile-head{
	display:flex;
	align-items:center;
	gap:20px;
	margin-bottom:16px;
}

.app-profile-logo{
	display:flex;
	flex-direction:column;
	justify-content:center;
	min-height:88px;
	width:88px;
	height:88px;
	border-radius:22px;
	object-fit:contain;
	background:#fff;
}

.app-profile-info h1{
	margin:0 0 8px;
	font-size:20px;
	line-height:1.25;
	font-weight:700;
	color:#0f172a;
}

.app-profile-developer{
	font-size:13px;
	color:#2563eb;
	font-weight:600;
}

.app-profile-desc{
	margin:0 0 20px;
	font-size:14px;
	line-height:1.75;
	color:#334155;
}

.app-profile-actions{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:10px;
}

.app-profile-submeta{
	display:flex;
	flex-wrap:wrap;
	gap:8px;
	margin-top:6px;
	font-size:14px;
	font-weight:500;
	color:#121314;
}

.app-main-btn,
.app-sub-btn{
	height:44px;
	border-radius:999px;
	display:flex;
	align-items:center;
	justify-content:center;
	font-size:15px;
	font-weight:400;
	text-decoration:none;
}

.app-main-btn{
	background:#111827;
	color:#fff;
}

.app-sub-btn{
	background:#F6F7FA;
	color:#121314;
}

.app-main-btn:hover{
	color:#fff;
	background:#000;
}

.app-sub-btn:hover{
	color:#111827;
	background:#dbe1e8;
}

@media(max-width:768px){
	.app-profile-section{
		padding:24px 18px;
		border-radius:18px;
	}

	.app-profile-head{
		gap:16px;
	}

	.app-profile-logo{
		width:72px;
		height:72px;
		border-radius:18px;
	}

	.app-profile-info h1{
		font-size:18px;
	}

	.app-profile-actions{
		grid-template-columns:1fr;
	}
}

html.dark-mode .app-profile-section{
	background:#121314;
        border: 1px solid #212223;
}

html.dark-mode .app-profile-logo{
	background:#121314;
}

html.dark-mode .app-profile-info h1{
	color:#f3f4f6;
}

html.dark-mode .app-profile-desc{
	color:#fff;
}

html.dark-mode .app-profile-submeta{
	color:#d4d4d8;
}

html.dark-mode .app-sub-btn{
	background:#27272a;
	color:#f3f4f6;
}

html.dark-mode .app-sub-btn:hover{
	background:#32343a;
	color:#fff;
}

html.dark-mode .app-main-btn{
	background:#fff;
	color:#333;
}

html.dark-mode .app-download-desc{
	color:#fff;
}

.app-download-section{
	margin:24px 0;
	padding:16px;
	border-radius:20px;
	background:#fff;
}

.app-download-section h2{
	margin-top:0;
}

.app-download-desc{
	margin:0 0 20px;
	color:#475569;
	font-size:17px;
}

.app-download-grid{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:12px;
}

.app-download-card{
	display:flex;
	align-items:center;
	gap:10px;
	min-height:56px;
	padding:0 18px;
	border-radius:16px;
	background:#111827;
	color:#fff;
	font-weight:800;
}

.app-download-card:hover{
	color:#fff;
	background:#000;
}

.app-download-icon svg{
	width:20px;
	height:20px;
	display:block;
	fill:currentColor;
}

@media(max-width:768px){
	.app-download-section{
		padding:22px 18px;
	}

	.app-download-grid{
		grid-template-columns:1fr;
	}
}

/* =========================
        Download Section
========================= */

#app-download-section{
	scroll-margin-top:120px;
}

.app-info-table-section{
	margin-bottom:16px;
	padding:16px;
	border-radius:20px;
	background:#fff;
}

.app-info-table-head{
	margin-bottom:28px;
}

.app-info-table-head h2{
	margin:0;
	font-size:16px;
	line-height:1.2;
}

.app-info-grid{
	display:grid;
	grid-template-columns:1fr 1fr;
	column-gap:25px;
	row-gap:10px;
}

.app-info-item{
	display:grid;
	grid-template-columns:80px 1fr;
	column-gap:10px;
	align-items:start;
}

.app-info-label{
	font-size:14px;
	font-weight:500;
	color:#64748b;
}

.app-info-value{
	font-size:13px;
	font-weight:400;
	line-height:1.6;
	color:#111827;
	word-break:break-word;
}

html.dark-mode .app-info-table-section{
	background:#121314;
        border: 1px solid #212223;
}

html.dark-mode .app-info-label{
       color: #f3f4f5;
}

html.dark-mode .app-info-value{
	color:#f3f4f6;
}

html.dark-mode .entry-content .wp-block-group,
html.dark-mode .entry-content .wp-block-group.has-background,
html.dark-mode .entry-content .wp-block-list.has-background{
	background:#121314;
        border: 1px solid #212223;
	color:#f3f4f6 !important;
}

html.dark-mode .app-download-card{
        background:#252626;
}

@media(max-width:768px){

	.app-info-table-section{
		padding:26px 22px;
		border-radius:22px;
	}

	.app-info-table-head h2{
		font-size:16px;
	}

	.app-info-grid{
		grid-template-columns:1fr;
		row-gap:20px;
	}

	.app-info-item{
		grid-template-columns:86px 1fr;
		column-gap:12px;
	}

	.app-info-value{
		font-size:16px;
	}
}

/* =========================
   Feature Intro
========================= */

.feature-intro-section{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:18px;
	align-items:center;
	margin:20px 0;
	padding:20px;
	border-radius:24px;
	background:#fff;
}

.feature-intro-text h2,
.feature-card-grid-wrap h2{
	margin:0 0 14px;
	font-size:20px;
	line-height:1.35;
	color:#111827;
}

.feature-intro-text p{
	margin:0;
	font-size:15px;
	line-height:1.8;
	color:#475569;
}

.feature-intro-section img{
	width:100%;
	border-radius:18px;
	object-fit:cover;
}


/* =========================
   Feature Card
========================= */

.feature-card-grid-wrap{
	margin:20px 0;
	padding:20px;
	border-radius:24px;
	background:#fff;
}

.feature-card-grid{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:16px;
}

.feature-info-card{
	overflow:hidden;
	border-radius:20px;
	background:#F3F5F7;
}

.feature-info-body{
	padding:20px;
}

.feature-info-body h3{
	margin:0 0 12px;
	font-size:18px;
	line-height:1.45;
	color:#111827;
}

.feature-info-body p{
	margin:0;
	font-size:14px;
	line-height:1.75;
	color:#475569;

	display:-webkit-box;
	-webkit-line-clamp:5;
	-webkit-box-orient:vertical;
	overflow:hidden;
}

.feature-info-card img{
	width:100%;
	aspect-ratio:3 / 2;
	object-fit:cover;
}


/* =========================
   Mobile
========================= */

@media(max-width:768px){

	.feature-intro-section,
	.feature-card-grid{
		grid-template-columns:1fr;
	}

	.feature-intro-section,
	.feature-card-grid-wrap{
		padding:16px;
		border-radius:20px;
	}

	.feature-info-body{
		padding:18px;
	}

	.feature-info-body h3{
		font-size:17px;
	}

	.feature-intro-text p,
	.feature-info-body p{
		font-size:14px;
		line-height:1.75;
	}
}

/* =========================
   Feature Dark Mode
========================= */

html.dark-mode .feature-intro-section,
html.dark-mode .feature-card-grid-wrap{
	background:#1c1d1f;
}

html.dark-mode .feature-info-card{
	background:#24262a;
}

html.dark-mode .feature-intro-text h2,
html.dark-mode .feature-card-grid-wrap h2,
html.dark-mode .feature-info-body h3{
	color:#f3f4f6;
}

html.dark-mode .feature-intro-text p,
html.dark-mode .feature-info-body p{
	color:#cbd5e1;
}

html.dark-mode .feature-intro-section img,
html.dark-mode .feature-info-card img{
	filter:brightness(.96);
}

/* =========================
   FAQ Section
========================= */

.faq-section{
	margin:16px 0;
	padding:14px 16px;
	border-radius:20px;
	background:#fff;
}

.faq-section h2{
	margin:0 0 12px;
	font-size:18px;
	line-height:1.2;
}

.entry-content .faq-section h2{
	margin:0 0 12px;
	font-size:18px;
	line-height:1.2;
}

.faq-list{
	margin-top:0 !important;
	padding-top:0 !important;
	display:flex;
	flex-direction:column;
	gap:0;
}

.faq-item{
	padding:16px 0;
	border-bottom:1px solid #e5e7eb;
	background:#fff;
}

.faq-item:first-child{
	margin-top:0 !important;
	padding-top:0 !important;
}

.faq-item:first-child .faq-question{
	margin-top:0 !important;
}

.faq-item:last-child{
	padding-bottom:0;
	border-bottom:0;
}

.faq-list > br{
	display:none;
}

.faq-question{
	margin-bottom:10px;
	font-size:16px;
	font-weight:700;
	line-height:1.45;
	color:#111827;
}

.faq-answer{
	font-size:15px;
	line-height:1.8;
	color:#4b5563;
}

.faq-answer p{
	margin:0;
}

html.dark-mode .faq-section,
html.dark-mode .faq-item{
	background:#1c1d1f;
}

html.dark-mode .faq-item{
	border-color:#2f3033;
}

html.dark-mode .faq-question{
	color:#f3f4f6;
}

html.dark-mode .faq-answer{
	color:#cbd5e1;
}

/* =========================
   Related Apps
========================= */

.related-apps-section{
	margin:48px 0 0;
	padding:28px;
	border-radius:24px;
	background:#fff;
}

.related-apps-head{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:16px;
	margin-bottom:22px;
}

.related-apps-head h2{
	margin:0;
	font-size:22px;
	line-height:1.25;
}

.related-apps-head a{
	font-size:14px;
	font-weight:700;
	color:#2563eb;
}

.related-apps-grid{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:14px;
}

.related-app-card{
	display:flex;
	gap:14px;
	align-items:flex-start;
	padding:16px;
	border-radius:18px;
	background:#f8fafc;
	color:#111827;
	transition:transform .2s ease, background .2s ease;
}

.related-app-card:hover{
	transform:translateY(-2px);
	background:#eef2ff;
	color:#111827;
}

.related-app-card img{
	width:48px;
	height:48px;
	border-radius:14px;
	object-fit:contain;
	background:#fff;
	flex:0 0 auto;
}

.related-app-info h3{
	margin:0 0 6px;
	font-size:16px;
	line-height:1.35;
	color:#111827;
}

.related-app-info p{
	margin:0;
	font-size:14px;
	line-height:1.6;
	color:#64748b;
}

@media(max-width:768px){

	.related-apps-section{
		padding:22px 18px;
		border-radius:22px;
	}

	.related-apps-grid{
		grid-template-columns:1fr;
	}
}

/* =========================
   Single Article
========================= */

.single-article {
       background: #fff;
       padding: 24px;
       border-radius: 14px;
}

.article-header{
	margin-bottom:10px;
}

.article-header h1{
	margin:0 0 10px;
	font-size:26px;
	line-height:1.3;
	font-weight:700;
	color:#111827;
	word-break:keep-all;
}

.article-meta{
	display:flex;
	flex-wrap:wrap;
	gap:14px;
	font-size:14px;
	color:#64748b;
}

.article-divider{
	height:1px;
	margin-bottom:22px;
	background:#e5e7eb;
}

html.dark-mode .article-header h1{
	color:#f3f4f6;
}

html.dark-mode .article-divider{
	background:#2f3033;
}

@media(max-width:768px){

	.article-header h1{
		font-size:28px;
	}

	.article-meta{
		font-size:13px;
	}
}

/* =========================
   Dark Mode Final Overrides
========================= */

html.dark-mode .entry-content .wp-block-group,
html.dark-mode .entry-content .wp-block-group.has-background,
html.dark-mode .entry-content .wp-block-list.has-background{
	background:#121314 !important;
	color:#f3f4f6 !important;
}

html.dark-mode .entry-content .wp-block-group *,
html.dark-mode .entry-content .wp-block-list.has-background *{
	color:#f3f4f6 !important;
}

html.dark-mode .entry-content .wp-block-list.has-background{
	border-color:#3f3f46 !important;
}

html.dark-mode .entry-content p.has-background{
	background:#121314 !important;
	color:#f3f4f6 !important;
}

.site-brand{
	gap:14px;
	pointer-events:auto;
}

.site-logo{
	margin-right:2px;
}

/* =========================
   Archive Common
========================= */

.archive-list-area{
	max-width:1000px;
	margin:0 auto;
	padding:40px 20px 70px;
}

.archive-list-head{
	margin-bottom:28px;
}

.archive-list-head h1{
	margin:0 0 8px;
	font-size: 26px;
	line-height:1.25;
	color:#111827;
}

.archive-list-head p{
	margin:0;
	font-size:15px;
	color:#64748b;
}

.archive-card-grid{
	display:grid;
	grid-template-columns:repeat(6, 1fr);
	gap:14px;
}

.archive-card{
	overflow:hidden;
	display:flex;
	flex-direction:column;
	padding:0;
	border:1px solid #e5e7eb;
	border-radius:10px;
	background:#fff;
	color:#111827;
	transition:transform .2s ease, box-shadow .2s ease;
}

.archive-card:hover{
	transform:translateY(-3px);
	box-shadow:0 10px 24px rgba(15,23,42,.08);
	color:#111827;
}

.archive-card > img{
	width:100%;
	height:112px;
	padding:24px 44px;
	object-fit:contain;
	border-radius:0;
	background:#f1f5f9;
}

.archive-card-body{
	padding:12px 14px 14px;
}

.archive-card-body h2{
	margin:0 0 18px;
	font-size:14px;
	line-height:1.35;
	font-weight:700;
	color:#111827;
	word-break:keep-all;
}

.archive-card-meta{
	display:flex;
	align-items:center;
	flex-wrap:wrap;
	gap:6px;
	font-size:12px;
	font-weight:400;
	line-height:1.4;
	color:#475569;
}

.archive-card-meta span + span::before{
	content:"·";
	margin-right:6px;
	color:#94a3b8;
}

.archive-loadmore-wrap{
	display:flex;
	justify-content:center;
	margin-top:36px;
}

.archive-loadmore-btn{
	min-width:140px;
	height:40px;
	padding:0 20px;
	border:0;
	border-radius:999px;
	background:#DBE1E8;
	color:#111827;
	font-size:14px;
	font-weight:400;
	cursor:pointer;
}

.archive-loadmore-btn:hover{
	background:#F3F5F7;
}

.archive-loadmore-btn:disabled{
	opacity:.6;
	cursor:wait;
}

.archive-empty{
	padding:32px;
	border-radius:24px;
	background:#fff;
	text-align:center;
	color:#64748b;
}

html.dark-mode .archive-list-head h1,
html.dark-mode .archive-card-body h2{
	color:#f3f4f6;
}

html.dark-mode .archive-card,
html.dark-mode .archive-empty{
	background:#1c1d1f;
	color:#f3f4f6;
}

html.dark-mode .archive-card img{
	background:#121314;
}

html.dark-mode .archive-card-body p{
	color:#cbd5e1;
}

@media(max-width:1024px){
	.archive-card-grid{
		grid-template-columns:repeat(4, 1fr);
	}
}

@media(max-width:768px){
	.archive-card-grid{
		grid-template-columns:repeat(3, 1fr);
		gap:12px;
	}

	.archive-card > img{
		height:96px;
		padding:20px 34px;
	}
}

@media(max-width:480px){
	.archive-card-grid{
		grid-template-columns:repeat(2, 1fr);
	}

	.archive-card > img{
		height:92px;
		padding:18px 30px;
	}
}

/* =========================
   Archive Articles
========================= */

.article-card-grid{
	grid-template-columns:repeat(4, 1fr);
}

.article-card > img{
	width:100%;
	height:130px;
	padding:0;
	object-fit:cover;
	background:#f1f5f9;
}

.article-card .archive-card-body h2{
	display:-webkit-box;
	-webkit-line-clamp:2;
	-webkit-box-orient:vertical;
	overflow:hidden;
	min-height:38px;
	margin:0 0 12px;
	font-size:14px;
	line-height:1.35;
}

.article-card .archive-card-meta{
	font-size:12px;
	color:#64748b;
}

@media(max-width:768px){
	.article-card-grid{
		grid-template-columns:repeat(2, 1fr);
	}

	.article-card > img{
		height:110px;
	}
}


/* =========================
   Dark Mode Flicker Fix
========================= */

html{
	background:#f8fafc;
}

html.dark-mode{
	background:#131314;
}

html.dark-mode body{
	background:#131314;
	color:#f3f4f6;
}

html.dark-mode *,
html.light-mode *{
	transition:none !important;
}