/*
Theme Name: AHS Portfolio
Theme URI: https://ahsafari.com/
Author: OpenAI
Description: A customizable dark portfolio theme with a fixed profile panel, filterable project grid, project gallery, About and Contact pages.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: ahs-portfolio
*/

:root {
  --ahs-bg: #000000;
  --ahs-surface: #202020;
  --ahs-card: #2a2a2a;
  --ahs-border: #454545;
  --ahs-text: #f2f2f2;
  --ahs-muted: #8c8c8c;
  --ahs-accent: #18a56f;
  --ahs-radius: 18px;
  --ahs-sidebar: 470px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ahs-bg);
  color: var(--ahs-text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }

.ahs-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, var(--ahs-sidebar)) minmax(0, 1fr);
}
.ahs-sidebar {
  min-height: 100vh;
  padding: 54px 52px 34px;
  border-right: 1px solid #161616;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  align-self: start;
}
.ahs-main { min-width: 0; padding: 68px 64px; }

.ahs-profile-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.ahs-avatar {
  width: 92px; height: 92px; border-radius: 50%;
  object-fit: cover; border: 2px solid #555; background: #ddd;
}
.ahs-badges { display: grid; gap: 8px; padding-top: 8px; }
.ahs-badge {
  width: max-content; max-width: 260px;
  border: 1px solid #444; border-radius: 999px;
  padding: 7px 12px; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; white-space: nowrap;
}
.ahs-badge-dot { color: var(--ahs-accent); margin-right: 6px; }

.ahs-name {
  margin: 0 0 10px;
  font-size: clamp(38px, 4vw, 58px);
  line-height: .86;
  letter-spacing: -.055em;
  font-weight: 900;
  text-transform: uppercase;
}
.ahs-role {
  font-size: 14px; letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 20px;
}
.ahs-socials { display: flex; gap: 12px; margin-bottom: 66px; }
.ahs-socials a {
  width: 28px; height: 28px; display: grid; place-items: center;
  border: 1px solid #666; border-radius: 8px; font-size: 12px; font-weight: 700;
}
.ahs-socials a:hover { border-color: var(--ahs-text); }

.ahs-nav { display: grid; gap: 12px; align-content: start; }
.ahs-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; width: max-content; min-width: 130px;
  padding: 0 22px; border-radius: 999px;
  background: var(--ahs-surface); color: var(--ahs-muted);
  letter-spacing: .14em; text-transform: uppercase; font-weight: 700; font-size: 13px;
  border: 1px solid transparent;
}
.ahs-pill:hover, .ahs-pill.is-active { color: var(--ahs-text); border-color: #3a3a3a; }

.ahs-footer { margin-top: auto; padding-top: 60px; color: var(--ahs-muted); font-size: 12px; }
.ahs-trusted { margin-bottom: 8px; }
.ahs-logo-row { display: flex; gap: 8px; margin: 8px 0 12px; }
.ahs-logo {
  width: 92px; height: 34px; background: #dedede;
  display: grid; place-items: center; overflow: hidden;
}
.ahs-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }

.ahs-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 auto 28px; justify-content: center; }
.ahs-filter {
  min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--ahs-surface); color: var(--ahs-text);
  letter-spacing: .14em; text-transform: uppercase; font-weight: 700; cursor: pointer;
}
.ahs-filter[aria-pressed="true"] { background: #2d2d2d; outline: 1px solid #3b3b3b; }

.ahs-project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.ahs-project-card {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5.3;
  border-radius: 7px;
  background: var(--ahs-card);
  border: 1px solid var(--ahs-border);
  transition: transform .18s ease, border-color .18s ease;
}
.ahs-project-card:hover { transform: translateY(-2px); border-color: #666; }
.ahs-project-card[hidden] { display: none; }
.ahs-project-card img { width: 100%; height: 100%; object-fit: cover; }
.ahs-project-fallback { width:100%;height:100%; background:linear-gradient(135deg,#2b2b2b,#1c1c1c); }
.ahs-project-overlay {
  position: absolute; inset: auto 0 0; padding: 18px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
  opacity: 0; transition: opacity .18s ease;
}
.ahs-project-card:hover .ahs-project-overlay { opacity: 1; }
.ahs-project-overlay strong { display:block; font-size: 13px; letter-spacing:.08em; text-transform:uppercase; }

.ahs-section-title {
  margin: 0 0 14px;
  font-size: 16px; letter-spacing: .16em; text-transform: uppercase;
}
.ahs-content-card {
  border: 1px solid var(--ahs-border); border-radius: 18px;
  padding: 26px 28px; color: var(--ahs-muted); max-width: 880px;
}
.ahs-content-card > :first-child { margin-top: 0; }
.ahs-content-card > :last-child { margin-bottom: 0; }

.ahs-back {
  display: inline-flex; align-items:center; gap:10px; color:var(--ahs-muted);
  margin-bottom: 24px; font-size: 13px;
}
.ahs-back span { width: 30px; height:30px; border-radius:50%; background:#242424; display:grid; place-items:center; color:#fff; }
.ahs-project-view { max-width: 980px; }
.ahs-slider-wrap { position: relative; margin-bottom: 26px; }
.ahs-slider {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 64%);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 0 10%;
}
.ahs-slider::-webkit-scrollbar { display:none; }
.ahs-slide {
  scroll-snap-align: center; aspect-ratio: 4/5.3; border-radius: 14px;
  background:#1d1d1d; border:1px solid #353535; overflow:hidden;
}
.ahs-slide img { width:100%; height:100%; object-fit:cover; }
.ahs-slider-btn {
  position:absolute; top:50%; transform:translateY(-50%);
  width:42px;height:42px;border:0;border-radius:50%;
  background:#454545;color:#fff;cursor:pointer;z-index:2;
}
.ahs-prev { left: 0; } .ahs-next { right: 0; }
.ahs-dots { display:flex; justify-content:center; gap:8px; margin-top:14px; }
.ahs-dot { width:7px;height:7px;border-radius:50%;background:#272727;border:0;padding:0; }
.ahs-dot.is-active { background:var(--ahs-accent); }
.ahs-project-title { letter-spacing:.12em; text-transform:uppercase; font-size:16px; margin:0 0 4px; }
.ahs-project-date { color:var(--ahs-muted); font-size:12px; margin-bottom:14px; }
.ahs-project-description { color:var(--ahs-muted); max-width:760px; font-size:13px; }
.ahs-tools { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.ahs-tool { border:1px solid #555;border-radius:8px;padding:5px 8px;font-size:11px; }
.ahs-project-cat { color:var(--ahs-muted); margin-top:18px; font-size:12px; text-transform:uppercase; letter-spacing:.08em; }

.ahs-contact-list {
  border: 1px solid var(--ahs-border); border-radius: 18px; padding: 22px 28px;
  display:grid; gap:18px; max-width:880px; margin-top:18px;
}
.ahs-contact-row { display:flex; gap:16px; align-items:center; font-size:14px; letter-spacing:.12em; text-transform:uppercase; }
.ahs-contact-mark { color:var(--ahs-accent); }
.ahs-hours { color:var(--ahs-muted); margin-top:20px; font-size:12px; }

@media (max-width: 1180px) {
  .ahs-shell { grid-template-columns: 340px minmax(0, 1fr); }
  .ahs-sidebar { padding: 40px 28px 28px; }
  .ahs-main { padding: 48px 30px; }
  .ahs-project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ahs-shell { display:block; }
  .ahs-sidebar { position:relative; min-height:0; border-right:0; border-bottom:1px solid #161616; padding:28px 20px; }
  .ahs-socials { margin-bottom:28px; }
  .ahs-nav { grid-template-columns: repeat(2, minmax(0, max-content)); }
  .ahs-footer { margin-top:34px; padding-top:0; }
  .ahs-main { padding:28px 18px 48px; }
  .ahs-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .ahs-profile-head { align-items:center; }
  .ahs-avatar { width:76px;height:76px; }
  .ahs-name { font-size:38px; }
  .ahs-badge { font-size:10px; max-width:210px; }
  .ahs-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap:6px; }
  .ahs-filters { justify-content:flex-start; overflow-x:auto; flex-wrap:nowrap; padding-bottom:4px; }
  .ahs-filter { flex:0 0 auto; }
  .ahs-slider { grid-auto-columns: 82%; padding:0 8%; }
  .ahs-slider-btn { width:38px;height:38px; }
}


/* v1.1 */
.ahs-empty-state{
  grid-column:1/-1;
  border:1px dashed var(--ahs-border);
  border-radius:14px;
  padding:28px;
  color:var(--ahs-muted);
  text-align:center;
}
