@layer theme, base, layout, components, utilities;
/* ==============================
   Master CSS - main.css
   CSS Cascade Layers Architecture
   theme → base → layout → components → utilities
============================== */
/* 1️⃣ تعريف الطبقات */
/* 2️⃣ Theme / Tokens */
:root {
  /* Colors */
  --theme-palette-color-1: #0d9488;
  --theme-palette-color-2: #14b8a6;
  --theme-palette-color-3: #0f766e;
  --theme-palette-color-4: #1e293b;
  --theme-palette-color-5: #0f172a;
  --theme-palette-color-6: #f8fafc;
  --theme-palette-color-7: #f9fafb;
  --theme-palette-color-8: #e2e8f0;
  --theme-palette-color-9: #fdfdfd;

  /* Text colors */
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;

  --color-primary: var(--theme-palette-color-1);
  --color-secondary: var(--theme-palette-color-2);
  --color-success: #28a745;
  --color-danger: #dc3545;
  --color-warning: #ffc107;
  --color-info: #17a2b8;
  --color-light: #f8f9fa;
  --color-white: #ffffff;
  --color-dark: #343a40;
  --color-black: #111;

  --color-text: #111;
  --color-bg: var(--theme-palette-color-6);
  --color-border: var(--theme-palette-color-8);

  /* Breakpoints */
  --bp-sm: 40rem; /* 640px */
  --bp-md: 48rem; /* 768px */
  --bp-lg: 64rem; /* 1024px */
  --bp-xl: 80rem; /* 1280px */

  /* Spacing */
  --space-xs: 0.25rem; /* 4px */
  --space-sm: 0.5rem; /* 8px */
  --space-md: 1rem; /* 16px */
  --space-lg: 1.5rem; /* 24px */
  --space-xl: 2rem; /* 32px */
  --space-xxl: 3rem; /* 48px */

  /* Layout */
  --container-width: 100%;
  --container-width-base: 90vw;

  /* Typography */
  --font-family-base: "Tajawal", sans-serif;
  --font-family-serif: "Amiri", serif;
  --font-size-base: 1rem; /* 16px */
  --line-height-base: 1.7;
  --letter-spacing-base: 0;
  --font-weight-base: 400;
  --text-transform: none;
  --text-decoration: none;

  --font-size-h1: 2.5rem; /* 40px */
  --font-size-h2: 2rem; /* 32px */
  --font-size-h3: 1.75rem; /* 28px */
  --font-size-h4: 1.5rem; /* 24px */
  --font-size-h5: 1.25rem; /* 20px */
  --font-size-h6: 1rem; /* 16px */

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2.5rem;
  --radius-xxl: 4rem;

  /* blur */
  --blur-sm: 8px;
  --blur-md: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(13, 148, 136, 0.2);
}
/* 3️⃣ Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 100%; /* 1rem = 16px */
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
input,
button,
textarea,
select {
  font: inherit;
}
a {
  text-decoration: none;
  color: inherit;
}
ul,
ol {
  list-style: none;
}
body {
  color: var(--color-text);
  background-color: var(--color-bg);
}
body,
p,
li,
label,
span,
small,
a,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-base);
  line-height: var(--line-height-base);
  letter-spacing: var(--letter-spacing-base);
  font-style: var(--font-style, inherit);
  text-transform: var(--text-transform);
  -webkit-text-decoration: var(--text-decoration);
  text-decoration: var(--text-decoration);
}
/* gloabl*/
h1 {
  --font-size-base: var(--font-size-h1);
  --font-weight-base: var(--heading-font-weight);
}
h2 {
  --font-size-base: var(--font-size-h2);
  --font-weight-base: var(--heading-font-weight);
}
h3 {
  --font-size-base: var(--font-size-h3);
  --font-weight-base: var(--heading-font-weight);
}
h4 {
  --font-size-base: var(--font-size-h4);
  --font-weight-base: var(--heading-font-weight);
}
h5 {
  --font-size-base: var(--font-size-h5);
  --font-weight-base: var(--heading-font-weight);
}
h6 {
  --font-size-base: var(--font-size-h6);
  --font-weight-base: var(--heading-font-weight);
}
p {
  --font-size-base: var(--font-size-h6);
}
button {
  cursor: pointer;
  border: none;
  background: none;
}
input,
select,
.badge {
  line-height: 0;
}
hr {
  border: 0;
  border-top: 0.0625rem solid var(--color-border); /* 1px */
}
figure {
  margin: 0;
}
blockquote {
  quotes: "“" "”" "‘" "’";
  padding-left: var(--space-md);
  border-left: 0.25rem solid var(--color-primary); /* 4px */
  color: var(--color-secondary);
}
/* Text Enhancements */
strong,
b {
  font-weight: var(--font-weight-bold, bold);
}
em,
i {
  font-style: italic;
}
mark {
  background-color: var(--color-primary-light, #ffd54f);
  color: inherit;
}
/* Table Reset */
table {
  border-collapse: collapse;
  border-spacing: 0;
}
/* Accessibility Focus */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
/* Icon */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm {
  font-size: 1rem;
}
.icon-md {
  font-size: 1.5rem;
}
.icon-lg {
  font-size: 2rem;
}
/* 4️⃣ Layout */
.container {
  width: var(--container-width);
  max-width: var(--bp-xl);
  margin-inline: auto;
  padding-inline: var(--space-md);
}
/* --- Main Container --- */
.main-container {
  max-width: var(--bp-xl);
  padding-inline: var(--space-md);
  padding-block: 2rem;
  margin-inline: auto;
}
.grid {
  display: grid;
  gap: var(--space-md);
}
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
}
.col-span-1 {
  grid-column: span 1 / span 1;
}
.col-span-2 {
  grid-column: span 2 / span 2;
}
.col-span-3 {
  grid-column: span 3 / span 3;
}
.col-span-4 {
  grid-column: span 4 / span 4;
}
.col-span-6 {
  grid-column: span 6 / span 6;
}
.col-span-12 {
  grid-column: span 12 / span 12;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: calc(var(--gutter) * -0.5);
}
.col-1 {
  flex: 0 0 8.333%;
}
.col-2 {
  flex: 0 0 16.666%;
}
.col-3 {
  flex: 0 0 25%;
}
.col-4 {
  flex: 0 0 33.333%;
}
.col-5 {
  flex: 0 0 41.666%;
}
.col-6 {
  flex: 0 0 50%;
}
.col-7 {
  flex: 0 0 58.333%;
}
.col-8 {
  flex: 0 0 66.666%;
}
.col-9 {
  flex: 0 0 75%;
}
.col-10 {
  flex: 0 0 83.333%;
}
.col-11 {
  flex: 0 0 91.666%;
}
.col-12 {
  flex: 0 0 100%;
}
/*
 .row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gutter, 1rem);
}

.col {
  flex: 0 0 calc(100% / var(--sm, 12));
}

@media (min-width: 48rem) {
  .col {
    flex: 0 0 calc(100% / var(--md, var(--sm, 12)));
  }
}

@media (min-width: 64rem) {
  .col {
    flex: 0 0 calc(100% / var(--lg, var(--md, var(--sm, 12))));
  }
} 
*/
/* 5️⃣ Components */
/* Buttons */
.btn {
  font-weight: 700;
  transition:
    background-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border: none;
}
.btn:active {
  transform: scale(0.95);
}
/* sizes */
.btn-sm {
  padding: 0.5rem 1rem;
}
.btn-md {
  padding: 0.75rem 1.5rem;
}
.btn-lg {
  padding: 1.25rem 2.5rem;
}
/* variants */
.btn-primary {
  background-color: var(--theme-palette-color-5);
  color: var(--color-white);
}
.btn-primary:hover {
  background-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  border: 1px solid var(--theme-palette-color-4);
  background-color: color-mix(
    in oklab,
    var(--theme-palette-color-4) 50%,
    transparent
  );
  color: var(--color-white);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background-color: var(--theme-palette-color-4);
}
.btn-light {
  background-color: var(--color-white);
  color: var(--theme-palette-color-5);
  box-shadow: var(--shadow-xl);
}
.btn-light:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}
.btn-ghost {
  background-color: var(--theme-palette-color-6);
  padding: 1rem 3rem;
  color: var(--theme-palette-color-4);
}
.btn-ghost:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}
.btn-icon {
  gap: var(--space-sm);
  display: flex;
  align-items: center;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: var(--color-primary-50, #f0fdfa);
  width: -moz-fit-content;
  width: fit-content;
  color: var(--color-primary-dark, var(--color-primary));
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
  transition: gap var(--transition-fast);
}
.btn-back:hover {
  gap: var(--space-md);
}
.icon-btn {
  padding: 1rem;
  line-height: 0;
  cursor: pointer;
  border-radius: var(--radius-md);
  background-color: var(--theme-palette-color-6);
  color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
}
.icon-btn:hover {
  background-color: #f0fdfa;
  color: var(--color-primary);
}
/* ==============================
   Homepage Components
   hero, section-title, section-box, cards,
   grid-btn, country-btn, tags
============================== */
/* --- Hero Section --- */
.hero-section {
  background-color: var(--theme-palette-color-5);
  padding: 2.5rem;
  color: var(--color-white);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-xxl);
  position: relative;
  overflow: hidden;
}
.hero-content {
  z-index: 10;
  max-width: 56rem;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  border: 1px solid color-mix(in oklab, var(--color-primary) 30%, transparent);
  background-color: color-mix(in oklab, var(--color-primary) 20%, transparent);
  border-radius: var(--radius-xl);
  padding: 0.375rem 1rem;
  color: var(--color-secondary);
  margin-bottom: 2rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-title {
  margin-bottom: 2.5rem;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}
.hero-title-gradient {
  background: linear-gradient(to left, var(--color-secondary), #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-description {
  margin-bottom: 3rem;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.625;
  font-weight: 500;
  color: var(--theme-palette-color-8);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.bg-icon {
  pointer-events: none;
  position: absolute;
  bottom: -5rem;
  left: -5rem;
  opacity: 0.03;
  rotate: 12deg;
  width: 400px;
  height: 400px;
}
/* --- Section Title --- */
.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: 3rem;
  margin-bottom: 2rem;
}
.section-title-icon {
  border-radius: var(--radius-sm);
  background-color: #ccfbf1;
  padding: 0.625rem;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.section-title-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}
.section-title-text {
  font-size: var(--font-size-h4);
  font-weight: 700;
  color: var(--theme-palette-color-4);
}
/* --- Section Box --- */
.section-box {
  border: 1px solid var(--theme-palette-color-6);
  background-color: var(--color-white);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-xxl);
  position: relative;
  overflow: clip;
}
.section-box .bg-icon {
  opacity: 0.01;
}
/* --- Card Base --- */
.card {
  cursor: pointer;
  border-radius: var(--radius-md);
  border: 1px solid var(--theme-palette-color-6);
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}
.card:hover {
  box-shadow: var(--shadow-lg);
}
/* --- Card Category --- */
.card-category {
  display: block;
  border: 1px solid;
  padding: 2rem;
  border-radius: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}
.card-category:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.card-category-icon {
  margin-bottom: 1.5rem;
  transition: transform var(--transition-fast);
  width: 2rem;
  height: 2rem;
}
.card-category:hover .card-category-icon {
  transform: scale(1.25);
}
.card-category-name {
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-h4);
  font-weight: 700;
}
.card-category-desc {
  font-size: 0.75rem;
  line-height: 1.625;
  font-weight: 700;
  opacity: 0.7;
}
/* --- Card Article --- */
.card-article {
  border-radius: 2.5rem;
  overflow: hidden;
  display: block;
}
.card-article:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.card-article-image {
  height: 14rem;
  position: relative;
  overflow: hidden;
}
.card-article-image img {
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: scale 700ms ease;
}
.card-article:hover .card-article-image img {
  scale: 105%;
}
.card-article-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--color-primary);
  padding: 0.375rem 1rem;
  font-weight: 700;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--color-white);
  text-transform: uppercase;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.card-article-content {
  padding: 2rem;
}
.card-article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.card-article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.card-article-title {
  margin-bottom: 1rem;
  font-size: var(--font-size-h4);
  line-height: 1.25;
  font-weight: 700;
  color: var(--theme-palette-color-5);
}
.card-article-excerpt {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  font-weight: 500;
  color: var(--color-text-muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card-article-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
}
/* --- Card Poem --- */
.card-poem {
  height: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.card-poem:hover {
  border-color: var(--color-secondary);
}
.card-poem-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.card-poem-title {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--theme-palette-color-5);
  transition: color var(--transition-fast);
}
.card-poem-poet {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
}
.card-poem-meter {
  background-color: var(--theme-palette-color-6);
  padding: 0.25rem 0.5rem;
  font-weight: 700;
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  border-radius: 0.25rem;
}
.card-poem-verses {
  margin-block: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--theme-palette-color-6);
  background-color: color-mix(
    in oklab,
    var(--theme-palette-color-6) 50%,
    transparent
  );
  padding: 1rem;
  font-family: var(--font-family-serif);
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--theme-palette-color-4);
  font-style: italic;
}
.card-poem-verse {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.card-poem-verse-first {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
}
.card-poem-verse-second {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  text-align: left;
  opacity: 0.8;
}
.card-poem-footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  border-top: 1px solid var(--theme-palette-color-6);
  padding-top: 1rem;
  margin-top: auto;
}
/* --- Tags --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  transition: background-color var(--transition-fast);
  box-shadow: var(--shadow-sm);
}
/* --- Grid Button --- */
.grid-btn {
  border-radius: var(--radius-md);
  border: 1px solid var(--theme-palette-color-6);
  background-color: var(--theme-palette-color-6);
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--theme-palette-color-4);
  transition: all var(--transition-fast);
  text-align: center;
  display: block;
}
.grid-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}
.grid-btn:active {
  scale: 90%;
}
.grid-btn-letter {
  aspect-ratio: 1;
  font-size: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.grid-btn-letter:hover {
  box-shadow: var(--shadow-lg);
}
/* --- Country Button --- */
.country-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.country-btn-icon {
  height: 5rem;
  width: 5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--theme-palette-color-6);
  background-color: var(--theme-palette-color-6);
  color: var(--color-text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all var(--transition-fast);
}
.country-btn-icon:active {
  scale: 90%;
}
.country-btn:hover .country-btn-icon {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
}
.country-btn-text {
  font-weight: 700;
  color: var(--theme-palette-color-4);
  transition: color var(--transition-fast);
}
.country-btn:hover .country-btn-text {
  color: var(--color-primary);
}
/* --- Unified Color Variants --- */
.rose {
  border-color: #ffe4e6;
  background-color: rgba(255, 241, 242, 0.3);
  color: #881337;
}
.rose svg {
  color: #f43f5e;
}
.rose .card-category-desc {
  color: #be123c;
}
.tag.rose:hover {
  background-color: #ffe4e6;
}
.amber {
  border-color: #fef3c7;
  background-color: rgba(255, 251, 235, 0.3);
  color: #78350f;
}
.amber svg {
  color: #f59e0b;
}
.amber .card-category-desc {
  color: #b45309;
}
.tag.amber:hover {
  background-color: #fef3c7;
}
.indigo {
  border-color: #e0e7ff;
  background-color: rgba(238, 242, 255, 0.3);
  color: #312e81;
}
.indigo svg {
  color: #6366f1;
}
.indigo .card-category-desc {
  color: #4338ca;
}
.tag.indigo:hover {
  background-color: #e0e7ff;
}
.slate {
  border-color: #e2e8f0;
  background-color: #f8fafc;
  color: var(--theme-palette-color-5);
}
.slate svg {
  color: #64748b;
}
.slate .card-category-desc {
  color: #334155;
}
.tag.slate:hover {
  background-color: #e2e8f0;
}
.emerald {
  border-color: #d1fae5;
  background-color: rgba(236, 253, 245, 0.3);
  color: #064e3b;
}
.emerald svg {
  color: #10b981;
}
.emerald .card-category-desc {
  color: #047857;
}
.tag.emerald:hover {
  background-color: #d1fae5;
}
.cyan {
  border-color: #cffafe;
  background-color: #ecfeff;
  color: #0e7490;
}
.cyan svg {
  color: #06b6d4;
}
.cyan .card-category-desc {
  color: #0891b2;
}
.tag.cyan:hover {
  background-color: #cffafe;
}
.teal {
  border-color: #ccfbf1;
  background-color: #f0fdfa;
  color: var(--color-primary);
}
.teal svg {
  color: #14b8a6;
}
.teal .card-category-desc {
  color: #0d9488;
}
.tag.teal:hover {
  background-color: #ccfbf1;
}
/* --- Alphabet hint --- */
.alphabet-hint {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-weight: 700;
  text-align: center;
}
/* --- Search Box --- */
.search-box-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--theme-palette-color-5);
}
.search-box-input-wrapper {
  position: relative;
  flex-grow: 1;
}
.search-box-icon {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
}
.search-box-input {
  width: 100%;
  background-color: var(--theme-palette-color-6);
  padding: 1.5rem 3.5rem 1.5rem 1.5rem;
  border-radius: var(--radius-xxl);
  border: 2px solid transparent;
  outline: none;
  font-weight: 700;
  font-size: 1.125rem;
  transition: all var(--transition-fast);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}
.search-box-input:focus {
  border-color: var(--color-primary);
}
/* Header Component */
header,
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 5rem;
  border-bottom: 1px solid var(--color-border);
  background-color: color-mix(in oklab, var(--color-white) 90%, transparent);
  padding-inline: var(--space-md);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(var(--blur-md));
}
.header-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  display: flex;
  cursor: pointer;
  align-items: center;
  gap: var(--space-sm);
}
.header-logo:hover .header-logo-icon {
  scale: 110%;
}
.header-logo-icon {
  border-radius: var(--radius-md);
  background-color: var(--theme-palette-color-5);
  padding: 0.625rem;
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
  transition: scale var(--transition-fast);
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.header-logo-text {
  font-size: var(--font-size-h4);
  font-weight: 900;
  letter-spacing: -0.05em;
}
.header-nav {
  display: none;
  align-items: center;
  gap: 2.5rem;
}
.header-nav-link {
  font-size: 0.875rem;
  font-weight: 900;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}
.header-nav-link:hover {
  color: var(--theme-palette-color-4);
}
.header-nav-link--active {
  color: var(--color-primary);
}
/* Mobile Menu */
.mobile-menu {
  position: absolute;
  top: 5rem;
  right: 0;
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-white);
  padding: var(--space-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.mobile-menu-link {
  text-align: right;
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--theme-palette-color-4);
}
.mobile-menu-link--active {
  color: var(--color-primary);
}
.icon-button {
  border-radius: var(--radius-md);
  background-color: var(--theme-palette-color-6);
  padding: var(--space-sm);
  transition: background-color var(--transition-fast);
  cursor: pointer;
  color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
  line-height: 0;
}
.icon-button:hover {
  background-color: var(--color-border);
}
/* Footer */
.footer {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-white);
  padding-block: 6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  text-align: right;
}
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 2rem;
  cursor: pointer;
}
.footer-brand-icon {
  border-radius: var(--radius-md);
  background-color: var(--theme-palette-color-5);
  padding: 0.625rem;
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-brand-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}
.footer-brand-text {
  font-size: 1.875rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}
.footer-brand-description {
  max-width: 28rem;
  font-size: 1.125rem;
  line-height: 1.625;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}
.footer-section-title {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--theme-palette-color-5);
  margin-bottom: 2rem;
}
.footer-section-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-weight: 700;
  color: var(--color-text-muted);
}
.footer-section-link {
  cursor: pointer;
  transition: color var(--transition-fast);
}
.footer-section-link:hover {
  color: var(--color-primary);
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  border-top: 1px solid var(--theme-palette-color-6);
  padding-top: 3rem;
}
.footer-copyright {
  font-weight: 700;
  color: var(--color-text-muted);
}
/* ==============================
   Pagination
============================== */
.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.justify-content-center {
  justify-content: center;
}
.page-item {
  display: list-item;
}
.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  color: var(--theme-palette-color-4, var(--color-primary));
  text-decoration: none;
  background-color: var(--color-white);
  border: 1px solid var(--theme-palette-color-6, #e5e7eb);
  border-radius: var(--radius-md, 0.375rem);
  font-weight: 600;
  transition: all var(--transition-fast, 0.2s);
  cursor: pointer;
}
.page-link:hover {
  background-color: var(--color-primary-50, #f0fdfa);
  color: var(--theme-palette-color-5, var(--color-primary));
  border-color: var(--theme-palette-color-5, var(--color-primary));
}
.page-item.active .page-link {
  z-index: 3;
  color: var(--color-white);
  background-color: var(--theme-palette-color-5, var(--color-primary));
  border-color: var(--theme-palette-color-5, var(--color-primary));
}
.page-item.disabled .page-link {
  color: var(--color-text-muted, #9ca3af);
  pointer-events: none;
  background-color: var(--theme-palette-color-6, #f9fafb);
  border-color: var(--theme-palette-color-6, #e5e7eb);
}
.load-more {
  justify-self: center;
  border-radius: var(--radius-md);
  gap: var(--space-sm);
  display: flex;
  align-items: center;
}
.load-more .icon {
  display: none;
}
.load-more.active .icon {
  display: block;
}
/* ==============================
   Poem Detail Page Components
============================== */
.poem-container {
  border: 1px solid var(--theme-palette-color-6);
  background-color: var(--color-white);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: clip;
}
.poem-container .bg-icon {
  opacity: 0.01;
}
/* --- Poem Detail Header --- */
.poem-header {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--theme-palette-color-6);
  padding-bottom: 2rem;
}
.poem-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: var(--theme-palette-color-5);
  line-height: 1.3;
}
.poem-poet {
  color: var(--color-primary);
  font-weight: 900;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity var(--transition-fast);
}
.poem-detail-poet:hover {
  opacity: 0.8;
}
/* --- Poem Toolbar --- */
.poem-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--theme-palette-color-6);
  padding: 0.5rem;
  border-radius: var(--radius-xxl);
  border: 1px solid var(--theme-palette-color-8);
  flex-wrap: wrap;
  gap: 0.5rem;

  /* Sticky Positioning */
  position: sticky;
  top: 5rem;
  z-index: 40;
  transition:
    transform var(--transition-normal),
    opacity var(--transition-normal);
  margin-bottom: 4rem;
  margin-inline: -2rem;
}
.poem-toolbar.toolbar-hidden {
  transform: translateY(-150%);
  opacity: 0;
  pointer-events: none;
}
.poem-toolbar-layouts {
  display: none;
  align-items: center;
  gap: 0.2rem;
  background-color: var(--color-white);
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--theme-palette-color-8);
}
.poem-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.poem-toolbar-btn {
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  color: var(--color-text-light);
  cursor: pointer;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.poem-toolbar-btn:hover {
  color: var(--color-text-muted);
  background-color: rgba(255, 255, 255, 0.5);
}
.poem-toolbar-btn.active {
  background-color: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.poem-toolbar-text {
  font-size: 0.875rem;
  font-weight: 700;
  background-color: var(--color-white);
  color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
}
.maximize-btn {
  display: none;
}
/* --- Poem Verses Container --- */
.poem-verses-container {
  text-align: center;
}
.poem-verses-container > * + * {
  margin-top: 2.5rem;
}
.verse-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--theme-palette-color-6);
  padding-bottom: 2rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}
.verse-row:last-child {
  border-bottom: none;
}
.verse-first,
.verse-second {
  font-size: calc(1.3rem * var(--poem-scale, 1));
  font-family: var(--font-family-serif);
  color: var(--theme-palette-color-4);
  transition:
    color var(--transition-fast),
    font-size var(--transition-fast);
  line-height: 1.625;
}
.verse-second {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}
.verse-row.active .verse-first,
.verse-row:hover .verse-first,
.verse-row.selected .verse-first {
  color: var(--color-primary);
}
.verse-row.active .verse-second,
.verse-row:hover .verse-second,
.verse-row.selected .verse-second {
  color: var(--color-secondary);
}
.verse-row.selected {
  background-color: rgba(20, 184, 166, 0.05); /* very light primary */
  border-color: var(--color-primary);
}
/* --- Floating Selection Toolbar --- */
.verse-selection-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background-color: var(--theme-palette-color-5);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 100;
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
  width: 100%;
  justify-content: center;
}
.verse-selection-bar.hidden {
  transform: translateX(-50%) translateY(150%);
  opacity: 0;
  pointer-events: none;
}
.verse-selection-count {
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.verse-selection-count #verse-selection-number {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-pill);
}
.verse-selection-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.selection-text {
  display: none;
}
/* --- Layout variants --- */
.layout-vertical .verse-row {
  flex-direction: column;
  gap: 0.75rem;
  border-right: 4px solid rgba(var(--color-primary), 0.2);
  border-bottom: none;
  padding-right: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid transparent;
}
.layout-modern .verse-row {
  background-color: var(--theme-palette-color-6);
  padding: 2rem;
  border-radius: var(--radius-xxl);
  border: 1px solid var(--theme-palette-color-8);
  box-shadow: var(--shadow-sm);
  border-bottom: none;
}
.layout-modern .verse-row.active,
.layout-modern .verse-row:hover {
  background-color: rgba(13, 148, 136, 0.04);
  border-color: var(--color-secondary);
}
/* --- Poem Detail Tags --- */
.poem-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--theme-palette-color-6);
}
.poem-detail-tags .tag {
  padding: 0.625rem 1.25rem;
}
/* --- Read Also Section --- */
.poem-read-also {
  margin-top: 4rem;
}
.card-read-also {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  border: 1px solid var(--theme-palette-color-6);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.card-read-also:hover {
  border-color: var(--color-primary);
}
.card-read-also-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.card-read-also-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background-color: var(--theme-palette-color-6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  flex-shrink: 0;
}
.card-read-also:hover .card-read-also-icon {
  background-color: var(--color-primary);
  color: var(--color-white);
}
.card-read-also-title {
  font-weight: 700;
  color: var(--theme-palette-color-4);
}
.card-read-also-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.card-read-also-arrow {
  color: var(--color-text-light);
  transition: color var(--transition-fast);
}
.card-read-also:hover .card-read-also-arrow {
  color: var(--color-primary);
}
/* ==============================
   Sidebar Components
============================== */
.sticky-sidebar {
  position: sticky;
  top: 2rem;
}
.base-card {
  background-color: var(--color-white);
  border-radius: var(--radius-xxl);
  padding: 2.5rem;
  border: 1px solid var(--theme-palette-color-8);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.base-card .bg-icon {
  width: 250px;
  height: 250px;
  transition: scale var(--transition-normal);
}
.base-card:hover .bg-icon {
  scale: 1.1;
}
.dark-card {
  background-color: var(--theme-palette-color-5);
  color: var(--color-white);
  border: inherit;
}
.card-title {
  font-weight: 900;
  font-size: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.card-title .icon {
  color: var(--theme-palette-color-2);
}
/* --- Card Poet --- */
.card-poet {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--theme-palette-color-6);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
  overflow: hidden;
}
.card-poet:hover {
  border-color: var(--color-primary);
}
.card-poet-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.card-poet-avatar {
  width: 5rem;
  height: 5rem;
  background-color: var(--color-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}
.card-poet-avatar2 {
  width: 4rem;
  height: 4rem;
  background-color: var(--theme-palette-color-5);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}
.card-poet:hover .card-poet-avatar2 {
  background-color: var(--color-primary);
  color: var(--color-white);
}
.card-poet-name {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  transition: color var(--transition-fast);
}
.card-poet-name:hover {
  color: var(--color-secondary);
}
.card-poet-era {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: rgba(20, 184, 166, 0.1);
  padding: 0.25rem 0.75rem;
}
.card-poet-era2 {
  font-size: 0.875rem;
  font-weight: 900;
  color: var(--color-primary);
}
.card-poet-bio {
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 2;
  font-style: italic;
  border-right: 4px solid rgba(20, 184, 166, 0.3);
  padding-right: 1.5rem;
  margin-bottom: 2.5rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
}
.card-poet-bio2 {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.625;
  margin-bottom: 2rem;
  font-style: italic;
  font-family: var(--font-family-serif);
  flex-grow: 1;
  overflow: hidden;
  display: -webkit-box;
}
.card-poet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--theme-palette-color-6);
}
.card-poet-location {
  font-size: 0.75rem;
  color: var(--color-text-light);
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.card-poet-location .icon {
  color: var(--color-primary);
}
/**/
.sidebar-note {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.625;
  font-style: italic;
  border-right: 2px solid var(--theme-palette-color-8);
  padding-right: 1rem;
}
/* --- Sidebar Dark (Most Read) --- */
.sidebar-dark-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 10;
  counter-reset: sidebar-counter;
}
.sidebar-dark-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  cursor: pointer;
  counter-increment: sidebar-counter;
}
.sidebar-dark-link::before {
  content: counter(sidebar-counter);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg);
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.875rem;
  color: #2dd4bf;
  flex-shrink: 0;
  transition: background var(--transition-fast);
}
.sidebar-dark-link:hover::before {
  background-color: var(--color-primary);
  color: var(--color-white);
}
.sidebar-dark-link span {
  font-weight: 700;
  color: #cbd5e1;
  transition: color var(--transition-fast);
}
.sidebar-dark-link:hover span {
  color: var(--color-white);
}
/* ==============================
   Article Detail Page
============================== */
.article-wrapper {
  background-color: var(--color-white);
  border-radius: var(--radius-xxl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--theme-palette-color-8);
  overflow: hidden;
}
/* --- Cover Image --- */
.article-cover {
  width: 100%;
  height: 20rem;
  position: relative;
  overflow: hidden;
}
.article-cover img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.article-cover:hover img {
  transform: scale(1.05);
}
.article-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.4),
    transparent
  );
}
.article-cover-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
}
.article-category-badge {
  display: inline-block;
  background-color: rgba(20, 184, 166, 0.9);
  backdrop-filter: blur(8px);
  color: var(--color-white);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(20, 184, 166, 0.3);
}
.article-cover-title {
  font-size: 1.875rem;
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.3;
  max-width: 48rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
/* --- Article Body --- */
.article-body {
  padding: 2rem;
}
/* --- Meta Bar --- */
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--theme-palette-color-8);
  background-color: var(--theme-palette-color-6);
  padding: 1.5rem;
  border-radius: var(--radius-xxl);
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  background-color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--theme-palette-color-8);
  color: var(--theme-palette-color-4);
}
.article-meta-item svg {
  color: var(--color-primary);
}
.article-meta-actions {
  margin-inline-start: auto;
  display: flex;
  gap: var(--space-sm);
}
.article-print-btn {
  background-color: var(--color-white);
  color: var(--color-text-muted);
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--theme-palette-color-8);
  cursor: pointer;
}
.article-print-btn:hover {
  color: var(--color-primary);
  background-color: rgba(20, 184, 166, 0.05);
}
/* --- Article Content --- */
.article-content {
  font-family: var(--font-family-serif);
  font-size: 1.25rem;
  line-height: 2;
  color: var(--theme-palette-color-4);
}
.article-content p {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  line-height: 2;
  color: var(--color-text-muted);
}
.article-content strong {
  color: var(--theme-palette-color-5);
}
.article-intro {
  font-size: 1.375rem !important;
  font-weight: 500;
  color: var(--theme-palette-color-4) !important;
  line-height: 2;
  margin-bottom: 2.5rem !important;
  padding: 2rem;
  background-color: var(--theme-palette-color-6);
  border-radius: var(--radius-xxl);
  border-right: 4px solid var(--color-text-muted);
}
.article-content h2 {
  font-family: var(--font-family-base);
  font-size: 1.875rem;
  font-weight: 900;
  color: var(--theme-palette-color-5);
  margin: 4rem 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(20, 184, 166, 0.15);
}
.article-content blockquote {
  border-right: 4px solid var(--color-primary);
  background-color: rgba(20, 184, 166, 0.05);
  padding: 2rem;
  border-radius: 0 var(--radius-xxl) var(--radius-xxl) 0;
  font-style: italic;
  color: var(--theme-palette-color-4);
  margin: 2.5rem 0;
  box-shadow: var(--shadow-sm);
}
/* --- Poets List --- */
.article-poets-list {
  list-style: decimal inside;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-weight: 700;
  color: var(--theme-palette-color-4);
  background-color: var(--theme-palette-color-6);
  padding: 2rem;
  border-radius: var(--radius-xxl);
  margin-bottom: 2.5rem;
  border: 1px solid var(--theme-palette-color-8);
}
.article-poet-item {
  padding: 0.75rem;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding-right: 1.5rem;
  border-right: 4px solid;
}
.article-poet-item--rose {
  border-right-color: #fb7185;
}
.article-poet-item--amber {
  border-right-color: #fbbf24;
}
.article-poet-item--emerald {
  border-right-color: #34d399;
}
.article-poet-item--indigo {
  border-right-color: #818cf8;
}
.article-poet-item--purple {
  border-right-color: #a78bfa;
}
.article-poet-item--cyan {
  border-right-color: #22d3ee;
}
.article-poet-item--slate {
  border-right-color: #94a3b8;
}
/* ==============================
   Poet Detail Page
============================== */
.poet-profile-header {
  padding: 3rem;
}
.poet-profile-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  text-align: center;
}
.poet-avatar-lg {
  width: 8rem;
  height: 8rem;
  background-color: var(--color-primary);
  border-radius: var(--radius-xl);
  transform: rotate(3deg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 4px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.poet-profile-info {
  flex: 1;
}
.poet-profile-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.poet-profile-tag {
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.625rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.poet-profile-tag--primary {
  background-color: rgba(20, 184, 166, 0.2);
  color: #2dd4bf;
  border: 1px solid rgba(20, 184, 166, 0.2);
}
.poet-profile-tag--muted {
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.poet-profile-name {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 2rem;
  line-height: 1.1;
  color: var(--color-white);
}
/* --- Stats --- */
.poet-profile-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-value {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--color-white);
}
.stat-value--accent {
  color: #2dd4bf;
}
.stat-divider {
  width: 1px;
  height: 3rem;
  background-color: rgba(255, 255, 255, 0.1);
  display: none;
}
/* --- Tabs --- */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--theme-palette-color-8);
  margin-bottom: 2rem;
}
.tab-btn {
  padding: 1rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-normal);
  cursor: pointer;
}
.tab-btn--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-secondary);
}
.tab-btn--inactive {
  color: var(--color-text-muted);
}
.tab-btn--inactive:hover {
  color: var(--theme-palette-color-4);
  border-bottom-color: var(--theme-palette-color-8);
  background-color: var(--theme-palette-color-6);
}
/* --- Quotes --- */
.quotes-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.quote-card {
  display: flex;
  gap: 2rem;
  padding: 2.5rem;
  background-color: var(--color-white);
  border-radius: var(--radius-xxl);
  border: 1px solid var(--theme-palette-color-8);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}
.quote-card:hover {
  border-color: var(--color-secondary);
}
.quote-card-icon {
  width: 3rem;
  height: 3rem;
  color: rgba(20, 184, 166, 0.15);
  flex-shrink: 0;
  transition: color var(--transition-fast);
}
.quote-card:hover .quote-card-icon {
  color: rgba(20, 184, 166, 0.3);
}
.quote-card p {
  font-family: var(--font-family-serif);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 2;
  color: var(--theme-palette-color-4);
}
/* --- btn-block, tag-default --- */
.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}
.default {
  background-color: var(--theme-palette-color-6);
  color: var(--color-text-muted);
}
/* --- lg-col-span helpers --- */
.lg-col-span-8 {
  grid-column: span 12;
}
.lg-col-span-4 {
  grid-column: span 12;
}
/* --- Theater Mode --- */
.poem-theater-mode .lg-col-span-8 {
  grid-column: span 12 !important;
}
.poem-theater-mode .lg-col-span-4 {
  display: none !important;
}
/* 6️⃣ Utilities */
/* ==============================
   Shadow Property Class
   متغيرات: --shadow, --shadow-color
   الاستخدام: <div class="shadow shadow-lg">
   التخصيص: .my-card.shadow { --shadow-color: rgba(0,0,0,0.2); }
============================== */
.shadow {
  --inset-shadow: 0 0 #0000;
  --inset-ring-shadow: 0 0 #0000;
  --ring-offset-shadow: 0 0 #0000;
  --ring-shadow: 0 0 #0000;

  --shadow: var(--shadow-sm);
  box-shadow:
    var(--inset-shadow), var(--inset-ring-shadow), var(--ring-offset-shadow),
    var(--ring-shadow), var(--shadow);
}
/* أحجام الظل */
.shadow-sm {
  --shadow:
    0 1px 3px 0 var(--shadow-color, rgb(0 0 0 / 0.1)),
    0 1px 2px -1px var(--shadow-color, rgb(0 0 0 / 0.1));
}
.shadow-md {
  --shadow:
    0 4px 6px -1px var(--shadow-color, rgb(0 0 0 / 0.1)),
    0 2px 4px -2px var(--shadow-color, rgb(0 0 0 / 0.1));
}
.shadow-lg {
  --shadow:
    0 10px 15px -3px var(--shadow-color, rgb(0 0 0 / 0.1)),
    0 4px 6px -4px var(--shadow-color, rgb(0 0 0 / 0.1));
}
.shadow-xl {
  --shadow:
    0 20px 25px -5px var(--shadow-color, rgb(0 0 0 / 0.1)),
    0 8px 10px -6px var(--shadow-color, rgb(0 0 0 / 0.1));
}
.shadow-2xl {
  --shadow: 0 25px 50px -12px var(--shadow-color, rgb(0 0 0 / 0.25));
}
.shadow-inner {
  --shadow: inset 0 2px 4px 0 var(--shadow-color, rgb(0 0 0 / 0.05));
}
.shadow-none {
  --shadow: 0 0 #0000;
}
/* تأثير الظل المتوهج - مفيد للأزرار والعناصر التفاعلية */
.shadow-glow {
  --shadow: 0 0 20px var(--shadow-color, rgba(13, 148, 136, 0.2));
}
/* ==============================
   Radius Property Class
   متغيرات: --radius
   الاستخدام: <div class="radius radius-lg">
   التخصيص: .my-card.radius { --radius: 2rem; }
============================== */
.radius {
  border-radius: var(--radius, var(--radius-md));
}
.radius-sm {
  --radius: var(--radius-sm);
}
.radius-md {
  --radius: var(--radius-md);
}
.radius-lg {
  --radius: var(--radius-lg);
}
.radius-xl {
  --radius: var(--radius-xl);
}
.radius-xxl {
  --radius: var(--radius-xxl);
}
.radius-full {
  --radius: 9999px;
}
.radius-none {
  --radius: 0;
}
/* ==============================
   Ring Property Class (إطار حول العنصر)
   متغيرات: --ring-width, --ring-color, --ring-offset
   الاستخدام: <div class="shadow ring">
   التخصيص: .my-input.ring { --ring-color: var(--color-primary); }
============================== */
.ring {
  --ring-width: 2px;
  --ring-color: var(--color-primary);
  --ring-offset: 0px;
  --ring-shadow:
    0 0 0 var(--ring-offset) var(--color-bg),
    0 0 0 calc(var(--ring-width) + var(--ring-offset)) var(--ring-color);
}
.ring-1 {
  --ring-width: 1px;
}
.ring-2 {
  --ring-width: 2px;
}
.ring-4 {
  --ring-width: 4px;
}
/* ألوان Ring جاهزة */
.ring-primary {
  --ring-color: var(--color-primary);
}
.ring-secondary {
  --ring-color: var(--color-secondary);
}
.ring-success {
  --ring-color: var(--color-success);
}
.ring-danger {
  --ring-color: var(--color-danger);
}
.ring-warning {
  --ring-color: var(--color-warning);
}
.ring-info {
  --ring-color: var(--color-info);
}
/* ring مع inset */
.ring-inset {
  --inset-ring-shadow: inset 0 0 0 var(--ring-width, 2px)
    var(--ring-color, var(--color-primary));
  --ring-shadow: 0 0 #0000;
}
.ring-none {
  --ring-shadow: 0 0 #0000;
}
/* ==============================
   Transition Property Class
   متغيرات: --duration, --ease
   الاستخدام: <div class="transition transition-slow">
   التخصيص: .my-btn.transition { --duration: 200ms; --ease: ease-in-out; }
============================== */
.transition {
  transition-property:
    color, background-color, border-color, box-shadow, opacity, transform,
    translate, scale, rotate;
  transition-duration: var(--duration, var(--transition-normal));
  transition-timing-function: var(--ease, ease);
}
.transition-fast {
  --duration: var(--transition-fast);
}
.transition-normal {
  --duration: var(--transition-normal);
}
.transition-slow {
  --duration: var(--transition-slow);
}
/* transition لخصائص محددة */
.transition-colors {
  transition-property: color, background-color, border-color;
  transition-duration: var(--duration, var(--transition-normal));
  transition-timing-function: var(--ease, ease);
}
.transition-transform {
  transition-property: transform, translate, scale, rotate;
  transition-duration: var(--duration, var(--transition-normal));
  transition-timing-function: var(--ease, ease);
}
.transition-opacity {
  transition-property: opacity;
  transition-duration: var(--duration, var(--transition-normal));
  transition-timing-function: var(--ease, ease);
}
.transition-shadow {
  transition-property: box-shadow;
  transition-duration: var(--duration, var(--transition-normal));
  transition-timing-function: var(--ease, ease);
}
.transition-none {
  transition: none;
}
/* ==============================
   Border Property Class
   متغيرات: --border-width, --border-color, --border-style
   الاستخدام: <div class="border">
   التخصيص: .my-card.border { --border-color: var(--color-primary); }
============================== */
.border {
  border-style: var(--border-style, solid);
  border-width: var(--border-width, 1px);
  border-color: var(--border-color, var(--color-border));
}
.border-t {
  border-top-style: var(--border-style, solid);
  border-top-width: var(--border-width, 1px);
  border-top-color: var(--border-color, var(--color-border));
}
.border-b {
  border-bottom-style: var(--border-style, solid);
  border-bottom-width: var(--border-width, 1px);
  border-bottom-color: var(--border-color, var(--color-border));
}
.border-s {
  border-inline-start-style: var(--border-style, solid);
  border-inline-start-width: var(--border-width, 1px);
  border-inline-start-color: var(--border-color, var(--color-border));
}
.border-e {
  border-inline-end-style: var(--border-style, solid);
  border-inline-end-width: var(--border-width, 1px);
  border-inline-end-color: var(--border-color, var(--color-border));
}
/* عرض الحدود */
.border-0 {
  --border-width: 0;
}
.border-2 {
  --border-width: 2px;
}
.border-4 {
  --border-width: 4px;
}
/* ألوان الحدود */
.border-primary {
  --border-color: var(--color-primary);
}
.border-secondary {
  --border-color: var(--color-secondary);
}
.border-success {
  --border-color: var(--color-success);
}
.border-danger {
  --border-color: var(--color-danger);
}
.border-warning {
  --border-color: var(--color-warning);
}
/* أنماط الحدود */
.border-dashed {
  --border-style: dashed;
}
.border-dotted {
  --border-style: dotted;
}
.border-none {
  border: none;
}
/* border radios */
.radius-sm {
  border-radius: var(--radius-sm);
}
.radius-md {
  border-radius: var(--radius-md);
}
.radius-lg {
  border-radius: var(--radius-lg);
}
.radius-xl {
  border-radius: var(--radius-xl);
}
.radius-xxl {
  border-radius: var(--radius-xxl);
}
/* ==============================
   Colors Property Classes
   متغيرات: --text-color, --bg-color
   الاستخدام: <div class="text-primary bg-light">
   التخصيص: .my-section.bg-color { --bg-color: #f0f0f0; }
============================== */
/* --- ألوان النص --- */
.text-primary {
  color: var(--color-primary);
}
.text-secondary {
  color: var(--color-secondary);
}
.text-success {
  color: var(--color-success);
}
.text-danger {
  color: var(--color-danger);
}
.text-warning {
  color: var(--color-warning);
}
.text-info {
  color: var(--color-info);
}
.text-light {
  color: var(--color-light);
}
.text-dark {
  color: var(--color-dark);
}
.text-white {
  color: var(--color-white);
}
.text-muted {
  color: color-mix(in oklab, var(--color-text) 60%, transparent);
}
/* --- ألوان الخلفية --- */
.bg-primary {
  background-color: var(--color-primary);
}
.bg-secondary {
  background-color: var(--color-secondary);
}
.bg-success {
  background-color: var(--color-success);
}
.bg-danger {
  background-color: var(--color-danger);
}
.bg-warning {
  background-color: var(--color-warning);
}
.bg-info {
  background-color: var(--color-info);
}
.bg-light {
  background-color: var(--color-light);
}
.bg-dark {
  background-color: var(--color-dark);
}
.bg-white {
  background-color: var(--color-white);
}
.bg-transparent {
  background-color: transparent;
}
/* خلفية مخصصة بمتغير */
.bg-color {
  background-color: var(--bg-color);
}
/* لون نص مخصص بمتغير */
.text-color {
  color: var(--text-color);
}
.blur {
  --backdrop-blur: blur(var(--blur-md));
  backdrop-filter: var(--backdrop-blur,) var(--backdrop-brightness,)
    var(--backdrop-contrast,) var(--backdrop-grayscale,)
    var(--backdrop-hue-rotate,) var(--backdrop-invert,) var(--backdrop-opacity,)
    var(--backdrop-saturate,) var(--backdrop-sepia,);
}
.blur-sm {
  --backdrop-blur: blur(var(--blur-sm));
}
/* ==============================
   Display Utilities
============================== */
.hidden {
  display: none;
}
.block {
  display: block;
}
.inline {
  display: inline;
}
.inline-block {
  display: inline-block;
}
.inline-flex {
  display: inline-flex;
}
.mobile-hidden {
  display: none;
}
/* Print */
/* Responsive Display */
/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
/* Overflow */
.overflow-hidden {
  overflow: hidden;
}
.overflow-auto {
  overflow: auto;
}
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-y-auto {
  overflow-y: auto;
}
/* Position */
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.fixed {
  position: fixed;
}
.sticky {
  position: sticky;
}
/* Opacity */
.opacity-0 {
  opacity: 0;
}
.opacity-25 {
  opacity: 0.25;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-75 {
  opacity: 0.75;
}
.opacity-100 {
  opacity: 1;
}
/* Cursor */
.cursor-pointer {
  cursor: pointer;
}
.cursor-default {
  cursor: default;
}
.cursor-not-allowed {
  cursor: not-allowed;
}
/* Z-Index */
.z-0 {
  z-index: 0;
}
.z-10 {
  z-index: 10;
}
.z-20 {
  z-index: 20;
}
.z-50 {
  z-index: 50;
}
.z-100 {
  z-index: 100;
}
/* Sizing */
.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}
.w-auto {
  width: auto;
}
.h-auto {
  height: auto;
}
.min-h-screen {
  min-height: 100vh;
}
.w-fit {
  width: -moz-fit-content;
  width: fit-content;
}
/* Fixed icon sizes - SVG needs explicit dimensions + shrink prevention */
svg[class*="w-"] {
  flex-shrink: 0;
  display: inline-block;
}
.w-3 {
  width: 0.75rem;
}
.h-3 {
  height: 0.75rem;
}
.w-4 {
  width: 1rem;
}
.h-4 {
  height: 1rem;
}
.w-5 {
  width: 1.25rem;
}
.h-5 {
  height: 1.25rem;
}
.w-6 {
  width: 1.5rem;
}
.h-6 {
  height: 1.5rem;
}
.w-7 {
  width: 1.75rem;
}
.h-7 {
  height: 1.75rem;
}
.w-8 {
  width: 2rem;
}
.h-8 {
  height: 2rem;
}
.w-9 {
  width: 2.25rem;
}
.h-9 {
  height: 2.25rem;
}
.w-10 {
  width: 2.5rem;
}
.h-10 {
  height: 2.5rem;
}
.w-12 {
  width: 3rem;
}
.h-12 {
  height: 3rem;
}
/* ==============================
   Spacing Utilities
   يعتمد على متغيرات --space-* من tokens.css
============================== */
/* --- Padding --- */
.p-0 {
  padding: 0;
}
.p-xs {
  padding: var(--space-xs);
}
.p-sm {
  padding: var(--space-sm);
}
.p-md {
  padding: var(--space-md);
}
.p-lg {
  padding: var(--space-lg);
}
.p-xl {
  padding: var(--space-xl);
}
.px-0 {
  padding-inline: 0;
}
.px-xs {
  padding-inline: var(--space-xs);
}
.px-sm {
  padding-inline: var(--space-sm);
}
.px-md {
  padding-inline: var(--space-md);
}
.px-lg {
  padding-inline: var(--space-lg);
}
.px-xl {
  padding-inline: var(--space-xl);
}
.py-0 {
  padding-block: 0;
}
.py-xs {
  padding-block: var(--space-xs);
}
.py-sm {
  padding-block: var(--space-sm);
}
.py-md {
  padding-block: var(--space-md);
}
.py-lg {
  padding-block: var(--space-lg);
}
.py-xl {
  padding-block: var(--space-xl);
}
.py-xxl {
  padding-block: var(--space-xxl);
}
.pt-0 {
  padding-top: 0;
}
.pt-xs {
  padding-top: var(--space-xs);
}
.pt-sm {
  padding-top: var(--space-sm);
}
.pt-md {
  padding-top: var(--space-md);
}
.pt-lg {
  padding-top: var(--space-lg);
}
.pb-0 {
  padding-bottom: 0;
}
.pb-xs {
  padding-bottom: var(--space-xs);
}
.pb-sm {
  padding-bottom: var(--space-sm);
}
.pb-md {
  padding-bottom: var(--space-md);
}
.pb-lg {
  padding-bottom: var(--space-lg);
}
.pb-xl {
  padding-bottom: var(--space-xl);
}
.pb-xxl {
  padding-bottom: var(--space-xxl);
}
/* --- Margin --- */
.m-0 {
  margin: 0;
}
.m-xs {
  margin: var(--space-xs);
}
.m-sm {
  margin: var(--space-sm);
}
.m-md {
  margin: var(--space-md);
}
.m-lg {
  margin: var(--space-lg);
}
.m-xl {
  margin: var(--space-xl);
}
.m-xxl {
  margin: var(--space-xxl);
}
.m-auto {
  margin: auto;
}
.mx-0 {
  margin-inline: 0;
}
.mx-xs {
  margin-inline: var(--space-xs);
}
.mx-sm {
  margin-inline: var(--space-sm);
}
.mx-md {
  margin-inline: var(--space-md);
}
.mx-lg {
  margin-inline: var(--space-lg);
}
.mx-xl {
  margin-inline: var(--space-xl);
}
.mx-auto {
  margin-inline: auto;
}
.my-0 {
  margin-block: 0;
}
.my-xs {
  margin-block: var(--space-xs);
}
.my-sm {
  margin-block: var(--space-sm);
}
.my-md {
  margin-block: var(--space-md);
}
.my-lg {
  margin-block: var(--space-lg);
}
.my-xl {
  margin-block: var(--space-xl);
}
.mt-0 {
  margin-top: 0;
}
.mt-xs {
  margin-top: var(--space-xs);
}
.mt-sm {
  margin-top: var(--space-sm);
}
.mt-md {
  margin-top: var(--space-md);
}
.mt-lg {
  margin-top: var(--space-lg);
}
.mt-xl {
  margin-top: var(--space-xl);
}
.mb-0 {
  margin-bottom: 0;
}
.mb-xs {
  margin-bottom: var(--space-xs);
}
.mb-sm {
  margin-bottom: var(--space-sm);
}
.mb-md {
  margin-bottom: var(--space-md);
}
.mb-lg {
  margin-bottom: var(--space-lg);
}
.mb-xl {
  margin-bottom: var(--space-xl);
}
.mb-xxl {
  margin-bottom: var(--space-xxl);
}
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.text-uppercase {
  text-transform: uppercase;
}
.text-lowercase {
  text-transform: lowercase;
}
.text-capitalize {
  text-transform: capitalize;
}
.truncate {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* ==============================
   Flexbox Utilities
============================== */
.d-flex,
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.flex-column {
  flex-direction: column;
}
.flex-row {
  flex-direction: row;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-nowrap {
  flex-wrap: nowrap;
}
/* Justify */
.justify-center {
  justify-content: center;
}
.justify-start {
  justify-content: flex-start;
}
.justify-end {
  justify-content: flex-end;
}
.justify-between {
  justify-content: space-between;
}
.justify-around {
  justify-content: space-around;
}
.justify-evenly {
  justify-content: space-evenly;
}
/* Align */
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.items-stretch {
  align-items: stretch;
}
.items-baseline {
  align-items: baseline;
}
.self-center {
  align-self: center;
}
.self-start {
  align-self: flex-start;
}
.self-end {
  align-self: flex-end;
}
.self-stretch {
  align-self: stretch;
}
/* Gap */
.gap {
  gap: var(--space-md); /* Default gap */
}
.gap-0 {
  gap: 0;
}
.gap-xs {
  gap: var(--space-xs);
}
.gap-sm {
  gap: var(--space-sm);
}
.gap-md {
  gap: var(--space-md);
}
.gap-lg {
  gap: var(--space-lg);
}
.gap-xl {
  gap: var(--space-xl);
}
/* Flex sizing */
.flex-1 {
  flex: 1 1 0%;
}
.flex-auto {
  flex: 1 1 auto;
}
.flex-none {
  flex: none;
}
.grow {
  flex-grow: 1;
}
.grow-0 {
  flex-grow: 0;
}
.shrink {
  flex-shrink: 1;
}
.shrink-0 {
  flex-shrink: 0;
}
/* Grid and responsive grid helpers */
.grid {
  display: grid;
  gap: var(--space-md);
}
/* ==============================
   Auto-responsive Grid System
   استخدام: grid-auto-{n}
   يبدأ بعمود واحد ويتوسع تلقائياً
============================== */
/* --- 2 أعمدة --- */
.grid-auto-2 {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
/* --- 3 أعمدة --- */
.grid-auto-3 {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
/* --- 4 أعمدة --- */
.grid-auto-4 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
/* --- 5 أعمدة (من 1 عمود) --- */
.grid-auto-5 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
/* --- 5 أعمدة (من 2 عمود) --- */
.grid-auto-5-dense {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}
/* --- 6 أعمدة --- */
.grid-auto-6 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
/* --- 7 أعمدة --- */
.grid-auto-7 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}
/* --- 14 عمود (الحروف) --- */
.grid-auto-14 {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, 1fr);
}
/* space-y */
.space-y-24 > * + * {
  margin-block-start: 6rem;
}
/* Margin helpers */
.mt-12 {
  margin-top: 3rem;
}
/* --- Animations --- */
.base-animate {
  /*.animate-fade-up*/
  animation: fadeUp 0.5s ease-out forwards;
  animation-fill-mode: none !important;
}
/* 1. Fade In */
.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* 2. Fade Up (Good for cards, lists, page content) */
.animate-fade-up {
  animation: fadeUp 0.5s ease-out forwards;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* 3. Fade Down (Good for dropdowns, tooltips, sticky headers) */
.animate-fade-down {
  animation: fadeDown 0.4s ease-out forwards;
}
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* 4. Scale Up (Good for modals, badges, important notifications) */
.animate-scale-up {
  animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; /* Bouncy effect */
}
@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* 5. Pulse (Good for live indicators, notifications) */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
/* 6. Spin (Good for loading spinners, refresh icons) */
.animate-spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/* --- Animation Utilities (Delays) --- */
/* Useful for staggering list items (.animate-delay-100, .animate-delay-200, etc.) */
.delay-75 {
  animation-delay: 75ms;
}
.delay-150 {
  animation-delay: 150ms;
}
.delay-300 {
  animation-delay: 300ms;
}
.delay-500 {
  animation-delay: 500ms;
}
/* 7. Slide In Left */
.animate-slide-in-left {
  animation: slideInLeft 0.5s ease-out forwards;
}
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* 8. Slide In Right */
.animate-slide-in-right {
  animation: slideInRight 0.5s ease-out forwards;
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* 9. Zoom In (Good for images, modal backgrounds) */
.animate-zoom-in {
  animation: zoomIn 0.5s ease-out forwards;
}
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* 10. Shake (Good for validation errors, wrong passwords) */
.animate-shake {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes shake {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }
  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }
  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }
  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}
/* 11. Bounce (Good for scroll indicators, attention grabbers) */
.animate-bounce {
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
.fill-mode-none {
  animation-fill-mode: none !important;
}
@media (min-width: 40rem) {
  .mobile-hidden {
    display: block;
  }
  .sm\:hidden {
    display: none;
  }
  .sm\:block {
    display: block;
  }
  .sm\:flex {
    display: flex;
  }
  .sm\:inline-flex {
    display: inline-flex;
  }
  .grid-auto-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-auto-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-auto-5-dense {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-auto-6 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-auto-14 {
    grid-template-columns: repeat(7, 1fr);
  }
}
@media (min-width: 48rem) {
  :root {
    --container-width: min(100%, var(--container-width-base));
  }
  .main-container {
    padding-block: 4rem;
  }
  .md\:col-1 {
    flex: 0 0 8.333%;
  }
  .md\:col-2 {
    flex: 0 0 16.666%;
  }
  .md\:col-3 {
    flex: 0 0 25%;
  }
  .md\:col-4 {
    flex: 0 0 33.333%;
  }
  .md\:col-6 {
    flex: 0 0 50%;
  }
  .md\:col-12 {
    flex: 0 0 100%;
  }
  .btn-primary {
    padding: 0.75rem 2rem;
  }
  .hero-section {
    padding: 6rem;
  }
  .hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
  }
  .hero-description {
    font-size: 1.25rem;
  }
  .section-title-text {
    font-size: var(--font-size-h3);
  }
  .section-box {
    padding: 3rem;
  }
  .header-nav {
    display: flex;
  }
  .mobile-menu {
    display: none;
  }
  .mobile-menu-toggle {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: row;
  }
  .poem-container {
    padding: 3rem;
    border-radius: var(--radius-xxl);
  }
  .poem-title {
    font-size: 2.6rem;
  }
  .poem-toolbar {
    margin-inline: -1rem;
    justify-content: space-between;
  }
  .poem-toolbar-layouts {
    display: flex;
  }
  .poem-verses-container > * + * {
    margin-top: 3.5rem;
  }
  .verse-row {
    flex-direction: row;
    gap: 4rem;
  }
  .verse-first,
  .verse-second {
    font-size: calc(1.7rem * var(--poem-scale, 1));
    width: 50%;
  }
  .layout-vertical .verse-row,
  .layout-vertical .verse-first {
    width: 100%;
  }
  .selection-text {
    display: block;
  }
  .article-cover {
    height: 31.25rem;
  }
  .article-cover-content {
    padding: 4rem;
  }
  .article-cover-title {
    font-size: 3rem;
  }
  .article-body {
    padding: 4rem;
  }
  .poet-profile-header {
    padding: 4rem;
  }
  .poet-profile-inner {
    flex-direction: row;
    align-items: flex-start;
    text-align: right;
  }
  .poet-avatar-lg {
    width: 10rem;
    height: 10rem;
  }
  .poet-avatar-lg svg {
    width: 5rem;
    height: 5rem;
  }
  .poet-profile-tags {
    justify-content: flex-start;
  }
  .poet-profile-name {
    font-size: 3rem;
  }
  .poet-profile-stats {
    justify-content: flex-start;
  }
  .stat-divider {
    display: block;
  }
  .md\:hidden {
    display: none;
  }
  .md\:block {
    display: block;
  }
  .md\:flex {
    display: flex;
  }
  .grid-auto-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-auto-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-auto-5-dense {
    grid-template-columns: repeat(5, 1fr);
  }
  .grid-auto-6 {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid-auto-7 {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid-auto-14 {
    grid-template-columns: repeat(10, 1fr);
  }
}
@media (min-width: 64rem) {
  .col-lg-3 {
    flex: 0 0 25%;
  }
  .col-lg-4 {
    flex: 0 0 33.333%;
  }
  .col-lg-6 {
    flex: 0 0 50%;
  }
  .maximize-btn {
    display: flex;
  }
  .lg-col-span-8 {
    grid-column: span 8;
  }
  .lg-col-span-4 {
    grid-column: span 4;
  }
  .lg\:hidden {
    display: none;
  }
  .lg\:block {
    display: block;
  }
  .lg\:flex {
    display: flex;
  }
  .grid-auto-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-auto-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid-auto-5 {
    grid-template-columns: repeat(5, 1fr);
  }
  .grid-auto-6 {
    grid-template-columns: repeat(6, 1fr);
  }
  .grid-auto-7 {
    grid-template-columns: repeat(7, 1fr);
  }
  .grid-auto-14 {
    grid-template-columns: repeat(14, 1fr);
  }
}
@media print {
  .print\:hidden {
    display: none !important;
  }
}
