/* Bangla Hadith Plugin Styles */

/* Fonts */
.bangla-hadith-container {
  font-family: "SolaimanLipi", "Kalpurush", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

.hadith-arabic {
  font-family: "Scheherazade New", "Amiri", "Times New Roman", serif;
  direction: rtl;
  text-align: right;
  font-size: 1.2em;
  line-height: 1.8;
}

/* Container */
.bangla-hadith-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.bangla-hadith-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #01af57;
}

.bangla-hadith-header h1 {
  color: #01af57;
  font-size: 2.5em;
  margin-bottom: 10px;
  font-weight: bold;
}

.bangla-hadith-header h2.collection-subtitle {
  color: #666;
  font-size: 1.2em;
  margin-bottom: 15px;
  font-weight: normal;
}

.bangla-hadith-breadcrumbs {
  font-size: 0.9em;
  color: #666;
}

.bangla-hadith-breadcrumbs a {
  color: #01af57;
  text-decoration: none;
}

.bangla-hadith-breadcrumbs a:hover {
  text-decoration: underline;
}

/* Search */
.bangla-hadith-search {
  margin-bottom: 30px;
  text-align: center;
}

.bangla-hadith-search-form {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.bangla-hadith-search-form input[type="text"] {
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 25px;
  font-size: 16px;
  width: 300px;
  outline: none;
  transition: border-color 0.3s;
}

.bangla-hadith-search-form input[type="text"]:focus {
  border-color: #01af57;
}

.bangla-hadith-search-form button {
  padding: 12px 20px;
  background: #01af57;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.bangla-hadith-search-form button:hover {
  background: #019647;
}

/* Collections Grid */
.bangla-hadith-collections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.bangla-hadith-collection-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.bangla-hadith-collection-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.collection-icon {
  font-size: 3em;
  margin-bottom: 15px;
}

.bangla-hadith-collection-card h2 {
  color: #01af57;
  font-size: 1.5em;
  margin-bottom: 5px;
}

.bangla-hadith-collection-card h3 {
  color: #666;
  font-size: 1em;
  margin-bottom: 15px;
  font-weight: normal;
}

.collection-description {
  color: #777;
  font-size: 0.9em;
  margin-bottom: 15px;
  line-height: 1.5;
}

.collection-stats {
  margin-bottom: 20px;
}

.hadith-count {
  background: #f0f0f0;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.9em;
  color: #666;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  text-align: center;
}

.btn-primary {
  background: #01af57;
  color: white;
}

.btn-primary:hover {
  background: #019647;
  color: white;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
  color: white;
}

.btn-share {
  background: #007bff;
  color: white;
}

.btn-copy {
  background: #28a745;
  color: white;
}

.btn-bookmark {
  background: #ffc107;
  color: #212529;
}

.btn-print {
  background: #6f42c1;
  color: white;
}

.btn-small {
  padding: 5px 10px;
  font-size: 12px;
}

/* Hadith List */
.bangla-hadith-list {
  margin-bottom: 30px;
}

.bangla-hadith-item {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hadith-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.hadith-header h3 {
  color: #01af57;
  margin: 0;
  font-size: 1.2em;
}

.book-info {
  background: #f8f9fa;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.8em;
  color: #666;
}

/* Hadith Text */
.hadith-arabic {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 15px;
  border-right: 4px solid #01af57;
}

.hadith-bangla {
  padding: 15px;
  background: #fff8e1;
  border-radius: 5px;
  margin-bottom: 15px;
  border-left: 4px solid #01af57;
}

.hadith-english {
  padding: 15px;
  background: #f0f8ff;
  border-radius: 5px;
  margin-bottom: 15px;
  border-left: 4px solid #007bff;
}

/* Hadith Meta */
.hadith-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.narrator {
  background: #e9ecef;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.9em;
  color: #495057;
}

.authenticity {
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.9em;
  font-weight: bold;
}

.authenticity.sahih {
  background: #d4edda;
  color: #155724;
}

.authenticity.hasan {
  background: #fff3cd;
  color: #856404;
}

.authenticity.daif {
  background: #f8d7da;
  color: #721c24;
}

/* Hadith Actions */
.hadith-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Single Hadith */
.bangla-hadith-single {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hadith-reference {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.collection-name {
  background: #01af57;
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.9em;
}

.book-number,
.chapter-number {
  background: #6c757d;
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.9em;
}

.hadith-permalink {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.hadith-permalink label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.hadith-permalink input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #f8f9fa;
}

/* Navigation */
.hadith-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 10px;
}

.btn-nav {
  flex: 1;
  max-width: 200px;
}

.btn-back {
  background: #6c757d;
  color: white;
}

/* Pagination */
.bangla-hadith-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 30px 0;
}

.btn-pagination {
  background: #01af57;
  color: white;
}

.pagination-info {
  font-weight: bold;
  color: #666;
}

/* Shortcodes */
.bangla-hadith-shortcode {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 20px;
  margin: 20px 0;
  background: white;
}

.bangla-hadith-collections-shortcode .collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.collection-card {
  text-align: center;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #f8f9fa;
}

.collection-card h4 {
  color: #01af57;
  margin-bottom: 10px;
}

.collection-count {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 10px;
}

/* Widget */
.bangla-hadith-widget {
  background: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
}

.widget-hadith .hadith-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.9em;
}

.widget-hadith .collection-name {
  color: #01af57;
  font-weight: bold;
}

.widget-hadith .hadith-number {
  color: #666;
}

.widget-hadith .hadith-text {
  margin-bottom: 10px;
  font-size: 0.9em;
  line-height: 1.5;
}

.widget-hadith .hadith-narrator {
  margin-bottom: 10px;
  font-style: italic;
  color: #666;
}

.widget-actions {
  text-align: center;
}

/* Notices */
.bangla-hadith-notice,
.bangla-hadith-error {
  padding: 15px;
  border-radius: 5px;
  margin: 20px 0;
  text-align: center;
}

.bangla-hadith-notice {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.bangla-hadith-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Footer */
.bangla-hadith-footer {
  text-align: center;
  padding: 20px;
  margin-top: 30px;
  border-top: 1px solid #ddd;
  color: #666;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .bangla-hadith-container {
    padding: 10px;
  }

  .bangla-hadith-header h1 {
    font-size: 2em;
  }

  .bangla-hadith-search-form {
    flex-direction: column;
    gap: 10px;
  }

  .bangla-hadith-search-form input[type="text"] {
    width: 100%;
    max-width: 300px;
  }

  .bangla-hadith-collections {
    grid-template-columns: 1fr;
  }

  .hadith-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hadith-meta {
    flex-direction: column;
    gap: 10px;
  }

  .hadith-actions {
    flex-direction: column;
  }

  .hadith-navigation {
    flex-direction: column;
    gap: 15px;
  }

  .btn-nav {
    max-width: none;
    width: 100%;
  }

  .bangla-hadith-pagination {
    flex-direction: column;
    gap: 10px;
  }

  .hadith-reference {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .bangla-hadith-header h1 {
    font-size: 1.5em;
  }

  .bangla-hadith-single {
    padding: 15px;
  }

  .hadith-arabic {
    font-size: 1.1em;
  }

  .collections-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Print Styles */
@media print {
  .bangla-hadith-search,
  .hadith-actions,
  .hadith-navigation,
  .bangla-hadith-pagination {
    display: none !important;
  }

  .bangla-hadith-container {
    max-width: none;
    padding: 0;
  }

  .bangla-hadith-single {
    box-shadow: none;
    border: 1px solid #000;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .bangla-hadith-container {
    color: #e0e0e0;
  }

  .bangla-hadith-collection-card,
  .bangla-hadith-item,
  .bangla-hadith-single,
  .bangla-hadith-shortcode {
    background: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
  }

  .hadith-arabic {
    background: #3a3a3a;
  }

  .hadith-bangla {
    background: #2a2a1a;
  }

  .hadith-english {
    background: #1a1a2a;
  }
}
