/* css/style.css - PersianSpecter theme */
:root{
  --bg:#0b0b0f;
  --panel:#0f1114;
  --muted:#97a0ab;
  --accent:#2ea6ff;
  --white:#ffffff;
  --glass: rgba(255,255,255,0.03);
}
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; background:linear-gradient(180deg,var(--bg),#070707); color:var(--white); -webkit-font-smoothing:antialiased;}
.container{max-width:1100px;margin:0 auto;padding:20px}
.site-header{background:rgba(0,0,0,0.25);backdrop-filter: blur(6px);position:sticky;top:0;z-index:50}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:12px 0}
.brand{display:flex;align-items:center;gap:12px}
.logo{width:44px;height:44px;object-fit:contain;border-radius:8px}
.brand-title{font-weight:700;letter-spacing:1px}
.main-nav a{color:var(--muted);text-decoration:none;margin-left:12px;font-weight:600}
.main-nav a:hover{color:var(--white)}
.site-main{padding:28px 0}
.hero{display:flex;align-items:center;justify-content:center;padding:60px 20px;background:linear-gradient(180deg, rgba(255,255,255,0.02), transparent);border-radius:12px;margin-bottom:18px}
.hero-inner{text-align:center}
.hero h1{font-size:36px;margin:0 0 8px}
.hero p{color:var(--muted);margin:0 0 14px}
.cta a{margin:0 8px}
.btn-primary{background:linear-gradient(90deg,var(--accent),#49c6ff);color:#001;padding:10px 16px;border-radius:8px;text-decoration:none;border:none;cursor:pointer;font-weight:700}
.btn-outline{border:1px solid rgba(255,255,255,0.06);padding:8px 12px;border-radius:8px;color:var(--muted);text-decoration:none}
.section{margin:18px 0}
.card{background:var(--panel);padding:16px;border-radius:12px;box-shadow:0 6px 18px rgba(0,0,0,0.6)}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.small{color:var(--muted)}
.form{display:grid;gap:10px}
.input,textarea,input[type="text"],input[type="email"],input[type="password"]{background:transparent;border:1px solid rgba(255,255,255,0.06);padding:10px;border-radius:8px;color:var(--white);width:100%}
textarea{min-height:120px}
.alert{background:rgba(255,0,0,0.08);padding:8px;border-radius:8px;color:#ff9b9b}
.alert.success{background:rgba(0,255,0,0.04);color:#8de08d}
.tools-row{display:flex;gap:8px;align-items:center}
.site-footer{padding:20px;text-align:center;color:var(--muted);margin-top:20px}
@media (max-width:900px){ .main-nav{display:none} .hero h1{font-size:26px} }
/* --- Project Cards (index) --- */

.project-card{
  overflow:hidden;
  padding:0;
  display:flex;
  flex-direction:column;
  background:var(--panel);
  border-radius:14px;
  box-shadow:0 6px 20px rgba(0,0,0,0.65);
}

.project-thumb img{
  width:100%;
  height:180px;
  object-fit:cover;
  border-top-left-radius:14px;
  border-top-right-radius:14px;
}

.project-body{
  padding:16px;
}

.project-body h4{
  margin:0 0 6px;
}

.project-body .btn-outline{
  display:inline-block;
  margin-top:8px;
}

.thumb{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:8px;
  margin-bottom:10px;
}

.article-image{
  width:100%;
  border-radius:12px;
  margin:16px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

.card {
    background: #111;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card h4 {
    margin: 15px 0 10px;
}

.thumb {
    width: 100%;
    height: 200px;
    object-fit: cover; /* مهم‌ترین قسمت برای جلوگیری از بهم‌ریختگی */
    border-radius: 10px;
}


.small {
    color: #ccc;
    font-size: 14px;
    margin: 10px 0 15px;
    line-height: 1.7;
}

.btn-primary {
    background: #0d6efd;
    color: #fff;
    padding: 8px 18px;
    text-decoration: none;
    border-radius: 8px;
    transition: .3s;
    display: inline-block;
}

.btn-primary:hover {
    background: #084fc6;
}


.project-img-box {
    width: 100%;
    height: 360px;
    overflow: hidden;
    border-radius: 12px;
    margin: 20px 0;
    background: #0f0f0f;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    background: rgba(255,255,255,0.02);
    padding: 20px;
    border-radius: 12px;
    line-height: 1.9;
    font-size: 16px;
    color: #ddd;
}

.project-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}



/* گرید کارت‌ها */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* کارت */
.card {
  background: var(--panel);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 420px; /* ارتفاع حداقل ثابت */
  transition: transform .2s;
}

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

/* تصویر */
.thumb-box {
  width: 100%;
  height: 200px;        /* ارتفاع ثابت */
  overflow: hidden;
}

.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* کراپ و فیت خودکار */
  display: block;
}

/* محتوا */
.card h4 {
  padding: 16px 15px 5px;
  margin: 0;
}

.card .small {
  padding: 0 15px;
  color: var(--muted);
  flex-grow: 1;
  font-size: 15px;
  line-height: 1.6;
}

.card .btn-outline {
  margin: 0 15px 20px;
  display: inline-block;
}



