/*
Theme Name: Minimal Reference FA
Author: Custom
Description: Pixel-inspired RTL Persian WordPress theme based on the supplied minimalist reference.
Version: 2.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: minimal-reference
*/
:root{
  --ink:#171717;
  --soft:#858585;
  --line:#e9e9e9;
  --yellow:#ffad00;
  --blue:#3d83e8;
  --paper:#fff;
  --max:1000px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--paper);color:var(--ink);
  direction:rtl;
  font-family:"Vazirmatn","Tahoma",Arial,sans-serif;
  font-size:14px;line-height:2;
}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto}
button,input{font:inherit}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ===== top bar: intentionally light and flat like the reference ===== */
.site-header{
  height:62px;position:relative;z-index:10;
  background:#fff;border-bottom:1px solid #f0f0f0;
}
.header-wrap{
  height:100%;max-width:1200px;margin:auto;padding:0 24px;
  display:flex;align-items:center;justify-content:space-between;
}
.brand{display:flex;align-items:center;white-space:nowrap}.brand img{display:block;width:auto;height:34px;max-width:170px}
.brand img{height:34px;width:auto;max-width:170px}
.nav-right{display:flex;align-items:center;gap:26px}
.nav-right ul{list-style:none;margin:0;padding:0;display:flex;gap:27px;align-items:center}
.nav-right a{font-size:12px;color:#333}
.nav-right a:hover{color:var(--blue)}
.left-tools{display:flex;align-items:center;gap:16px;direction:ltr}
.left-tools .social{display:flex;gap:11px;align-items:center}
.left-tools .social a{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;color:#555}.left-tools .social svg{width:17px;height:17px;display:block;fill:currentColor}.left-tools .social a:hover{color:var(--blue)}
.search-btn{border:0;background:transparent;cursor:pointer;font-size:21px;padding:0;line-height:1}
.mobile-menu{display:none;border:0;background:none;font-size:22px}

/* search strip */
.search-panel{display:none;position:absolute;top:62px;right:0;left:0;background:#fff;border-bottom:1px solid var(--line);padding:14px;z-index:20}
.search-panel.open{display:block}
.search-panel form{max-width:620px;margin:auto;display:flex;gap:8px}
.search-panel input{flex:1;border:1px solid #ddd;border-radius:4px;padding:7px 12px;outline:none}
.search-panel button{border:0;background:var(--blue);color:#fff;border-radius:4px;padding:7px 18px;cursor:pointer}

/* ===== main composition ===== */
.main{
  max-width:var(--max);margin:auto;padding:63px 22px 95px;
}
.hero-title{
  text-align:center;font-size:25px;line-height:1.6;
  margin:0 0 63px;font-weight:700;
}
.feed{margin:0 auto}
.article{
  position:relative;padding:0 0 35px;margin:0 0 34px;
  border-bottom:1px solid var(--line);
}
.article:last-child{margin-bottom:0}
.article-title{
  margin:0 0 4px;font-size:20px;line-height:1.8;
  font-weight:700;
}
.article-title a:hover{color:var(--blue)}
.meta{
  display:flex;align-items:center;gap:7px;color:#999;
  font-size:10px;margin-bottom:14px;
}
.meta .avatar{width:23px;height:23px;border-radius:50%;object-fit:cover}
.excerpt{
  color:#666;font-size:12px;line-height:2.15;
  max-width:900px;margin:0 0 19px;
}
.article-actions{
  display:flex;align-items:center;justify-content:space-between;
}
.share{display:flex;gap:7px;direction:ltr}
.share a{
  width:30px;height:30px;border:1px solid #ddd;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:#777;font-size:10px;transition:.2s;
}
.share a:hover{border-color:var(--blue);color:var(--blue)}
.more{
  border:1px solid var(--blue);border-radius:3px;
  padding:4px 18px;color:#333;font-size:10px;
  transition:.2s;
}
.more:hover{background:var(--blue);color:#fff}

/* vertical newsletter */
.newsletter{
  position:fixed;right:0;top:40%;z-index:5;
  background:#fff6d8;color:#e1a000;
  padding:12px 6px;border-radius:7px 0 0 7px;
  writing-mode:vertical-rl;font-size:10px;
}

/* single */
.single{max-width:820px;margin:auto}
.single h1{font-size:32px;line-height:1.75;margin:0 0 12px}
.single .featured{margin:24px 0}
.single .featured img{width:100%;border-radius:3px}
.content{font-size:15px;line-height:2.35}
.content p{margin:0 0 22px}
.content h2,.content h3{margin:30px 0 12px}
.content blockquote{margin:25px 0;padding:12px 18px;border-right:2px solid var(--blue);background:#fafafa}

/* footer exactly low-profile */
.footer{
  position:fixed;bottom:0;left:0;right:0;height:43px;
  border-top:1px solid var(--line);background:rgba(255,255,255,.97);
  z-index:8;
}
.footer-inner{height:100%;display:flex;align-items:center;justify-content:center;gap:16px;font-size:10px;color:#777}
.footer-social{display:flex;gap:9px;direction:ltr}.footer-social a{width:27px;height:27px;display:inline-flex;align-items:center;justify-content:center;color:#777}.footer-social svg{width:15px;height:15px;fill:currentColor}.footer-social a:hover{color:var(--blue)}

.pagination{display:flex;justify-content:center;gap:6px;margin-top:30px}
.pagination a,.pagination span{
  min-width:28px;height:28px;border:1px solid #e2e2e2;border-radius:50%;
  display:flex;align-items:center;justify-content:center;font-size:9px;
}
.pagination .current,.pagination a:hover{background:var(--blue);color:#fff;border-color:var(--blue)}

.comments{margin-top:45px;border-top:1px solid var(--line);padding-top:25px}
.comment-list{list-style:none;padding:0}.comment-body{border-bottom:1px solid #eee;padding:12px 0}
.comment-meta{font-size:10px;color:#999}
.comment-form input,.comment-form textarea{width:100%;border:1px solid #ddd;border-radius:3px;padding:8px}
.comment-form textarea{min-height:120px}
.comment-form .submit{border:0;background:var(--blue);color:#fff;border-radius:3px;padding:7px 18px}

.not-found{text-align:center;padding:90px 20px}.not-found h1{font-size:70px;margin:0}

/* mobile keeps same flat composition */
@media(max-width:900px){
  .site-header{height:58px}
  .header-wrap{padding:0 13px}
  .nav-right{display:none}
  .mobile-menu{display:block}
  .brand{font-size:14px}
  .left-tools .social{display:none}
  .search-panel{top:58px}
}
@media(max-width:650px){
  .main{padding:40px 17px 80px}
  .hero-title{font-size:20px;margin-bottom:42px}
  .article{padding-bottom:27px;margin-bottom:27px}
  .article-title{font-size:17px}
  .excerpt{font-size:11.5px}
  .share{display:none}
  .newsletter{display:none}
  .single h1{font-size:25px}
}

/* Social sharing icons */
.share a{border-color:#ddd}
.share svg{width:14px;height:14px;fill:currentColor}
