/* Persian Poetry & Verse Explorer CSS (Prefix: ppl-) */

.ppl-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
  background-color: #fdfbf7;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.ppl-header {
  background-color: #1c1917;
  border-bottom: 1px solid #292524;
  padding: 0.75rem 1.5rem;
}

.ppl-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ppl-logo-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f59e0b;
  text-decoration: none;
}

.ppl-logo-link:hover {
  color: #fbbf24;
}

.ppl-nav-badge {
  background-color: #292524;
  color: #f59e0b;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ppl-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.ppl-breadcrumbs {
  margin-bottom: 1rem;
}

.ppl-bc-list {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: #78716c;
}

.ppl-bc-item {
  display: inline;
}

.ppl-bc-link {
  color: #b45309;
  text-decoration: none;
}

.ppl-bc-link:hover {
  text-decoration: underline;
}

.ppl-bc-separator {
  margin: 0 0.5rem;
  color: #a8a29e;
}

.ppl-bc-current {
  color: #44403c;
  font-weight: 500;
}

/* Hero */
.ppl-hero {
  margin-bottom: 1.5rem;
}

.ppl-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #1c1917;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.ppl-subtitle {
  font-size: 1.05rem;
  color: #57534e;
  margin: 0;
  max-width: 820px;
}

/* Poets Bar */
.ppl-poets-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  background-color: #f5f0e8;
  border: 1px solid #e7dfd5;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.ppl-poets-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #44403c;
}

.ppl-poet-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ppl-poet-btn {
  background-color: #ffffff;
  border: 1px solid #d6cebf;
  color: #292524;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ppl-poet-btn:hover {
  background-color: #b45309;
  color: #ffffff;
  border-color: #b45309;
}

.ppl-poet-active {
  background-color: #92400e;
  color: #ffffff;
  border-color: #92400e;
}

/* Search Card */
.ppl-card {
  background-color: #ffffff;
  border: 1px solid #e7dfd5;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.ppl-search-card {
  margin-bottom: 1.5rem;
}

.ppl-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.ppl-input-wrap {
  flex: 1 1 340px;
}

.ppl-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.ppl-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d6cebf;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #1c1917;
  background-color: #fff;
  box-sizing: border-box;
}

.ppl-input:focus {
  outline: none;
  border-color: #b45309;
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
}

.ppl-action-buttons {
  display: flex;
  gap: 0.5rem;
}

.ppl-btn-gold {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(180, 83, 9, 0.2);
  transition: all 0.15s ease;
}

.ppl-btn-gold:hover {
  background: linear-gradient(135deg, #b45309, #92400e);
}

.ppl-btn-secondary {
  background-color: #f5f0e8;
  border: 1px solid #d6cebf;
  color: #44403c;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.ppl-btn-secondary:hover {
  background-color: #e7dfd5;
}

/* Layout Grid */
.ppl-layout {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 980px) {
  .ppl-layout {
    grid-template-columns: 1fr;
  }
}

.ppl-catalog-column {
  display: flex;
  flex-direction: column;
}

/* Catalog Column */
.ppl-catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.ppl-stat-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #78716c;
}

.ppl-view-toggles {
  display: flex;
  gap: 0.25rem;
}

.ppl-view-btn {
  background-color: #f5f0e8;
  border: 1px solid #d6cebf;
  color: #57534e;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
}

.ppl-view-btn:hover {
  background-color: #e7dfd5;
}

.ppl-view-active {
  background-color: #92400e;
  color: #ffffff;
  border-color: #92400e;
}

.ppl-poems-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ppl-poem-card {
  background-color: #ffffff;
  border: 1px solid #e7dfd5;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.ppl-poem-card:hover {
  border-color: #b45309;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.08);
  transform: translateY(-1px);
}

.ppl-card-active {
  border-color: #b45309;
  box-shadow: 0 0 0 2px rgba(180, 83, 9, 0.35);
  background-color: #fffdfa;
}

.ppl-poem-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f5f0e8;
  padding-bottom: 0.4rem;
}

.ppl-poem-poet {
  font-weight: 700;
  color: #92400e;
  font-size: 0.9rem;
}

.ppl-poem-tag {
  font-size: 0.7rem;
  font-weight: 600;
  background-color: #fef3c7;
  color: #92400e;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.ppl-poem-farsi {
  font-family: "Vazirmatn", "Shabnam", "Sahel", "Scheherazade New", Tahoma, sans-serif;
  font-size: 1.15rem;
  color: #1c1917;
  line-height: 1.9;
  text-align: right;
  direction: rtl;
}

.ppl-bayt {
  margin: 0.1rem 0;
}

.ppl-poem-translit {
  font-size: 0.825rem;
  color: #78716c;
  font-style: italic;
  line-height: 1.5;
}

.ppl-poem-en {
  font-size: 0.9rem;
  color: #44403c;
  line-height: 1.5;
  border-left: 2px solid #f59e0b;
  padding-left: 0.65rem;
}

/* Drawer Column */
.ppl-drawer-column {
  position: sticky;
  top: 1rem;
  align-self: start;
}

.ppl-featured-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ppl-featured-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ppl-pill-gold {
  background-color: #fef3c7;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.ppl-meter-tag {
  font-size: 0.75rem;
  color: #78716c;
  font-family: Tahoma, sans-serif;
  direction: rtl;
}

.ppl-featured-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1c1917;
  margin: 0;
  line-height: 1.3;
}

.ppl-featured-poet {
  font-size: 0.95rem;
  color: #92400e;
  font-weight: 600;
}

.ppl-verse-box-farsi {
  background-color: #fffdfa;
  border: 1px solid #f5f0e8;
  border-radius: 6px;
  padding: 1rem;
  font-family: "Vazirmatn", "Shabnam", "Sahel", "Scheherazade New", Tahoma, sans-serif;
  font-size: 1.3rem;
  color: #1c1917;
  line-height: 2.1;
  text-align: right;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.02);
}

.ppl-phonetic-box {
  font-size: 0.85rem;
  color: #78716c;
  background-color: #fcfbfa;
  padding: 0.6rem 0.75rem;
  border-radius: 4px;
  border-left: 2px solid #d6cebf;
}

.ppl-verse-box-en {
  font-size: 0.95rem;
  color: #292524;
  line-height: 1.6;
  font-style: italic;
  padding: 0.5rem 0.25rem;
}

.ppl-commentary-box {
  background-color: #fefce8;
  border: 1px solid #fef08a;
  border-radius: 6px;
  padding: 0.85rem;
}

.ppl-box-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: #854d0e;
  margin: 0 0 0.35rem 0;
}

.ppl-commentary-text {
  margin: 0;
  font-size: 0.825rem;
  color: #713f12;
  line-height: 1.5;
}

.ppl-drawer-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.ppl-btn-outline {
  flex: 1;
  background-color: #ffffff;
  border: 1px solid #d6cebf;
  color: #57534e;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.ppl-btn-outline:hover {
  background-color: #f5f0e8;
  color: #1c1917;
}

/* Table */
.ppl-meter-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

.ppl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.ppl-table th, .ppl-table td {
  padding: 0.65rem 0.75rem;
  border: 1px solid #e7dfd5;
  text-align: left;
}

.ppl-table th {
  background-color: #f5f0e8;
  font-weight: 600;
  color: #292524;
}

/* Ads */
.ppl-ad-wrapper {
  margin: 2rem 0;
  min-height: 280px;
  background-color: #fbf8f2;
  border: 1px dashed #d6cebf;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Guide Section */
.ppl-guide-section {
  background-color: #ffffff;
  border: 1px solid #e7dfd5;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.ppl-guide-article {
  margin-bottom: 2rem;
}

.ppl-guide-article:last-child {
  margin-bottom: 0;
}

.ppl-guide-article h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1c1917;
  margin: 0 0 0.75rem 0;
}

.ppl-guide-article p {
  color: #44403c;
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

.ppl-guide-list {
  padding-left: 1.25rem;
  color: #44403c;
  line-height: 1.7;
}

.ppl-faq-list {
  margin: 0;
}

.ppl-faq-q {
  font-weight: 700;
  color: #1c1917;
  margin-top: 1rem;
  font-size: 1rem;
}

.ppl-faq-a {
  margin: 0.35rem 0 0.75rem 0;
  color: #57534e;
  line-height: 1.5;
}

/* Related Tools */
.ppl-related-tools {
  margin-bottom: 2rem;
}

.ppl-related-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1c1917;
  margin-bottom: 1rem;
}

.ppl-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.ppl-related-card {
  display: block;
  background-color: #ffffff;
  border: 1px solid #e7dfd5;
  border-radius: 8px;
  padding: 1.25rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.ppl-related-card:hover {
  border-color: #b45309;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.ppl-related-title {
  display: block;
  font-weight: 700;
  color: #b45309;
  margin-bottom: 0.35rem;
}

.ppl-related-desc {
  font-size: 0.85rem;
  color: #78716c;
  line-height: 1.4;
}

.ppl-footer {
  background-color: #1c1917;
  color: #a8a29e;
  padding: 2rem 1.5rem;
  font-size: 0.875rem;
  text-align: center;
}

.ppl-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ppl-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: #1c1917;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1000;
}
