/* =====================================================
   STEP 2: Create file css/allah-names.css
   Add this line to your HTML: <link rel="stylesheet" href="css/allah-names.css">
   ===================================================== */

/* ========================================
   99 NAMES OF ALLAH - CARD STYLES
   ======================================== */

/* Import Arabic Font */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&display=swap');

/* CALLIGRAPHY STYLE (Default & Recommended) */
.allah-name-card {
  position: relative;
}

.grow-card[data-allah-name="true"] .grow-card-placeholder {
  background: linear-gradient(135deg, #E8F4F4 0%, #D4E8E8 30%, #E8DDE8 70%, #F0E8E8 100%);
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}

/* Decorative background element */
.grow-card[data-allah-name="true"] .grow-card-placeholder::before {
  content: '☪';
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 100px;
  opacity: 0.08;
  color: #7FB3B5;
  pointer-events: none;
}

/* Number Badge */
.allah-name-number {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #7FB3B5;
  box-shadow: 0 2px 6px rgba(127, 179, 181, 0.2);
  font-size: 19px !important;
  z-index: 10;
}

/* Series Badge */
.allah-series-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(196, 183, 214, 0.5);
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
}

/* Arabic Text - Large and Centered */
.allah-name-arabic {
  font-size: 36px !important;
  font-weight: 700;
  color: #8B3A4C;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  font-family: 'Amiri', 'Traditional Arabic', serif;
  direction: rtl;
  line-height: 1.2;
  margin: 8px 0;
  text-align: center;
  z-index: 2;
  position: relative;
}

/* Transliteration */
.allah-name-transliteration {
  font-family: var(--font-heading);
  font-size: 18px !important;
  font-weight: 700;
  color: #6B2C3D;
  margin-bottom: 4px;
  z-index: 2;
  position: relative;
}

/* English Meaning */
.allah-name-meaning {
  font-size: 14px !important;
  color: #8B5A6A;
  font-style: italic;
  font-weight: 600;
  z-index: 2;
  position: relative;
}

/* ========================================
   DETAIL PAGE STYLES
   ======================================== */

/* Detail page header for Names of Allah */
.allah-name-detail-header {
  background: linear-gradient(135deg, #E8F4F4 0%, #D4E8E8 30%, #E8DDE8 70%, #F0E8E8 100%);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.allah-name-detail-header::before {
  content: '☪';
  position: absolute;
  top: -30px;
  right: -30px;
  font-size: 150px;
  opacity: 0.08;
  color: #7FB3B5;
  pointer-events: none;
}

.allah-name-detail-number {
  background: rgba(255, 255, 255, 0.9);
  color: #7FB3B5;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.allah-name-detail-arabic {
  font-size: 52px;
  font-weight: 700;
  color: #8B3A4C;
  font-family: 'Amiri', 'Traditional Arabic', serif;
  direction: rtl;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.allah-name-detail-transliteration {
  font-size: 28px;
  font-weight: 700;
  color: #6B2C3D;
  margin-top: 8px;
}

.allah-name-detail-meaning {
  font-size: 18px;
  color: #8B5A6A;
  font-style: italic;
  font-weight: 600;
}

/* Hero section for detail page */
.allah-name-detail-hero {
  background: linear-gradient(135deg, #E8F4F4 0%, #D4E8E8 30%, #E8DDE8 70%, #F0E8E8 100%);
  padding: 60px 40px;
  border-radius: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 8px 32px rgba(127, 179, 181, 0.3);
}

.allah-name-detail-hero::before {
  content: '☪';
  position: absolute;
  top: -50px;
  right: -50px;
  font-size: 250px;
  opacity: 0.05;
}

.allah-name-detail-hero::after {
  content: '✨';
  position: absolute;
  bottom: -30px;
  left: -30px;
  font-size: 150px;
  opacity: 0.06;
}

.allah-name-detail-number {
  display: inline-block;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  font-weight: 800;
  color: #7FB3B5;
  box-shadow: 0 4px 15px rgba(127, 179, 181, 0.2);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  z-index: 2;
  position: relative;
}

.allah-name-detail-arabic {
  font-size: 5rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  font-family: 'Amiri', 'Traditional Arabic', serif;
  direction: rtl;
  line-height: 1.2;
  margin: 20px 0 15px;
  z-index: 2;
  position: relative;
}

.allah-name-detail-transliteration {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: #6B2C3D;
  margin-bottom: 12px;
  z-index: 2;
  position: relative;
}

.allah-name-detail-meaning {
  font-size: 1.4rem;
  color: #8B5A6A;
  font-style: italic;
  font-weight: 600;
  z-index: 2;
  position: relative;
}

.allah-name-detail-series {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(127, 179, 181, 0.5);
  padding: 8px 20px;
  border-radius: 25px;
  letter-spacing: 1px;
  margin-top: 20px;
  z-index: 2;
  position: relative;
}

/* Navigation between names */
.allah-name-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.allah-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--color-card);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  flex: 1;
  min-width: 200px;
}

.allah-nav-btn:hover {
  background: #7FB3B5;
  border-color: #7FB3B5;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(127, 179, 181, 0.3);
}

.allah-nav-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.allah-nav-btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.allah-nav-btn.next .allah-nav-btn-content {
  align-items: flex-end;
}

.allah-nav-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.allah-nav-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .grow-card[data-allah-name="true"] .grow-card-placeholder {
    padding: 30px 20px;
    min-height: 280px;
  }
  
  .allah-name-arabic {
    font-size: 3rem;
    margin: 20px 0 8px;
  }
  
  .allah-name-transliteration {
    font-size: 1.5rem;
  }
  
  .allah-name-meaning {
    font-size: 1rem;
  }
  
  .allah-name-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    top: 15px;
    left: 15px;
  }
  
  .allah-series-badge {
    font-size: 0.65rem;
    padding: 5px 12px;
    top: 15px;
    right: 15px;
  }
  
  /* Detail page mobile */
  .allah-name-detail-hero {
    padding: 40px 20px;
  }
  
  .allah-name-detail-arabic {
    font-size: 3.5rem;
  }
  
  .allah-name-detail-transliteration {
    font-size: 2rem;
  }
  
  .allah-name-detail-meaning {
    font-size: 1.2rem;
  }
  
  .allah-name-navigation {
    flex-direction: column;
  }
  
  .allah-nav-btn {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .allah-name-arabic {
    font-size: 2.5rem;
  }
  
  .allah-name-transliteration {
    font-size: 1.3rem;
  }
  
  .allah-name-meaning {
    font-size: 0.95rem;
  }
  
  .allah-name-detail-arabic {
    font-size: 2.8rem;
  }
  
  .allah-name-detail-transliteration {
    font-size: 1.6rem;
  }
}