/*
Theme Name: AJKyaPakayen
Theme URI: https://ajkyapakayen.com/
Author: Haris
Author URI: https://webbyharis.com/
Description: AI-Powered Food Blog Theme for AJKyaPakayen
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ajkyapakayen
Tags: blog, food, ai, custom-background, custom-logo, featured-images
*/

:root{
--primary:#0c5364;
--primary-dark:#083a45;
--accent:#ff9f43;
--bg:#f8fbfc;
--white:#ffffff;
--text:#1f2937;
--gray:#64748b;
--border:#e5e7eb;
--shadow:0 10px 30px rgba(0,0,0,.08);
}

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

body{
font-family:'Poppins',sans-serif;
background:var(--bg);
color:var(--text);
line-height:1.7;
}

.container{
width:min(1200px,90%);
margin:auto;
}

a{
text-decoration:none;
}

img{
max-width:100%;
display:block;
}

.section{
padding:90px 0;
}

/* NAVBAR */

.navbar{
position:sticky;
top:0;
z-index:999;
background:rgba(255,255,255,.95);
backdrop-filter:blur(15px);
border-bottom:1px solid #eee;
}

.nav-inner{
display:flex;
justify-content:space-between;
align-items:center;
padding:18px 0;
}

.logo{
font-size:28px;
font-weight:700;
color:var(--primary);
}

.logo span{
color:var(--accent);
}

.nav-links{
display:flex;
gap:30px;
list-style:none;
}

.nav-links a{
color:var(--text);
font-weight:500;
}

.nav-right{
display:flex;
align-items:center;
gap:15px;
}

.theme-btn{
background:none;
border:none;
font-size:22px;
cursor:pointer;
}

.mobile-btn{
display:none;
font-size:28px;
cursor:pointer;
}

.btn{
background:var(--primary);
color:white;
padding:14px 24px;
border-radius:50px;
display:inline-block;
font-weight:600;
transition:.3s;
}

.btn:hover{
background:var(--primary-dark);
}

/* HERO */

.hero{
padding:100px 0;
}

.hero-grid{
display:grid;
grid-template-columns:1.1fr 1fr;
gap:60px;
align-items:center;
}

.badge{
display:inline-block;
background:#e5f5f8;
color:var(--primary);
padding:10px 18px;
border-radius:50px;
font-size:14px;
font-weight:600;
margin-bottom:20px;
}

.hero h1{
font-family:'Playfair Display',serif;
font-size:68px;
line-height:1.1;
margin-bottom:20px;
}

.hero h1 span{
color:var(--accent);
}

.hero p{
font-size:18px;
color:var(--gray);
margin-bottom:30px;
max-width:600px;
}

.hero-actions{
display:flex;
gap:15px;
flex-wrap:wrap;
}

.btn-outline{
border:2px solid var(--primary);
color:var(--primary);
padding:14px 24px;
border-radius:50px;
font-weight:600;
}

.hero-stats{
display:flex;
gap:50px;
margin-top:40px;
}

.hero-stats h3{
color:var(--primary);
font-size:32px;
}

.hero-card{
background:white;
border-radius:24px;
overflow:hidden;
box-shadow:var(--shadow);
}

.hero-card img{
height:350px;
width:100%;
object-fit:cover;
}

.hero-card-content{
padding:25px;
}

/* SEARCH */

.search-wrap{
margin-top:-20px;
}

.search-box{
background:white;
padding:18px;
display:flex;
border-radius:20px;
box-shadow:var(--shadow);
}

.search-box input{
flex:1;
border:none;
outline:none;
font-size:16px;
padding:10px;
}

.search-box button{
background:var(--primary);
color:white;
border:none;
padding:14px 24px;
border-radius:12px;
cursor:pointer;
}

/* TITLES */

.section-title{
font-family:'Playfair Display',serif;
font-size:44px;
margin-bottom:40px;
}

/* FEATURED POSTS */

.posts-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:30px;
}

.card{
background:white;
border-radius:20px;
overflow:hidden;
box-shadow:var(--shadow);
transition:.3s;
}

.card:hover{
transform:translateY(-8px);
}

.card img{
height:240px;
width:100%;
object-fit:cover;
}

.card-content{
padding:22px;
}

.tag{
display:inline-block;
background:#e5f5f8;
color:var(--primary);
padding:7px 14px;
border-radius:30px;
font-size:12px;
font-weight:600;
margin-bottom:15px;
}

.card h3{
margin-bottom:12px;
font-size:22px;
}

.card p{
color:var(--gray);
}

/* CATEGORIES */

.categories{
display:grid;
grid-template-columns:repeat(5,1fr);
gap:20px;
}

.category{
background:white;
padding:30px;
border-radius:20px;
text-align:center;
box-shadow:var(--shadow);
transition:.3s;
}

.category:hover{
transform:translateY(-8px);
}

.category span{
font-size:40px;
display:block;
margin-bottom:10px;
}

/* CTA */

.cta{
background:linear-gradient(135deg,var(--primary),var(--primary-dark));
padding:70px;
border-radius:30px;
color:white;
text-align:center;
}

.cta h2{
font-size:42px;
margin-bottom:15px;
}

.cta p{
max-width:700px;
margin:auto;
margin-bottom:25px;
}

.cta .btn{
background:var(--accent);
}

/* Detail Page */

/* Hero */

.article-hero{
padding:90px 0 50px;
text-align:center;
}

.badge{
display:inline-block;
padding:8px 16px;
background:#e8f5f7;
color:var(--primary);
border-radius:50px;
font-size:13px;
font-weight:600;
margin-bottom:20px;
}

.article-hero h1{
font-family:'Playfair Display',serif;
font-size:64px;
line-height:1.1;
max-width:900px;
margin:auto;
margin-bottom:25px;
}

.article-desc{
max-width:700px;
margin:auto;
font-size:18px;
color:var(--gray);
}

.article-meta{
margin-top:40px;
display:flex;
justify-content:space-between;
align-items:center;
gap:20px;
flex-wrap:wrap;
}

.author{
display:flex;
align-items:center;
gap:15px;
}

.author img{
width:55px;
height:55px;
border-radius:50%;
}

.author h4{
font-size:16px;
}

.author span{
font-size:14px;
color:var(--gray);
}

.share-icons{
display:flex;
gap:10px;
}

.share-icons a{
width:40px;
height:40px;
display:flex;
align-items:center;
justify-content:center;
background:white;
border-radius:50%;
box-shadow:var(--shadow);
color:var(--primary);
}

/* Featured Image */

.featured-image{
padding-bottom:80px;
}

.featured-image img{
width:100%;
height:550px;
object-fit:cover;
border-radius:30px;
box-shadow:var(--shadow);
}

/* Content */

.article-content{
padding-bottom:80px;
}

.lead{
font-size:22px;
font-weight:500;
margin-bottom:35px;
color:#334155;
}

.article-content h2{
font-size:38px;
font-family:'Playfair Display',serif;
margin-top:50px;
margin-bottom:20px;
}

.article-content p{
margin-bottom:20px;
color:#475569;
}

.article-content ul{
padding-left:20px;
margin-bottom:25px;
}

.article-content li{
margin-bottom:10px;
}

.content-image{
margin:40px 0;
border-radius:24px;
box-shadow:var(--shadow);
}

.insight-card{
background:#eaf8fb;
border-left:5px solid var(--primary);
}

.pro-tip{
background:#fff7ec;
border-left:5px solid var(--accent);
}

.takeaway-card{
background:#eefbf3;
border-left:5px solid #22c55e;
}

.insight-card h3,
.pro-tip h3,
.takeaway-card h3{
margin-bottom:10px;
}

.insight-card, .pro-tip, .takeaway-card {
    padding: 30px;
    border-radius: 24px;
    margin: 40px 0;
    box-shadow: var(--shadow);
}


/* FOOTER */

footer{
padding:70px 0;
background:white;
margin-top:80px;
}

.footer-grid{
display:grid;
grid-template-columns:2fr 1fr 1fr 1fr;
gap:40px;
}

.footer-links{
list-style:none;
}

.footer-links li{
margin-bottom:10px;
}

.footer-links a{
color:var(--gray);
}

.copy{
margin-top:40px;
text-align:center;
color:var(--gray);
}

/* DARK MODE */

body.dark{
background:#0f172a;
color:white;
}

body.dark .navbar,
body.dark .card,
body.dark .hero-card,
body.dark .search-box,
body.dark .category,
body.dark footer{
background:#1e293b;
color:white;
}

body.dark .card p,
body.dark .hero p,
body.dark .copy,
body.dark .footer-links a{
color:#cbd5e1;
}

/* RESPONSIVE */

@media(max-width:992px){

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

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

.categories{
grid-template-columns:repeat(3,1fr);
}

.hero h1{
font-size:54px;
}

}

@media(max-width:768px){

.mobile-btn{
display:block;
}

.nav-links{
display:none;
}

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

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

.hero h1{
font-size:42px;
}

.hero-stats{
gap:25px;
flex-wrap:wrap;
}

.search-box{
flex-direction:column;
gap:10px;
}

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

.cta{
padding:40px 25px;
}

.cta h2{
font-size:32px;
}

}
