/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0f1419;
    --surface: #1a2332;
    --card: #1e2a3a;
    --card-border: #2a3f55;
    --text: #e8e6e3;
    --text-muted: #8899a6;
    --accent: #4ecdc4;
    --accent-dim: #2a7a74;
    --arabic: #f5f0e8;
    --gold: #d4a574;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
header {
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--card-border);
}

header h1 {
    font-size: 3.5rem;
    font-family: 'Traditional Arabic', 'Scheherazade New', serif;
    color: var(--gold);
    margin-bottom: 0.25rem;
    letter-spacing: 2px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--accent);
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--accent-dim);
    border-radius: 2rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

nav a:hover {
    background: var(--accent-dim);
    color: var(--text);
}

/* Main Content */
main {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

section {
    margin-bottom: 3rem;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    font-family: 'Traditional Arabic', 'Scheherazade New', serif;
    color: var(--gold);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
}

.section-en {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Dhikr Cards */
.dhikr-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    position: relative;
    transition: border-color 0.2s ease;
}

.dhikr-card:hover {
    border-color: var(--accent-dim);
}

.arabic {
    font-family: 'Traditional Arabic', 'Scheherazade New', 'Noto Naskh Arabic', serif;
    font-size: 1.6rem;
    line-height: 2.2;
    color: var(--arabic);
    text-align: right;
    direction: rtl;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
}

.transliteration {
    font-style: italic;
    color: var(--accent);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.translation {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.count {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    border-top: 1px solid var(--card-border);
}

/* Mobile First — already optimized for small screens */
@media (min-width: 768px) {
    header h1 {
        font-size: 4.5rem;
    }

    .arabic {
        font-size: 1.9rem;
    }

    .dhikr-card {
        padding: 2rem;
    }
}
