@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0A0A0A;
  --card: #141414;
  --gold: #FFD700;
  --gold-dim: #B8860B;
  --text: #FFFFFF;
  --text-dim: #A0A0A0;
  --text-muted: #6B6B6B;
  --border: #2A2A2A;
  --red: #ff6b6b;
  --green: #51cf66;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  padding-bottom: 80px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
}

/* Typography - Site Wide */
h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gold);
  line-height: 1.3;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

p {
  margin-bottom: 10px;
}

.page-header {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--gold);
  line-height: 1.4;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

/* Arabic + Translations - Used in Quran + Hadith */
.arabic {
  font-family: 'Amiri', serif;
  font-size: 20px;
  line-height: 2;
  text-align: right;
  margin: 12px 0;
  color: var(--text);
}

.translation, .text-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

.transliteration {
  font-size: 14px;
  font-style: italic;
  color: var(--text-dim);
  margin: 8px 0;
}

.reference, .badge {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 10px;
  display: inline-block;
}

.badge {
  background: var(--border);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}

.badge-gold {
  background: var(--gold-dim);
  color: #000;
}

/* Buttons */
.btn-gold {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  text-align: center;
  display: block;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  display: block;
  text-decoration: none;
}

.btn-small {
  padding: 8px 12px;
  font-size: 13px;
}

.btn-group {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.btn-group button, .btn-group a {
  flex: 1;
}

/* Forms + Inputs */
input[type="text"], 
input[type="search"], 
input[type="number"],
select,
textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  display: block;
  margin-bottom: 6px;
}

/* Lists */
.list-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item-title {
  font-size: 15px;
  font-weight: 500;
}

.list-item-subtitle {
  font-size: 13px;
  color: var(--text-dim);
}

.list-item-number {
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
  min-width: 30px;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 12px;
  z-index: 100;
}

.bottom-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 11px;
  text-align: center;
  padding: 6px 12px;
  line-height: 1.3;
  flex: 1;
}

.bottom-nav a.active {
  color: var(--gold);
}

.bottom-nav a span {
  display: block;
  font-size: 18px;
  margin-bottom: 2px;
}

/* Tables - Prayer Times */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--gold);
  font-weight: 600;
  font-size: 13px;
}

td:last-child {
  text-align: right;
  font-weight: 500;
}

/* Utility */
.text-center { text-align: center; }
.text-dim { color: var(--text-dim); }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }

/* Loading States */
.loading {
  color: var(--text-dim);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

/* Video Cards */
.video-card {
  margin-bottom: 16px;
}

.video-title {
  font-size: 15px;
  font-weight: 600;
  margin: 10px 0 6px;
}

.video-meta {
  font-size: 12px;
  color: var(--text-dim);
}

/* Small Phones */
@media (max-width: 380px) {
  body { font-size: 14px; }
  h1 { font-size: 22px; }
  h2 { font-size: 18px; }
  .arabic { font-size: 18px; }
  .translation { font-size: 14px; }
  .container { padding: 12px; }
  .card { padding: 14px; }
  .btn-gold, .btn-outline { padding: 10px 16px; font-size: 14px; }
}
/* Container for the Explore buttons */
.explore-container {
    display: flex;
    flex-direction: column;
    gap: 12px; /* This creates the space between buttons */
    padding: 10px;
}

/* Individual Tab Styling */
.explore-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFD700; /* Your gold color */
    color: #000;
    padding: 15px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 12px; /* Rounded corners for a separated look */
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2); /* Optional: adds depth */
}

/* Hover/Active effect */
.explore-tab:active {
    transform: scale(0.98);
    background-color: #e6c200;
}

.explore-tab span {
    margin-right: 10px; /* Space between emoji/icon and text */
}
