/* ==========================================================================
   PAGES STYLE — EDITORIAL CREATOR PORTFOLIO THEME
   Monochrome, high-contrast editorial portfolio & commission showcase
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

@media (min-width: 1680px) {
  html {
    font-size: 17px;
  }
}

@media (max-width: 980px) {
  html {
    font-size: 15px;
  }
}

@media (max-width: 736px) {
  html {
    font-size: 14px;
  }
}

body {
  background-color: #000000;
  color: #000000;
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  min-height: 100vh;
  padding: 1.5rem 1.5rem 2.5rem;
  overflow-x: hidden;
  position: relative;
}

/* Star/Sparkle Field Background Animation */
body::before {
  content: '';
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-image: url('assets/stars-bg.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Base Elements */
a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

ul, ol {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */

.site-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 68rem; /* Contained layout canvas width */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-main {
  background-color: #FFFFFF;
  border-radius: 0; /* Clean flat border edges */
  border: none;
  box-shadow: none;
  width: 100%;
  overflow: hidden;
}

.inner {
  padding: 3rem 3rem 3.5rem;
}

@media (max-width: 768px) {
  body {
    padding: 1rem 0.75rem 2.5rem;
  }
  .inner {
    padding: 2rem 1.5rem 2.5rem;
  }
}

/* ==========================================================================
   HEADER COMPONENT
   ========================================================================== */

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.header-top-bar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.site-updated-text {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  color: #000000;
  text-align: right;
  letter-spacing: 0.02em;
}

.header-logo-box {
  text-align: center;
  margin-bottom: 0.75rem;
}

.header-logo-img {
  width: 4.125rem; /* Standard avatar frame width */
  height: auto;
  display: inline-block;
  transition: transform 0.2s ease;
}

.header-logo-img:hover {
  transform: scale(1.05);
}

.creator-title {
  font-family: 'Shrikhand', serif;
  font-size: 1.15rem; /* Primary title typography */
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: #000000;
  margin-bottom: 0.25rem;
}

.creator-subtitle {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  text-align: center;
  color: #000000;
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em;
}

/* Header Navigation Bar (Exact Inline Text Links) */
.header-nav-bar {
  width: 100%;
  display: flex;
  justify-content: center;
}

.nav-button-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.25rem;
  flex-wrap: wrap;
}

.nav-btn {
  display: inline-flex;
  flex-direction: row-reverse; /* Icon on the right */
  align-items: center;
  gap: 0.45rem;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: #000000;
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease;
}

.nav-btn:hover {
  transform: scale(1.15); /* Hover scale effect */
}

.nav-btn.active {
  font-weight: 700;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
}

.nav-icon svg {
  width: 13px;
  height: 13px;
  fill: #000000;
  stroke: #000000;
}

@media (max-width: 600px) {
  .nav-button-group {
    gap: 1.25rem;
  }
}

/* ==========================================================================
   SECTION COMMON ELEMENTS
   ========================================================================== */

.site-section {
  display: none;
}

.site-section.active {
  display: block;
}

.section-title {
  font-family: 'Shrikhand', serif;
  font-size: 1.125rem; /* Section title typography */
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: left;
  color: #000000;
  margin-bottom: 0.4rem;
}

/* Exact Hatching Slash Divider */
.divider-hatched {
  border: none;
  width: 100%;
  height: 1rem;
  background-size: auto 30.1%;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20512%20512%22%20width%3D%22512%22%20height%3D%22512%22%3E%3Cstyle%3Eline%20%7Bstroke-linecap%3A%20square%3Bstroke-width%3A%201px%3Bstroke%3A%20%23000000%3Bvector-effect%3A%20non-scaling-stroke%3B%7D%3C%2Fstyle%3E%3Cline%20x1%3D%22256%22%20y1%3D%220%22%20x2%3D%220%22%20y2%3D%22256%22%20%2F%3E%3Cline%20x1%3D%22256%22%20y1%3D%22512%22%20x2%3D%22512%22%20y2%3D%22256%22%20%2F%3E%3C%2Fsvg%3E");
  background-position: center center;
  background-repeat: repeat-x;
  margin-bottom: 2rem;
}

/* ==========================================================================
   SECTION 1: HOME
   ========================================================================== */

.home-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem;
  align-items: start;
}

.home-left-col {
  display: flex;
  flex-direction: column;
}

.media-aspect-ratio {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000000;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.media-player {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.home-credits-caption {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: #000000;
  text-align: center;
  margin-top: 0.85rem;
}

.home-credits-caption a {
  text-decoration: underline;
  color: #000000;
}

.home-credits-caption a:hover {
  text-decoration: none;
}

.info-block {
  display: flex;
  flex-direction: column;
}

.block-title {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.block-icon {
  width: 14px;
  height: 14px;
  fill: #000000;
  flex-shrink: 0;
}

.intro-greeting {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: #000000;
  margin-bottom: 0.5rem;
}

.intro-paragraphs p {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.8rem;
  line-height: 1.6;
  font-weight: 300;
  color: #000000;
  margin-bottom: 0.5rem;
}

.news-bullets-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.news-bullets-list li {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.8rem;
  line-height: 1.6;
  font-weight: 400;
  color: #000000;
}

.news-bullets-list strong {
  font-weight: 700;
}

.news-bullets-list a {
  text-decoration: underline;
  color: #000000;
}

.news-bullets-list a:hover {
  text-decoration: none;
}

.sub-note-text {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  color: #000000;
  margin-top: 1.5rem;
}

@media (max-width: 860px) {
  .home-two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==========================================================================
   SECTION 2: LORE / ABOUT
   ========================================================================== */

.about-two-col {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-left-col {
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
}

.content-paragraph {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.8rem;
  line-height: 1.55;
  font-weight: 300;
  color: #000000;
}

/* 4-Column Community Tags Table */
.about-tags-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.lore-tags-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.lore-tags-table th {
  width: 25%;
  text-align: left;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #000000;
  padding: 0 0.5rem 0.35rem 0;
  white-space: nowrap;
}

.lore-tags-table td {
  width: 25%;
  text-align: left;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: #000000;
  padding: 0 0.5rem 0 0;
  white-space: nowrap;
}

/* FAQ List */
.faq-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item-p {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #000000;
}

.faq-item-p strong {
  font-weight: 700;
  color: #000000;
  display: block;
  margin-bottom: 0.15rem;
}

/* Character Portrait Frame & Art Credit */
.about-right-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.portrait-frame {
  width: 16.875rem; /* Contained portrait frame width */
  max-width: 100%;
  margin: 0 auto;
}

.portrait-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.portrait-credit {
  margin-top: 0.65rem;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: #000000;
  text-align: center;
  letter-spacing: 0.01em;
}

.portrait-credit a {
  text-decoration: underline;
  color: #000000;
}

.portrait-credit a:hover {
  text-decoration: none;
}

@media (max-width: 860px) {
  .about-two-col {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
  }

  .about-left-col {
    width: 100%;
    order: 1;
    gap: 1.5rem;
  }

  .about-right-col {
    width: 100%;
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0.75rem;
  }

  .portrait-frame {
    width: 16.875rem;
    max-width: 85%;
    margin: 0 auto;
  }

  .portrait-credit {
    text-align: center;
    margin-top: 0.65rem;
  }
}

/* ==========================================================================
   SECTION 3: COMMISSIONS
   ========================================================================== */

.commissions-tier-block {
  margin-bottom: 3rem;
}

.comm-tier-heading {
  font-family: 'Shrikhand', serif;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 0.5rem;
}

.comm-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.comm-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.75rem;
  border: 1px solid #000000;
  padding: 0.25rem 0.65rem;
  background-color: #ffffff;
  color: #000000;
}

.comm-price-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid #000000;
  padding: 0.25rem 0.75rem;
  background-color: #ffffff;
  color: #000000;
}

.comm-specs-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.comm-specs-list li {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #000000;
}

.comm-specs-list strong {
  font-weight: 700;
}

/* ==========================================================================
   SECTION 4: TERMS OF SERVICE
   ========================================================================== */

.tos-preamble-text {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #000000;
  margin-bottom: 2rem;
}

.tos-categories-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tos-category-block {
  display: flex;
  flex-direction: column;
}

.tos-cat-title {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.tos-cat-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.tos-cat-bullets li {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #000000;
  padding-left: 1rem;
  position: relative;
}

.tos-cat-bullets li::before {
  content: '›';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

/* ==========================================================================
   SECTION 5: PORTFOLIO
   ========================================================================== */

.portfolio-group-block {
  margin-bottom: 3.5rem;
}

.portfolio-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.portfolio-item {
  border: 1px solid #000000;
  overflow: hidden;
  background-color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.portfolio-item:hover {
  transform: translateY(-3px);
}

.portfolio-thumb-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #000000;
}

.portfolio-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-caption {
  padding: 0.5rem 0.6rem;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  text-align: center;
  color: #000000;
  border-top: 1px solid #000000;
}

/* ==========================================================================
   SECTION 6: CONTACT & FORM
   ========================================================================== */

.contact-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem;
  align-items: start;
}

.contact-two-col.no-form {
  grid-template-columns: 1fr;
}

.contact-right-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.instructions-wrap p {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #000000;
  margin-bottom: 0.5rem;
}

/* Direct Clean Order Form */
.order-form {
  display: flex;
  flex-direction: column;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.85rem;
}

.field label {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 0.25rem;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  border: 1px solid #000000;
  border-radius: 0;
  padding: 0.5rem 0.75rem;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.82rem;
  background-color: #ffffff;
  color: #000000;
  outline: none;
}

.field input:focus,
.field textarea:focus {
  background-color: #fafafa;
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox-field {
  margin-top: 0.25rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.75rem;
  color: #000000;
  cursor: pointer;
  line-height: 1.4;
}

.checkbox-label input {
  margin-top: 0.15rem;
  accent-color: #000000;
}

.order-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  border-radius: 0;
  padding: 0.65rem 2rem;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  margin-top: 0.5rem;
}

.order-submit-btn:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.order-submit-btn svg {
  fill: #ffffff;
}

.order-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* External Portal Card (Replacement for Form) */
.external-portal-card {
  border: 1px solid #000000;
  padding: 2.25rem 2rem;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.external-portal-title {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.external-portal-desc {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.82rem;
  line-height: 1.6;
  font-weight: 300;
  color: #000000;
}

.external-portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: #000000;
  color: #ffffff !important;
  border: 1px solid #000000;
  padding: 0.75rem 1.75rem;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  margin-top: 0.5rem;
}

.external-portal-btn:hover {
  opacity: 0.85;
  transform: scale(1.02);
  text-decoration: none;
}

/* Secondary Alternate Options (Below Form) */
.secondary-options-wrap,
.secondary-external-banner {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px dashed #e4e4e7;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.secondary-option-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.secondary-option-desc,
.secondary-external-desc {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.78rem;
  line-height: 1.5;
  font-weight: 300;
  color: #52525b;
}

.secondary-option-btn,
.secondary-external-link {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000000;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.secondary-option-btn:hover,
.secondary-external-link:hover {
  text-decoration: none;
  opacity: 0.75;
}

@media (max-width: 860px) {
  .contact-two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==========================================================================
   FOOTER (Exact Matching Image 1)
   ========================================================================== */

.site-section-footer {
  text-align: center;
  margin-top: 3.5rem;
  padding-top: 1rem;
}

.footer-contact-prompt {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.8rem;
  color: #000000;
  margin-bottom: 0.85rem;
}

.footer-email-link {
  text-decoration: underline;
  color: #000000;
}

.footer-email-link:hover {
  text-decoration: none;
}

.footer-social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.footer-social-link:hover {
  transform: scale(1.25);
}

.footer-social-link svg {
  width: 16px;
  height: 16px;
  fill: #000000;
}

.footer-divider-solid {
  border: none;
  height: 1px;
  background-color: #000000;
  margin-bottom: 1.25rem;
  width: 100%;
}

.footer-bottom-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-bottom-copy p {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.75rem;
  color: #000000;
}

.footer-disclaimer {
  font-weight: 300;
}

/* Floating Footer Outside Canvas */
.floating-credit-footer {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.75rem;
  color: #71717a;
  text-align: center;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.floating-credit-footer a {
  color: #d4d4d8;
  text-decoration: underline;
}

.floating-credit-footer a:hover {
  color: #ffffff;
}

.github-icon {
  display: inline-block;
  vertical-align: middle;
}

/* ==========================================================================
   TOAST POPUP
   ========================================================================== */

.toast-popup {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #3f3f46;
  padding: 0.65rem 1.25rem;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10000;
}

.toast-popup.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
