/*
Theme Name: Hotel Atlas Pro
Theme URI: https://j-scripting.com/
Author: Scrapy1
Description: قالب اختصاصی RTL برای مجله و راهنمای رزرو هتل — طراحی از صفر با تمرکز روی برند و خوانایی
Version: 1.0.0
Text Domain: hotel-atlas-pro
*/

@import url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css");
@import url("https://fonts.googleapis.com/css2?family=Lalezar&display=swap");

:root {
  --ink: #0b1c2c;
  --ink-soft: #243447;
  --muted: #5b6b7c;
  --paper: #f3f6f9;
  --paper-2: #e8eef4;
  --line: rgba(11, 28, 44, 0.1);
  --brand: #0b1c2c;
  --sea: #0f766e;
  --sea-bright: #14b8a6;
  --sunset: #e07a5f;
  --sunset-deep: #c45d42;
  --glow: rgba(20, 184, 166, 0.35);
  --max: 1120px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  direction: rtl;
  color: var(--ink);
  background: var(--paper);
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sea); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--sunset-deep); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: Lalezar, Vazirmatn, Tahoma, sans-serif;
  font-weight: 400;
  line-height: 1.25;
  color: var(--brand);
  margin: 0 0 .6em;
}

.hap-wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Top bar / brand nav —— */
.hap-top {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(243, 246, 249, 0.86);
  border-bottom: 1px solid var(--line);
}

.hap-top-inner {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hap-brand {
  font-family: Lalezar, Vazirmatn, sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  color: var(--brand);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
}

.hap-brand span {
  color: var(--sea);
  font-size: .72em;
}

.hap-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
}

.hap-nav a {
  color: var(--ink-soft);
  font-size: .92rem;
}

.hap-nav a:hover { color: var(--sea); }

.hap-search {
  display: flex;
  align-items: center;
  gap: .35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .28rem .35rem .28rem .85rem;
}

.hap-search input[type="search"] {
  border: 0;
  outline: 0;
  background: transparent;
  width: 9.5rem;
  font: inherit;
  color: var(--ink);
}

.hap-search button {
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  padding: .45rem .85rem;
  font: inherit;
  cursor: pointer;
}

/* —— Hero (first viewport composition) —— */
.hap-hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f5faf9;
  background:
    radial-gradient(1200px 600px at 15% 20%, rgba(20, 184, 166, 0.35), transparent 55%),
    radial-gradient(900px 500px at 85% 10%, rgba(224, 122, 95, 0.28), transparent 50%),
    linear-gradient(160deg, #071523 0%, #0b3a48 42%, #0f5f5a 100%);
}

.hap-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 78%);
  pointer-events: none;
  animation: hap-grid-drift 28s linear infinite;
}

.hap-hero::after {
  content: "";
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  right: -18vmax;
  bottom: -22vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,166,.22), transparent 68%);
  animation: hap-orb 12s var(--ease) infinite alternate;
  pointer-events: none;
}

@keyframes hap-grid-drift {
  from { transform: translateY(0); }
  to { transform: translateY(48px); }
}

@keyframes hap-orb {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-4%, -6%) scale(1.08); }
}

.hap-hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vh, 6rem) 0 clamp(3.5rem, 9vh, 6.5rem);
  max-width: 40rem;
}

.hap-hero-brand {
  font-family: Lalezar, Vazirmatn, sans-serif;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.05;
  margin: 0 0 .85rem;
  color: #fff;
  text-shadow: 0 10px 40px rgba(0,0,0,.25);
  animation: hap-rise .9s var(--ease) both;
}

.hap-hero-title {
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  margin: 0 0 .75rem;
  color: rgba(255,255,255,.94);
  animation: hap-rise .9s var(--ease) .12s both;
}

.hap-hero-lead {
  margin: 0 0 1.6rem;
  color: rgba(232, 246, 244, .82);
  font-size: 1.02rem;
  max-width: 34rem;
  animation: hap-rise .9s var(--ease) .22s both;
}

.hap-cta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--sunset);
  color: #fff !important;
  padding: .85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(224, 122, 95, .35);
  animation: hap-rise .9s var(--ease) .32s both;
}

.hap-cta:hover {
  background: var(--sunset-deep);
  color: #fff !important;
}

@keyframes hap-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Layout —— */
.hap-main {
  padding: 2.75rem 0 3.5rem;
}

.hap-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  align-items: start;
}

.hap-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.hap-section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0;
}

.hap-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

/* —— Post list (not card-heavy; editorial rows with media) —— */
.hap-feed {
  display: grid;
  gap: 1.35rem;
}

.hap-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.1rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.hap-item.is-in {
  opacity: 1;
  transform: none;
}

.hap-item-media {
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 4 / 3;
}

.hap-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}

.hap-item:hover .hap-item-media img { transform: scale(1.04); }

.hap-item-meta {
  color: var(--muted);
  font-size: .82rem;
  margin-bottom: .35rem;
}

.hap-item h2,
.hap-item h3 {
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  margin: 0 0 .4rem;
}

.hap-item h2 a,
.hap-item h3 a { color: var(--brand); }

.hap-item h2 a:hover,
.hap-item h3 a:hover { color: var(--sea); }

.hap-item p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

.hap-pager {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
}

.hap-pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 .55rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.hap-pager .current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* —— Sidebar / ads —— */
.hap-side .widget,
.hap-side .behtarinseo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.05rem;
  margin-bottom: 1rem;
}

.hap-side .widget-title {
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .75rem;
}

.hap-side .behtarinseo {
  list-style: none;
}

.hap-side .behtarinseo li {
  list-style: none;
  margin: 0 0 .55rem;
  padding: 0;
  line-height: 1.5;
}

.hap-side .behtarinseo a {
  color: var(--ink-soft);
  font-size: .9rem;
}

.hap-side .behtarinseo a:hover { color: var(--sea); }

/* —— Intro / front page copy —— */
.hap-intro {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.hap-intro-title {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin-bottom: .85rem;
}

.hap-intro p {
  color: var(--ink-soft);
  margin: 0 0 1rem;
  font-size: 1.02rem;
}

.hap-intro p:last-child { margin-bottom: 0; }

/* —— Single / page —— */
.hap-article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.hap-article .entry-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: .5rem;
}

.hap-article .entry-meta {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 1.25rem;
}

.hap-article .entry-thumb {
  border-radius: 16px;
  overflow: hidden;
  margin: 0 0 1.35rem;
}

.hap-article .entry-content > *:first-child { margin-top: 0; }
.hap-article .entry-content p { margin: 0 0 1.1rem; }
.hap-article .entry-content h2,
.hap-article .entry-content h3 {
  margin-top: 1.6rem;
}

.hap-article .entry-content ul,
.hap-article .entry-content ol {
  padding-right: 1.2rem;
}

/* —— Footer —— */
.hap-foot {
  background: var(--brand);
  color: rgba(255,255,255,.78);
  padding: 2.25rem 0 1.75rem;
  margin-top: 1rem;
}

.hap-foot a { color: #9fe8de; }
.hap-foot-brand {
  font-family: Lalezar, Vazirmatn, sans-serif;
  font-size: 1.6rem;
  color: #fff;
  margin: 0 0 .4rem;
}

.hap-foot-copy {
  margin: 1.25rem 0 0;
  font-size: .85rem;
  opacity: .7;
}

/* —— Responsive —— */
@media (max-width: 920px) {
  .hap-layout { grid-template-columns: 1fr; }
  .hap-top-inner { flex-wrap: wrap; padding: .65rem 0; }
  .hap-search input[type="search"] { width: 7rem; }
  .hap-item { grid-template-columns: 120px minmax(0, 1fr); }
  .hap-hero { min-height: calc(92vh - var(--nav-h)); }
}

@media (max-width: 560px) {
  .hap-item { grid-template-columns: 1fr; }
  .hap-item-media { aspect-ratio: 16 / 9; }
  .hap-nav { width: 100%; order: 3; }
}
