/* info-cards.css - Huruf-u Mukatta Bilgi Kartları için CSS */

/* Ana bilgi kartı konteyneri */
.hm-info-card {
  margin: 2rem auto;
  padding: 2rem;
  background: linear-gradient(to bottom right, #ffffff, #f8fafc);
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(226, 232, 240, 0.8);
  max-width: 1200px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hm-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.08), 0 10px 15px -6px rgba(0, 0, 0, 0.03);
}

.dark .hm-info-card {
  background: linear-gradient(to bottom right, #1e293b, #0f172a);
  border: 1px solid rgba(51, 65, 85, 0.8);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Kartın alt kısmında şeffaf bir desen ekleyelim */
.hm-info-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50,5 L95,50 L50,95 L5,50 Z' fill='none' stroke='rgba(99, 102, 241, 0.08)' stroke-width='3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: contain;
  z-index: 0;
  opacity: 0.7;
}

/* Kart içeriğinin düzeni */
.hm-card-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .hm-card-content {
    flex-direction: row;
  }
}

/* Sol bölüm - Harf ve sayı bilgileri */
.hm-letter-section {
  flex: 1;
  position: relative;
}

/* Başlık */
.hm-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
  position: relative;
}

.hm-section-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: #6366f1;
}

.dark .hm-section-title {
  color: #e2e8f0;
  border-bottom-color: #334155;
}

.dark .hm-section-title::after {
  background-color: #818cf8;
}

/* Harf kartları dizilimi */
.hm-letter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

/* Tekil harf kartı */
.hm-letter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.hm-letter-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, currentColor, transparent);
  opacity: 0.3;
  border-radius: 4px 4px 0 0;
}

.hm-letter-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.dark .hm-letter-card:hover {
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
}

/* Harfler için renk varyasyonları */
.hm-letter-card.hm-red {
  background-color: rgba(239, 68, 68, 0.08);
}

.hm-letter-card.hm-green {
  background-color: rgba(34, 197, 94, 0.08);
}

.dark .hm-letter-card.hm-red {
  background-color: rgba(239, 68, 68, 0.15);
}

.dark .hm-letter-card.hm-green {
  background-color: rgba(34, 197, 94, 0.15);
}

/* Eksik renk sınıfları için eklemeler */

/* Harfler için renk varyasyonları - Mavi sınıfı */
.hm-letter-card.hm-blue {
  background-color: rgba(41, 128, 185, 0.08);
}

.dark .hm-letter-card.hm-blue {
  background-color: rgba(41, 128, 185, 0.15);
}

/* Harfler için renk varyasyonları - Sarı sınıfı */
.hm-letter-card.hm-yellow {
  background-color: rgba(244, 208, 63, 0.08);
}

.dark .hm-letter-card.hm-yellow {
  background-color: rgba(244, 208, 63, 0.15);
}

/* Harfler için renk varyasyonları - Mor sınıfı */
.hm-letter-card.hm-purple {
  background-color: rgba(155, 93, 229, 0.08);
}

.dark .hm-letter-card.hm-purple {
  background-color: rgba(155, 93, 229, 0.15);
}

/* Harfler için renkler - Mavi sınıfı */
.hm-letter.hm-blue {
  color: #3498db;
}

.dark .hm-letter.hm-blue {
  color: #60a5fa;
}

/* Harfler için renkler - Sarı sınıfı */
.hm-letter.hm-yellow {
  color: #f1c40f;
}

.dark .hm-letter.hm-yellow {
  color: #fcd34d;
}

/* Harfler için renkler - Mor sınıfı */
.hm-letter.hm-purple {
  color: #9b59b6;
}

.dark .hm-letter.hm-purple {
  color: #c4b5fd;
}

/* Metin içindeki arapça harfler için renk tanımlamaları */
.hm-letter-inline.hm-blue {
  color: #3498db;
}

.hm-letter-inline.hm-yellow {
  color: #f1c40f;
}

.hm-letter-inline.hm-purple {
  color: #9b59b6;
}

.dark .hm-letter-inline.hm-blue {
  color: #60a5fa;
}

.dark .hm-letter-inline.hm-yellow {
  color: #fcd34d;
}

.dark .hm-letter-inline.hm-purple {
  color: #c4b5fd;
}

/* Arapça harf gösterimi */
.hm-letter {
  font-family: 'Scheherazade New', serif;
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  transform-origin: center;
}

.hm-letter:hover {
  transform: scale(1.1);
  text-shadow: 3px 3px 0px rgba(0,0,0,0.15);
}

/* Harfler için renkler */
.hm-letter.hm-red {
  color: #ef4444;
}

.hm-letter.hm-green {
  color: #22c55e;
}

.dark .hm-letter.hm-red {
  color: #f87171;
}

.dark .hm-letter.hm-green {
  color: #4ade80;
}

/* Sayı gösterimi */
.hm-count {
  font-size: 2rem;
  font-weight: 700;
  color: #334155;
  transition: transform 0.3s ease, color 0.3s ease;
}

.hm-count:hover {
  transform: scale(1.2);
  color: #6366f1;
}

.dark .hm-count {
  color: #e2e8f0;
}

.dark .hm-count:hover {
  color: #818cf8;
}

/* Etiket */
.hm-label {
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.dark .hm-label {
  color: #94a3b8;
}

/* Toplam kutusu */
.hm-total-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hm-total-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 L5,0 L5,5 L0,5 Z' fill='%236366f1' fill-opacity='0.05'/%3E%3C/svg%3E");
  z-index: 0;
}

.hm-total-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.06);
}

.dark .hm-total-card {
  background-color: #0f172a;
  border-color: #334155;
}

.dark .hm-total-card:hover {
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.hm-total-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #6366f1;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, color 0.3s ease;
}

.hm-total-value:hover {
  transform: scale(1.1);
}

.dark .hm-total-value {
  color: #818cf8;
}

.hm-formula {
  font-size: 1rem;
  color: #6366f1;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
  font-weight: 500;
  background-color: rgba(99, 102, 241, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.dark .hm-formula {
  color: #a5b4fc;
  background-color: rgba(99, 102, 241, 0.2);
}

/* Sağ bölüm - Sure bilgileri */
.hm-info-section {
  flex: 1;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  position: relative;
}

.dark .hm-info-section {
  border-top-color: #334155;
}

@media (min-width: 768px) {
  .hm-info-section {
    padding-top: 0;
    padding-left: 2rem;
    border-top: none;
    border-left: 1px solid #e2e8f0;
  }
  
  .dark .hm-info-section {
    border-left-color: #334155;
  }
}

/* Sure başlığı */
.hm-sure-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.hm-sure-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: #6366f1;
  border-radius: 3px;
}

.dark .hm-sure-title {
  color: #e2e8f0;
}

.dark .hm-sure-title::after {
  background-color: #818cf8;
}

/* Metin içindeki arapça harfler */
.hm-letter-inline {
  font-family: 'Scheherazade New', serif;
  font-weight: bold;
  font-size: 1.5em;
  display: inline-block;
  vertical-align: middle;
  margin: 0 0.1em;
  transition: transform 0.2s ease;
}

.hm-letter-inline:hover {
  transform: scale(1.2);
}

.hm-letter-inline.hm-red {
  color: #ef4444;
}

.hm-letter-inline.hm-green {
  color: #22c55e;
}

.dark .hm-letter-inline.hm-red {
  color: #f87171;
}

.dark .hm-letter-inline.hm-green {
  color: #4ade80;
}

/* Keşif kutusu */
.hm-discovery-box {
  display: flex;
  background-color: #f0f9ff;
  border-left: 4px solid #0ea5e9;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 2rem;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.hm-discovery-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.dark .hm-discovery-box {
  background-color: rgba(3, 105, 161, 0.15);
  border-left-color: #0ea5e9;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.dark .hm-discovery-box:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.25);
}

.hm-discovery-icon {
  color: #0ea5e9;
  margin-right: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.hm-discovery-box:hover .hm-discovery-icon {
  transform: scale(1.1);
}

.hm-discovery-content {
  flex: 1;
  color: #1e293b;
}

.dark .hm-discovery-content {
  color: #e2e8f0;
}

.hm-discovery-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.hm-highlight {
  font-weight: 700;
  color: #0ea5e9;
  background-color: rgba(14, 165, 233, 0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

.dark .hm-highlight {
  background-color: rgba(14, 165, 233, 0.2);
}

/* 19 vurgusu */
.hm-19-highlight {
  display: flex;
  align-items: center;
  margin: 2rem auto;
  justify-content: center;
  background-color: rgba(99, 102, 241, 0.05);
  padding: 1.5rem;
  border-radius: 1rem;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hm-19-highlight:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.dark .hm-19-highlight {
  background-color: rgba(99, 102, 241, 0.1);
}

.hm-19-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: #6366f1;
  line-height: 1;
  margin-right: 0.75rem;
  position: relative;
  transition: transform 0.3s ease;
}

.hm-19-highlight:hover .hm-19-number {
  transform: scale(1.1);
}

.hm-19-number::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background-color: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  z-index: -1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}

.hm-19-formula {
  font-size: 1.5rem;
  font-weight: 600;
  color: #64748b;
}

.dark .hm-19-formula {
  color: #94a3b8;
}

.hm-note {
  font-style: italic;
  text-align: center;
  color: #64748b;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.dark .hm-note {
  color: #94a3b8;
}

/* Açıklama notu */
.hm-pattern-note {
  background-color: #f8fafc;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  line-height: 1.6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hm-pattern-note:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

.dark .hm-pattern-note {
  background-color: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

.dark .hm-pattern-note:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Mobil uyumluluk geliştirmeleri */
@media (max-width: 767px) {
  .hm-letter-grid {
    justify-content: center;
  }
  
  .hm-19-highlight {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
  }
  
  .hm-19-number {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

/* Animasyonlu geçişler */
.fade-in {
  animation: fadeIn 0.8s ease-in;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* tablo kart görünüm değiştirme butonu için ek stil */

/* Aşağıdaki CSS kodunu info-cards.css dosyasına ekleyin */

/* Modern görünüm değiştirme butonu - yazılı versiyon */
.view-toggle-container {
  display: flex;
  justify-content: flex-end;
  margin: 1.5rem 0;
}

.view-toggle-button {
  display: flex;
  align-items: center;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.2rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform: scale(0.9);
}

.dark .view-toggle-button {
  background-color: #1e293b;
  border-color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.view-toggle-button:hover {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px) scale(0.9);
}

.dark .view-toggle-button:hover {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.toggle-option {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.6rem;
  position: relative;
  z-index: 2;
  color: #64748b;
  transition: all 0.3s ease;
  border-radius: 0.375rem;
}

.toggle-option.active {
  background-color: #8b5cf6;
  color: white;
}

.dark .toggle-option {
  color: #94a3b8;
}

.dark .toggle-option.active {
  background-color: #7c3aed;
  color: white;
}

.toggle-option i {
  margin-right: 0.4rem;
  font-size: 0.9rem;
}

.toggle-option-text {
  font-size: 0.8rem;
  font-weight: 500;
}

/* Mobil görünüm için özel stil */
@media (max-width: 768px) {
  .view-toggle-container {
    margin: 0.75rem 0;
    justify-content: center; /* Mobilde ortala */
  }
  
  .view-toggle-button {
    transform: scale(0.8);
    max-width: 180px; /* Maksimum genişlik */
  }
  
  .toggle-option {
    padding: 0.35rem 0.45rem;
  }
  
  .toggle-option-text {
    font-size: 0.75rem;
  }
  
  .toggle-option i {
    font-size: 0.85rem;
    margin-right: 0.3rem;
  }
}

/* Çok küçük ekranlar için ek düzenleme */
@media (max-width: 360px) {
  .view-toggle-button {
    transform: scale(0.75);
  }
  
  .toggle-option {
    padding: 0.3rem 0.4rem;
  }
  
  .toggle-option-text {
    font-size: 0.7rem;
  }
}

/* Geçiş animasyonları */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

.fade-out {
  animation: fadeOut 0.3s ease-out;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}
