/*
Theme Name: Hsnime Pyara
Theme URI: https://hsnime.org
Author: Hsnime
Description: Ek pyara, rounded-card style WordPress theme. Homepage par header mein category menu aur search bar, single post par sidebar (search + categories + latest posts) aur article ke neeche related articles show karta hai.
Version: 1.0
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: hsnime-pyara
*/

:root{
  --bg:#FAF7FF;
  --card:#FFFFFF;
  --violet:#7C3AED;
  --violet-light:#EDE4FF;
  --pink:#FF6B9D;
  --ink:#2D2A3D;
  --slate:#7A7690;
  --line:#EFE9FB;
}
*{box-sizing:border-box;}
body{margin:0;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;background:var(--bg);color:var(--ink);}
a{color:inherit;}
img{max-width:100%;}

/* Header */
.hp-header{background:var(--card);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10;}
.hp-header-inner{max-width:1180px;margin:0 auto;padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;}
.hp-brand{font-weight:800;font-size:24px;color:var(--violet);text-decoration:none;display:flex;align-items:center;gap:8px;}
.hp-brand .hp-dot{width:10px;height:10px;background:var(--pink);border-radius:50%;display:inline-block;}
.hp-nav ul{list-style:none;display:flex;gap:10px;flex-wrap:wrap;margin:0;padding:0;}
.hp-nav li{margin:0;}
.hp-nav a{text-decoration:none;font-size:13px;font-weight:600;color:var(--ink);background:var(--violet-light);padding:8px 16px;border-radius:20px;display:inline-block;transition:all .15s ease;}
.hp-nav a:hover{background:var(--violet);color:#fff;}

.hp-search-form{display:flex;align-items:center;gap:8px;background:var(--bg);border:1px solid var(--line);border-radius:20px;padding:9px 16px;min-width:200px;}
.hp-search-form input[type="search"]{border:none;background:transparent;outline:none;font-size:13px;flex:1;font-family:inherit;color:var(--ink);}
.hp-search-form button{border:none;background:transparent;cursor:pointer;display:flex;color:var(--slate);padding:0;}

/* Hero band */
.hp-hero-band{max-width:1180px;margin:0 auto;padding:36px 24px 10px;}
.hp-hero-band h1{font-size:26px;font-weight:800;margin:0;}
.hp-hero-band p{color:var(--slate);font-size:14px;margin-top:6px;}

/* Homepage grid */
.hp-wrap{max-width:1180px;margin:0 auto;padding:20px 24px 70px;}
.hp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:24px;}
.hp-card{background:var(--card);border-radius:20px;overflow:hidden;box-shadow:0 4px 16px rgba(124,58,237,0.08);transition:transform .18s ease, box-shadow .18s ease;display:flex;flex-direction:column;}
.hp-card:hover{transform:translateY(-6px);box-shadow:0 10px 24px rgba(124,58,237,0.15);}
.hp-card-img{position:relative;height:160px;overflow:hidden;background:var(--violet-light);}
.hp-card-img img{width:100%;height:100%;object-fit:cover;}
.hp-card-badge{position:absolute;top:12px;left:12px;background:rgba(255,255,255,0.92);color:var(--violet);font-size:11px;font-weight:700;padding:5px 12px;border-radius:20px;text-transform:uppercase;letter-spacing:0.4px;}
.hp-card-body{padding:16px;display:flex;flex-direction:column;flex:1;}
.hp-card-body h3{font-size:16px;font-weight:700;line-height:1.35;margin:0 0 10px 0;}
.hp-card-body h3 a{color:var(--ink);text-decoration:none;}
.hp-card-body h3 a:hover{color:var(--violet);}
.hp-card-body p{font-size:13px;color:var(--slate);line-height:1.5;margin-bottom:14px;flex:1;}
.hp-card-meta{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--slate);border-top:1px dashed var(--line);padding-top:10px;}
.hp-card-meta a{color:var(--pink);font-weight:700;text-decoration:none;}

/* Single post layout */
.hp-single-wrap{max-width:1180px;margin:0 auto;padding:36px 24px 70px;}
.hp-layout{display:grid;grid-template-columns:1fr 300px;gap:40px;}
.hp-badge{display:inline-block;font-size:11px;font-weight:700;letter-spacing:0.4px;text-transform:uppercase;background:var(--violet-light);color:var(--violet);padding:6px 14px;border-radius:20px;margin-bottom:14px;}
.hp-single-title{font-size:28px;font-weight:800;line-height:1.25;margin:0 0 10px 0;}
.hp-post-meta{font-size:12px;color:var(--slate);margin-bottom:22px;}
.hp-single-cover{width:100%;height:340px;object-fit:cover;border-radius:18px;margin-bottom:24px;}
.hp-single-content{font-size:15.5px;line-height:1.8;color:#3a3650;}
.hp-single-content p{margin-bottom:16px;}

.hp-section-title{font-size:19px;font-weight:800;margin:44px 0 18px;display:flex;align-items:center;gap:8px;}
.hp-section-title::before{content:"";width:5px;height:20px;background:var(--pink);border-radius:4px;display:inline-block;}

.hp-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.hp-related-card{background:var(--card);border-radius:16px;overflow:hidden;box-shadow:0 3px 10px rgba(124,58,237,0.07);}
.hp-related-card img{width:100%;height:110px;object-fit:cover;}
.hp-related-card .hp-rc-body{padding:12px;}
.hp-related-card h4{font-size:13px;font-weight:700;line-height:1.35;margin:0 0 6px 0;}
.hp-related-card h4 a{color:var(--ink);text-decoration:none;}
.hp-related-card h4 a:hover{color:var(--violet);}
.hp-related-card span{font-size:11px;color:var(--slate);}

/* Sidebar */
.hp-sidebar{display:flex;flex-direction:column;gap:22px;}
.hp-side-box{background:var(--card);border-radius:18px;padding:20px;box-shadow:0 3px 10px rgba(124,58,237,0.06);}
.hp-side-box h3{font-size:14px;font-weight:800;margin:0 0 16px 0;color:var(--violet);}
.hp-cat-list{list-style:none;margin:0;padding:0;}
.hp-cat-list li{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px dashed var(--line);font-size:13px;}
.hp-cat-list li:last-child{border-bottom:none;}
.hp-cat-list a{color:var(--ink);text-decoration:none;font-weight:600;}
.hp-cat-list a:hover{color:var(--violet);}
.hp-cat-list .hp-count{color:var(--slate);font-size:11px;background:var(--violet-light);padding:2px 8px;border-radius:10px;}
.hp-side-post{display:flex;gap:12px;margin-bottom:14px;}
.hp-side-post:last-child{margin-bottom:0;}
.hp-side-post img{width:60px;height:52px;object-fit:cover;border-radius:10px;flex-shrink:0;}
.hp-side-post h4{font-size:12.5px;font-weight:700;line-height:1.35;margin:0 0 4px 0;}
.hp-side-post h4 a{color:var(--ink);text-decoration:none;}
.hp-side-post h4 a:hover{color:var(--violet);}
.hp-side-post span{font-size:10.5px;color:var(--slate);}

/* Footer */
.hp-footer{background:var(--card);border-top:1px solid var(--line);text-align:center;padding:26px 24px;font-size:13px;color:var(--slate);}

@media (max-width:820px){.hp-layout{grid-template-columns:1fr;}.hp-related-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:520px){.hp-related-grid{grid-template-columns:1fr;}.hp-single-title{font-size:22px;}}
