/* Duas Page Styles */
.duas-main {
  padding: 2rem 0 4rem;
}

/* Hero */
.duas-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.duas-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  color: var(--accent);
  opacity: 0.85;
}

.duas-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.duas-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Search */
.duas-search {
  max-width: 560px;
  margin: 0 auto 2rem;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  right: 1rem;
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  pointer-events: none;
}

[dir="ltr"] .search-icon {
  right: auto;
  left: 1rem;
}

.search-input {
  width: 100%;
  padding: 0.85rem 3rem 0.85rem 3rem;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
}

.search-input:focus {
  border-color: var(--accent);
}

.search-clear {
  position: absolute;
  left: 0.75rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background 0.2s;
}

[dir="ltr"] .search-clear {
  left: auto;
  right: 0.75rem;
}

.search-clear:hover {
  background: var(--accent);
  color: white;
}

.search-clear svg {
  width: 14px;
  height: 14px;
}

/* Tabs */
.duas-tabs {
  margin-bottom: 2rem;
}

.tabs-container {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tab-btn--active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.tab-btn--active:hover {
  color: white;
}

.tab-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* Empty State */
.duas-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.duas-empty svg {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  opacity: 0.35;
}

.duas-empty p {
  font-size: 1.1rem;
}

/* Duas List */
.duas-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

/* Category Header */
.duas-category-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: -0.25rem;
}

.duas-category-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.category-divider {
  flex: 1;
  height: 1px;
  background: var(--border);
  opacity: 0.6;
}

/* Dua Card */
.dua-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: box-shadow 0.25s, transform 0.2s;
  position: relative;
}

.dua-card:hover {
  box-shadow: 0 4px 20px rgba(14, 124, 107, 0.1);
  transform: translateY(-1px);
}

.dua-card--favorited {
  border-color: var(--accent);
  border-width: 2px;
}

.dua-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dua-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
}

.dua-card__actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.dua-action-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
  flex-shrink: 0;
}

.dua-action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.dua-action-btn svg {
  width: 16px;
  height: 16px;
}

.dua-action-btn--favorite.is-favorited {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.dua-action-btn--copy.copied {
  background: #16a34a;
  border-color: #16a34a;
  color: white;
}

/* Dua Arabic Text */
.dua-card__arabic {
  font-family: 'Amiri', 'Noto Kufi Arabic', serif;
  font-size: 1.45rem;
  line-height: 2;
  color: var(--text);
  text-align: right;
  margin-bottom: 0.85rem;
  direction: rtl;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 0.85rem;
}

/* Transliteration */
.dua-card__transliteration {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0.65rem;
  line-height: 1.7;
  direction: ltr;
  text-align: left;
}

[dir="ltr"] .dua-card__transliteration {
  text-align: left;
}

/* Translation */
.dua-card__translation {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

/* Source */
.dua-card__source {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--accent);
  background: rgba(14, 124, 107, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
}

/* Info Section */
.duas-info {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.duas-info__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  text-align: center;
}

.duas-info__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* Responsive */
@media (min-width: 768px) {
  .duas-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .duas-category-header {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .duas-title {
    font-size: 1.5rem;
  }

  .dua-card__arabic {
    font-size: 1.25rem;
  }

  .tab-btn {
    font-size: 0.82rem;
    padding: 0.5rem 0.85rem;
  }
}

/* Print styles */
@media print {
  .header, .footer, .duas-search, .duas-tabs, .dua-card__actions,
  .duas-info, .internal-links, .bg-decoration {
    display: none !important;
  }

  .duas-main {
    padding: 0;
  }

  .dua-card {
    break-inside: avoid;
    border: 1px solid #ccc;
    box-shadow: none;
  }
}
