/* --- IMPORT FONT --- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

/* --- GLOBAL RESET & TYPOGRAPHY --- */
*{
	margin:0;
	padding:0;
	box-sizing:border-box;
	font-family:'Nunito',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
	-webkit-tap-highlight-color:transparent;
}

body{
	background-color:#fafafa;
	color:#1f2937;
	line-height:1.6;
	overflow-x:hidden;
}

a{
	text-decoration:none;
	color:inherit;
}

ul{
	list-style:none;
}

/* --- ANNOUNCEMENT BAR --- */
.announcement-bar{
	background:linear-gradient(135deg,#000000,#1a1a1a);
	color:white;
	text-align:center;
	padding:10px 15px;
	font-weight:700;
	font-size:0.9rem;
	position:relative;
	overflow:hidden;
	display:flex;
	justify-content:center;
	align-items:center;
}

.announcement-text i{
	color:#1AFF64;
	margin-right:8px;
	animation:pulse 2s infinite;
}

@keyframes pulse{
	0%,100%{opacity:1;}
	50%{opacity:0.7;}
}

/* --- HEADER --- */
header{
	background-color:#fffffff5;
	padding:0 15px;
	height:70px;
	box-shadow:0 2px 10px rgba(0,0,0,0.05);
	position:sticky;
	top:0;
	z-index:1000;
	display:flex;
	align-items:center;
}

.nav-container{
	display:flex;
	justify-content:space-between;
	align-items:center;
	width:100%;
	max-width:1200px;
	margin:0 auto;
	position:relative;
}

.logo a img{
	width:160px;
	display:block;
}

/* Desktop Menu */
.desktop-menu{
	display:flex;
	align-items:center;
	gap:25px;
	position:absolute;
	left:50%;
	transform:translateX(-50%);
}

.desktop-menu a{
	color:#333;
	text-decoration:none;
	font-weight:700;
	font-size:1.15rem;
	transition:color 0.3s;
	display:flex;
	gap:5px;
}

.desktop-menu a:hover{
	color:#1AFF64;
}

.desktop-menu a i{
	font-size:1.2rem;
}

/* --- SEARCH BAR --- */
.desktop-search-wrapper{
	width:100%;
	max-width:300px;
	margin-left:auto;
	display:block;
}

.search-input-group{
	display:flex;
	align-items:center;
	background:#f3f4f6;
	border-radius:50px;
	padding:5px 5px 5px 20px;
	border:1px solid #e5e7eb;
	transition:all 0.3s ease;
}

.search-input-group:focus-within{
	background:#fff;
	border-color:#1AFF64;
	box-shadow:0 0 0 3px rgba(26,255,100,0.1);
}

.search-input-group input{
	border:none;
	background:transparent;
	outline:none;
	flex:1;
	font-size:1rem;
	font-weight:600;
	color:#333;
	width:100%;
}

.search-input-group button{
	background:#1AFF64;
	border:none;
	width:36px;
	height:36px;
	border-radius:50%;
	color:#000;
	cursor:pointer;
	display:flex;
	align-items:center;
	justify-content:center;
	font-size:1rem;
	transition:transform 0.2s;
}

.search-input-group button:hover{
	transform:scale(1.05);
}

/* --- MOBILE ELEMENTS --- */
.mobile-header-icons{
	display:none;
	align-items:center;
	gap:15px;
}

.icon-btn{
	background:none;
	border:none;
	font-size:1.3rem;
	color:#1f2937;
	padding:8px;
	cursor:pointer;
	transition:color 0.2s;
}

.icon-btn:hover{
	color:#1AFF64;
}

.mobile-search-overlay{
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:100vh;
	background-color:#ffffff;
	z-index:2000;
	transform:translateX(-100%);
	transition:transform 0.3s cubic-bezier(0.4,0.0,0.2,1);
	display:flex;
	flex-direction:column;
}

.mobile-search-overlay.active{
	transform:translateX(0);
}

.search-overlay-header{
	display:flex;
	align-items:center;
	padding:15px;
	border-bottom:1px solid #f1f1f1;
	gap:15px;
	background:#fff;
}

.close-search-btn{
	background:none;
	border:none;
	font-size:1.2rem;
	color:#555;
	padding:10px;
	cursor:pointer;
}

.mobile-input-container{
	flex:1;
	position:relative;
}

.mobile-input-container input{
	width:100%;
	border:none;
	outline:none;
	font-size:1.1rem;
	font-weight:600;
	color:#333;
	background:transparent;
}

.mobile-search-submit{
	background:#1AFF64;
	border:none;
	width:40px;
	height:40px;
	border-radius:50%;
	display:flex;
	align-items:center;
	justify-content:center;
	cursor:pointer;
}

.search-suggestions{
	padding:20px;
}

.search-suggestions h4{
	color:#9ca3af;
	font-size:0.85rem;
	text-transform:uppercase;
	letter-spacing:0.5px;
	margin-bottom:15px;
	font-weight:700;
}

.suggestion-tags{
	display:flex;
	flex-wrap:wrap;
	gap:10px;
}

.tag{
	background:#f3f4f6;
	padding:8px 16px;
	border-radius:20px;
	font-size:0.9rem;
	font-weight:600;
	color:#4b5563;
	cursor:pointer;
	transition:background 0.2s;
}

.tag:hover{
	background:#e5e7eb;
}

/* --- SIDE MENU --- */
.side-menu{
	position:fixed;
	top:0;
	left:-300px;
	width:300px;
	height:100vh;
	background-color:#ffffff;
	transition:left 0.3s ease;
	z-index:1500;
	box-shadow:2px 0 10px rgba(0,0,0,0.1);
	overflow-y:auto;
	display:flex;
	flex-direction:column;
}

.side-menu.active{
	left:0;
}

.side-menu-header{
	padding:20px;
	border-bottom:1px solid #f1f1f1;
	display:flex;
	justify-content:space-between;
	align-items:center;
}

.side-menu-header h3{
	font-size:1.2rem;
	color:#111;
	font-weight:800;
}

.side-menu-header h3 i{
	color:#1AFF64;
	margin-right:5px;
}

.menu-categories{
	padding:20px;
}

.category-grid{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:12px;
}

.menu-category-item{
	background:#fff;
	border:1px solid #e2e8f0;
	border-radius:8px;
	padding:15px;
	text-align:center;
	transition:all 0.2s;
	display:flex;
	flex-direction:column;
	align-items:center;
	gap:8px;
}

.menu-category-item:hover{
	border-color:#1AFF64;
	transform:translateY(-2px);
	box-shadow:0 4px 10px rgba(0,0,0,0.05);
}

.menu-category-item i{
	font-size:1.5rem;
	color:#1AFF64;
}

.menu-category-item span{
	font-size:0.9rem;
	font-weight:700;
}

.side-nav-links{
	padding:10px 0;
}

.side-nav-links li{
	border-bottom:1px solid #f9f9f9;
}

.side-nav-links a{
	display:flex;
	align-items:center;
	padding:15px 25px;
	color:#333;
	font-size:1rem;
	font-weight:600;
}

.side-nav-links a i{
	width:30px;
	color:#666;
}

.side-nav-links a:hover{
	color:#1AFF64;
	background:#f9f9f9;
}

/* --- BANNER SLIDER --- */
.banner-container{
	width:100%;
	overflow:hidden;
	padding:20px 0;
	position:relative;
}

.banner-slider{
	display:flex;
	gap:15px;
	transition:transform 0.6s cubic-bezier(0.25,1,0.5,1);
	will-change:transform;
}

/* Banner smooth entrance animation */
.banner-slide{
	flex:0 0 60%;
	aspect-ratio:16/9;
	border-radius:16px;
	overflow:hidden;
	position:relative;
	box-shadow:0 8px 16px rgba(0,0,0,0.1);
	transform:scale(1);
	transition:transform 0.3s ease, box-shadow 0.3s ease;
	cursor:pointer;
	display:block;
	animation: bannerFadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
	opacity: 0;
	transform: scale(0.95);
}

/* Staggered animation for each banner slide */
.banner-slide:nth-child(1) {
	animation-delay: 0.1s;
}

.banner-slide:nth-child(2) {
	animation-delay: 0.2s;
}

.banner-slide:nth-child(3) {
	animation-delay: 0.3s;
}

.banner-slide:nth-child(4) {
	animation-delay: 0.4s;
}

.banner-slide.clone {
	animation: none;
	opacity: 1;
	transform: scale(1);
}

@keyframes bannerFadeIn {
	0% {
		opacity: 0;
		transform: scale(0.95);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

.banner-slide:hover{
	transform:translateY(-2px) scale(1) !important;
	box-shadow:0 12px 24px rgba(0,0,0,0.15);
}

.banner-image{
	width:100%;
	height:100%;
	background-size:cover;
	background-position:center;
	transition:transform 0.5s ease;
}

.banner-slide:hover .banner-image{
	transform:scale(1.05);
}

.banner-content{
	position:absolute;
	bottom:0;
	left:0;
	width:100%;
	padding:30px 20px 15px;
	background:linear-gradient(to top,rgba(0,0,0,0.8),transparent);
	z-index:2;
}

.banner-content h3{
	color:white;
	font-size:1.5rem;
	font-weight:800;
	text-shadow:0 2px 4px rgba(0,0,0,0.3);
}

.banner-tag{
	position:absolute;
	top:15px;
	left:15px;
	padding:5px 12px;
	border-radius:20px;
	font-size:0.75rem;
	font-weight:800;
	text-transform:uppercase;
	z-index:3;
	color:#fff;
	box-shadow:0 2px 5px rgba(0,0,0,0.2);
}

.tag-editor{
	background-color:#facc15;
	color:#000;
}

/* --- SECTION HEADERS --- */
.section-header{
	max-width:1200px;
	margin:25px auto 10px;
	padding:0 10px;
	display:flex;
	justify-content:space-between;
	align-items:center;
}

.header-title{
	display:flex;
	align-items:center;
}

.header-title h2{
	font-size:1.5rem;
	color:#0e3042;
	font-weight:800;
}

.more-link{
	font-size:0.9rem;
	font-weight:700;
	color:#374151;
	display:flex;
	align-items:center;
	gap:5px;
	background:#e5e7eb;
	padding:5px 15px;
	border-radius:20px;
	transition:background 0.2s,color 0.2s;
	text-decoration:none;
}

.more-link:hover{
	background:#1AFF64;
	color:#0e3042;
}

/* --- FEATURED / TOP DOWNLOADS STYLES --- */
.featured-wrapper{
	max-width:1200px;
	margin:0 auto;
	position:relative;
}

.featured-scroll{
	display:flex;
	overflow-x:auto;
	gap:15px;
	padding:5px 10px 25px 10px;
	scroll-behavior:smooth;
	scrollbar-width:none;
	-ms-overflow-style:none;
}

.featured-scroll::-webkit-scrollbar{
	display:none;
}

.scroll-arrow{
	position:absolute;
	top:50%;
	transform:translateY(-50%);
	width:40px;
	height:40px;
	background-color:white;
	border-radius:50%;
	box-shadow:0 3px 10px rgba(0,0,0,0.2);
	display:flex;
	align-items:center;
	justify-content:center;
	cursor:pointer;
	z-index:10;
	opacity:0;
	transition:all 0.3s ease;
}

.featured-wrapper:hover .scroll-arrow{
	opacity:1;
}

.scroll-arrow:hover{
	background-color:#1AFF64;
	color:white;
	transform:translateY(-50%) scale(1.1);
}

.scroll-arrow.left{
	left:5px;
}

.scroll-arrow.right{
	right:5px;
}

.featured-card{
	flex:0 0 280px;
	display:flex;
	flex-direction:column;
	gap:10px;
	cursor:pointer;
	transition:transform 0.2s;
}

.featured-card:hover{
	transform:translateY(-3px);
}

.featured-banner{
	width:100%;
	aspect-ratio:16/9;
	border-radius:12px;
	background-size:cover;
	background-position:center;
	background-color:#f3f4f6;
	box-shadow:0 4px 6px rgba(0,0,0,0.05);
	position:relative;
	overflow:hidden;
}

.featured-banner::after{
	content:'';
	position:absolute;
	bottom:0;
	left:0;
	width:100%;
	height:40%;
	background:linear-gradient(to top,rgba(0,0,0,0.3),transparent);
}

.featured-info{
	display:flex;
	align-items:flex-start;
	gap:10px;
	padding:0 2px;
}

.featured-icon-wrapper{
	position:relative;
	width:50px;
	height:50px;
	flex-shrink:0;
}

.featured-icon{
	width:100%;
	height:100%;
	border-radius:12px;
	background-size:cover;
	background-position:center;
	box-shadow:0 2px 4px rgba(0,0,0,0.1);
	background-color:#fff;
	position:relative;
}

.featured-text{
	flex:1;
	min-width:0;
}

.featured-text h3{
	font-size:1rem;
	font-weight:800;
	color:#0e3042;
	line-height:1.2;
	margin-bottom:2px;
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
	width:100%;
}

.featured-text p{
	font-size:0.85rem;
	color:#6b7280;
	font-weight:600;
	line-height:1.3;
	display:-webkit-box;
	-webkit-line-clamp:2;
	-webkit-box-orient:vertical;
	overflow:hidden;
}

/* ---------------------------------------------------------------------- */
/* --- ALL APPS GRID (Desktop + Mobile Flex List style) --- */
/* ---------------------------------------------------------------------- */
.apps-wrapper{
	max-width:1200px;
	margin:0 auto;
}

.new-apps-grid{
	display:grid;
	grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
	gap:15px;
	padding:0 10px 10px 10px;
	width:100%;
}

.new-app-card{
	display:flex;
	align-items:center;
	gap:15px;
	background:#ffffff;
	border-radius:14px;
	padding:12px;
	text-decoration:none;
	cursor:pointer;
	box-shadow:0 2px 10px rgba(0,0,0,0.04);
	border:1px solid #f1f5f9;
	transition:transform 0.2s ease,box-shadow 0.2s ease;
}

.new-app-card:hover{
	transform:translateY(-3px);
	box-shadow:0 6px 15px rgba(0,0,0,0.08);
}

.new-app-icon{
	width:70px;
	height:70px;
	border-radius:14px;
	background-size:cover;
	background-position:center;
	background-color:#f0f0f0;
	flex-shrink:0;
	box-shadow:0 2px 6px rgba(0,0,0,0.1);
}

.new-app-info{
	display:flex;
	flex-direction:column;
	justify-content:center;
	gap:3px;
	overflow:hidden;
	flex:1;
}

.new-app-title{
	font-size:1.05rem;
	font-weight:800;
	color:#1f2937;
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
	line-height:1.2;
}

.new-app-meta{
	font-size:0.85rem;
	color:#9ca3af;
	display:flex;
	align-items:center;
	gap:6px;
	font-weight:600;
}

.new-app-meta .rating{
	color:#6b7280;
	display:flex;
	align-items:center;
	gap:4px;
}

.new-app-meta .rating i{
	color:#f59e0b;
	font-size:0.75rem;
}

.new-app-mod{
	font-size:0.85rem;
	font-weight:700;
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
	margin-top:2px;
}

.mod-text-modded{
	color:#1AFF64;
}

.mod-text-original{
	color:#3b82f6;
}

/* --- UPDATED BLOG SECTION: DESKTOP GRID & BLOG PAGE STYLE --- */
.blog-wrapper{
	max-width:1200px;
	margin:40px auto;
	padding:0 10px;
}

.blog-scroll{
	display:grid;
	grid-template-columns:repeat(3,1fr);
	gap:25px;
	padding:10px 0;
}

.blog-card{
	background:#fff;
	border-radius:16px;
	overflow:hidden;
	box-shadow:0 4px 10px rgba(0,0,0,0.03);
	border:1px solid #f3f4f6;
	transition:transform 0.3s ease,box-shadow 0.3s ease,border-color 0.3s ease;
	display:flex;
	flex-direction:column;
	cursor:pointer;
	height:100%;
}

.blog-card:hover{
	transform:translateY(-5px);
	box-shadow:0 12px 25px rgba(0,0,0,0.08);
	border-color:#1AFF64;
}

.blog-thumb{
	width:100%;
	aspect-ratio:16/9;
	background-size:cover;
	background-position:center;
	background-color:#eee;
}

.blog-content{
	padding:20px;
	display:flex;
	flex-direction:column;
	flex:1;
}

.blog-cat{
	font-size:0.7rem;
	color:#1AFF64;
	font-weight:800;
	text-transform:uppercase;
	background:#0e3042;
	padding:5px 10px;
	border-radius:6px;
	align-self:flex-start;
	margin-bottom:12px;
	letter-spacing:0.5px;
}

.blog-title{
	font-size:1.15rem;
	font-weight:800;
	color:#1f2937;
	margin-bottom:10px;
	line-height:1.4;
	display:-webkit-box;
	-webkit-line-clamp:2;
	-webkit-box-orient:vertical;
	overflow:hidden;
}

.blog-excerpt{
	font-size:0.9rem;
	color:#6b7280;
	margin-bottom:15px;
	line-height:1.6;
	display:-webkit-box;
	-webkit-line-clamp:3;
	-webkit-box-orient:vertical;
	overflow:hidden;
	flex:1;
}

.blog-meta{
	display:flex;
	justify-content:space-between;
	align-items:center;
	border-top:1px solid #f1f5f9;
	padding-top:15px;
	font-size:0.8rem;
	color:#9ca3af;
	font-weight:700;
}

.blog-meta span{
	display:flex;
	align-items:center;
	gap:6px;
}

.blog-meta i{
	color:#cbd5e1;
}

/* --- DIVIDER --- */
.divider{
	max-width:1200px;
	margin:30px auto;
	padding:0 10px;
}

.divider hr{
	border:none;
	height:1px;
	background:linear-gradient(to right,transparent,#1AFF64,transparent);
}

/* --- FOOTER --- */
footer{
	background-color:#2c3e50;
	color:white;
	padding:40px 0 20px;
	margin-top:40px;
}

.footer-content{
	max-width:1200px;
	margin:0 auto;
	display:grid;
	grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
	gap:30px;
	padding:0 20px;
}

.footer-column h3{
	font-size:1.4rem;
	margin-bottom:20px;
	position:relative;
	padding-bottom:10px;
	font-weight:800;
}

.footer-column h3::after{
	content:'';
	position:absolute;
	bottom:0;
	left:0;
	width:50px;
	height:3px;
	background-color:#1AFF64;
}

.footer-column p{
	margin-bottom:20px;
	line-height:1.6;
	color:#ecf0f1;
	font-weight:600;
}

.footer-links{
	list-style:none;
}

.footer-links li{
	margin-bottom:12px;
}

.footer-links a{
	color:#ecf0f1;
	text-decoration:none;
	transition:color 0.3s;
	display:flex;
	align-items:center;
	font-weight:600;
}

.footer-links a:hover{
	color:#1AFF64;
}

.footer-links i{
	margin-right:10px;
	font-size:1.1rem;
}

.social-icons{
	display:flex;
	gap:15px;
	margin-top:20px;
}

.social-icons a{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:40px;
	height:40px;
	background-color:rgba(255,255,255,0.1);
	border-radius:50%;
	color:white;
	transition:background-color 0.3s,transform 0.3s;
}

.social-icons a:hover{
	background-color:#1AFF64;
	transform:translateY(-3px);
}

.copyright{
	text-align:center;
	padding-top:30px;
	margin-top:30px;
	border-top:1px solid rgba(255,255,255,0.1);
	font-size:0.9rem;
	color:#bdc3c7;
	font-weight:600;
}

/* --- NOTHING FOUND --- */
.nothing-found{
	grid-column:1/-1;
	text-align:center;
	padding:60px 20px;
	background:white;
	border-radius:15px;
	border:1px solid #e2e8f0;
}

.nothing-found.hidden{
	display:none;
}

.nothing-found i{
	font-size:4rem;
	color:#ddd;
	margin-bottom:20px;
	display:block;
}

.nothing-found h3{
	font-size:1.5rem;
	color:#666;
	margin-bottom:10px;
}

.nothing-found p{
	color:#999;
	font-size:1rem;
}

/* --- RESPONSIVE --- */
@media (max-width:1024px){
	.blog-scroll{
		grid-template-columns:repeat(2,1fr);
	}
}

@media (max-width:768px){
	.desktop-menu,.desktop-search-wrapper{
		display:none;
	}
	.mobile-header-icons{
		display:flex;
	}
	.featured-card{
		flex:0 0 280px;
	}
	.banner-slide{
		flex:0 0 85%;
	}
	.banner-content h3{
		font-size:1.2rem;
	}
	.blog-scroll{
		display:flex;
		overflow-x:auto;
		grid-template-columns:none;
		gap:15px;
		scrollbar-width:none;
	}
	.blog-scroll::-webkit-scrollbar{
		display:none;
	}
	.blog-card{
		flex:0 0 280px;
	}
}

@media (max-width:480px){
	.logo img{
		width:130px;
	}
	.featured-card{
		flex:0 0 240px;
	}
	.blog-card{
		flex:0 0 260px;
	}
	.category-grid{
		grid-template-columns:repeat(2,1fr);
	}
	.new-apps-grid{
		grid-template-columns:1fr;
	}
	.new-app-icon{
		width:62px;
		height:62px;
	}
	.new-app-title{
		font-size:0.95rem;
	}
}