* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  direction: rtl;
}
.container {
  max-width: 1000px;
  margin: 0 auto;
}
.header {
  text-align: center;
  color: white;
  margin-bottom: 30px;
}
.header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.search-box {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
}
.search-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
input[type="number"] {
  flex: 1;
  min-width: 200px;
  padding: 15px;
  border: 2px solid #667eea;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  transition: all 0.3s;
}
input[type="number"]:focus {
  border-color: #764ba2;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}
button {
  padding: 15px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
button:active {
  transform: translateY(0);
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.content-area {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  min-height: 400px;
}
.surah-info {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #667eea;
}
.surah-info h2 {
  color: #667eea;
  font-size: 2em;
  margin-bottom: 10px;
}
.surah-info p {
  color: #666;
  font-size: 1.1em;
}
.ayah-list {
  list-style: none;
}
.ayah-item {
  background: #f8f9fa;
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 10px;
  border-right: 4px solid #667eea;
  transition: all 0.3s;
  cursor: pointer;
}
.ayah-item:hover {
  background: #e9ecef;
  transform: translateX(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.ayah-number {
  display: inline-block;
  background: #667eea;
  color: white;
  padding: 5px 12px;
  border-radius: 50%;
  margin-left: 10px;
  font-weight: bold;
  font-size: 0.9em;
}
.ayah-text {
  direction: rtl;
  font-family: "Scheherazade New", "Amiri", serif;
  font-size: 22px;
  line-height: 2;
}
.audio-controls {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.audio-controls button {
  padding: 8px 15px;
  font-size: 14px;
}
.loading {
  text-align: center;
  padding: 50px;
  color: #667eea;
  font-size: 1.2em;
}
.error {
  background: #fee;
  color: #c33;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  margin: 20px 0;
}
.surah-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  direction: ltr;
}
.surah-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}
.surah-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.surah-card h3 {
  margin-bottom: 10px;
  font-size: 1.3em;
}
audio {
  width: 100%;
  margin-top: 10px;
}
@media (max-width: 768px) {
  .header h1 {
    font-size: 1.8em;
  }
  .search-controls {
    flex-direction: column;
  }
  input[type="number"] {
    min-width: 100%;
  }
  .ayah-text {
    font-size: 1.2em;
  }
}
