/* ========================================
   AL-QURAN DIGITAL - MAIN STYLESHEET
   Simple, Minimalist, Elegant & Professional
   ======================================== */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2c5f2d;
    --primary-dark: #1e4620;
    --primary-light: #4a8f4c;
    --secondary: #f5f5f5;
    --text: #333;
    --text-light: #666;
    --border: #e0e0e0;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --radius: 12px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER === */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.logo i {
    font-size: 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
    background: var(--primary);
    color: var(--white);
}

.mobile-menu-toggle {
    display: none;
}

/* === DROPDOWN === */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 15px var(--shadow);
    border-radius: 8px;
    min-width: 220px;
    z-index: 1000;
    margin-top: 0;
    padding: 0.5rem 0;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1.5rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: var(--primary);
    color: var(--white);
}

/* === THEME TOGGLE === */
.theme-toggle {
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: var(--primary);
    color: var(--white);
}

/* === HERO SECTION === */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .hero-buttons {
        flex-direction: row !important;
    }
    
    .btn {
        width: auto !important;
    }
}

.btn {
    padding: 0.9rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-weight: 500;
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

/* === CARDS === */
.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper-narrow {
    max-width: 700px;
    margin: 0 auto;
}

.next-prayer-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px var(--shadow);
}

.next-prayer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.next-prayer-icon {
    font-size: 3.5rem;
    color: var(--primary);
}

.next-prayer-info {
    width: 100%;
}

.next-prayer-info h3 {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.prayer-location {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

.prayer-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.prayer-time {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    margin: 0.5rem 0;
}

.current-time {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    background: rgba(44, 95, 45, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
}

.current-time:hover {
    background: rgba(44, 95, 45, 0.15);
    transform: scale(1.05);
}

.prayer-countdown {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* === FEATURES GRID === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.feature-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.feature-link:hover {
    gap: 10px;
}

/* === QUOTE SECTION === */
.quote-section {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    margin: 3rem 0;
    text-align: center;
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    right: 2rem;
}

.quote-text {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.quote-translation {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 1rem;
    font-style: italic;
}

.quote-source {
    color: var(--text-light);
}

/* === PAGE HEADER === */
.page-header {
    text-align: center;
    padding: 2rem 0;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* === SEARCH BOX === */
.search-box {
    max-width: 600px;
    margin: 2rem auto;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

/* === SURAH LIST === */
.surah-list {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.surah-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
    box-shadow: 0 2px 8px var(--shadow);
}

.surah-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px var(--shadow-hover);
}

.surah-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.surah-info {
    flex: 1;
}

.surah-name-latin {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.surah-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.surah-name-arabic {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 600;
}

/* === SURAH DETAIL === */
.surah-header {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    margin: 2rem 0;
    box-shadow: 0 4px 15px var(--shadow);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 1rem;
    font-weight: 500;
    transition: gap 0.3s;
}

.back-button:hover {
    gap: 12px;
}

.surah-title {
    text-align: center;
}

.surah-title h1 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.surah-arabic-name {
    font-size: 2.5rem;
    color: var(--primary);
    margin: 1rem 0;
}

.surah-meaning {
    color: var(--text-light);
    font-size: 1.1rem;
    font-style: italic;
}

.surah-info-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1rem;
    color: var(--text-light);
}

.bismillah {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    margin: 2rem 0;
}

/* === AUDIO PLAYER === */
.audio-player-container {
    margin: 2rem 0;
}

.audio-player {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 15px var(--shadow);
}

.audio-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.audio-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.audio-info {
    flex: 1;
}

.audio-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.audio-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s;
}

.audio-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
}

.audio-controls {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--primary);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* === VERSE CARD === */
.verses-container {
    margin: 2rem 0;
}

.verse-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px var(--shadow);
    position: relative;
}

.verse-number-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.verse-arabic {
    font-size: 2rem;
    line-height: 2.5;
    text-align: right;
    color: var(--text);
    margin-bottom: 1.5rem;
    padding-right: 3rem;
}

.verse-latin-small {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.8rem;
    line-height: 1.6;
    text-align: right;
    opacity: 0.8;
}

.verse-translation {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--secondary);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.verse-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.verse-action-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.verse-action-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* === NAVIGATION === */
.surah-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0;
}

.nav-btn {
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 10px var(--shadow);
}

.nav-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* === DOA PAGE === */
.doa-categories {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary);
    color: var(--white);
}

.doa-list {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.doa-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px var(--shadow);
}

.doa-title {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.doa-arabic {
    font-size: 1.8rem;
    line-height: 2.2;
    text-align: right;
    color: var(--text);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--secondary);
    border-radius: 10px;
}

.doa-latin {
    color: var(--text);
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f0f8f0;
    border-radius: 8px;
}

.doa-translation {
    color: var(--text);
    padding: 1rem;
    background: var(--secondary);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

/* === PRAYER TIMES === */
.city-selector {
    max-width: 400px;
    margin: 2rem auto;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.city-select {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s;
}

.city-select:focus {
    outline: none;
    border-color: var(--primary);
}

.prayer-date {
    text-align: center;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    font-size: 1.1rem;
    box-shadow: 0 2px 10px var(--shadow);
}

.hijri-date {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.prayer-times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.prayer-time-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s;
}

.prayer-time-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.prayer-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.prayer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.prayer-time {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.next-prayer-alert {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.next-prayer-alert i {
    font-size: 2rem;
}

/* === KIBLAT === */
.kiblat-container {
    max-width: 800px;
    margin: 2rem auto;
}

.kiblat-compass {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow);
    margin-bottom: 2rem;
}

.compass-circle {
    width: 300px;
    height: 300px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    border: 4px solid var(--primary);
    position: relative;
    transition: transform 0.3s;
}

.compass-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #e74c3c;
}

.compass-kaaba {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--primary);
}

.compass-directions {
    position: absolute;
    width: 100%;
    height: 100%;
}

.compass-directions span {
    position: absolute;
    font-weight: 600;
    color: var(--text);
}

.dir-n { top: 5px; left: 50%; transform: translateX(-50%); }
.dir-e { right: 5px; top: 50%; transform: translateY(-50%); }
.dir-s { bottom: 5px; left: 50%; transform: translateX(-50%); }
.dir-w { left: 5px; top: 50%; transform: translateY(-50%); }

.compass-info {
    text-align: center;
}

.compass-degree {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.compass-direction {
    font-size: 1.2rem;
    color: var(--text-light);
}

.kiblat-info-box,
.kiblat-calculation {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px var(--shadow);
    margin-bottom: 2rem;
}

.kiblat-info-box ol {
    margin-left: 1.5rem;
    line-height: 2;
}

.location-info {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--secondary);
    border-radius: 8px;
    text-align: center;
}

.calc-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

/* === DZIKIR COUNTER === */
.dzikir-container {
    max-width: 600px;
    margin: 2rem auto;
}

.dzikir-display {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 2rem;
}

.dzikir-count {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.dzikir-target {
    font-size: 1.2rem;
    opacity: 0.9;
}

.dzikir-button-container {
    text-align: center;
    margin-bottom: 2rem;
}

.dzikir-btn {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--white);
    border: 5px solid var(--primary);
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 4px 15px var(--shadow);
}

.dzikir-btn:hover {
    transform: scale(1.05);
    background: var(--primary);
    color: var(--white);
}

.dzikir-btn:active {
    transform: scale(0.95);
}

.dzikir-btn i {
    font-size: 3rem;
}

.dzikir-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.dzikir-presets {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px var(--shadow);
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.preset-card {
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.preset-card:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

.preset-arabic {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.preset-name {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.preset-count {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* === ZAKAT CALCULATOR === */
.zakat-calculator {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px var(--shadow);
}

.calc-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.tab-btn.active {
    background: var(--primary);
    color: var(--white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}

.calc-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.calc-btn:hover {
    background: var(--primary-dark);
}

.result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--secondary);
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
}

/* === ASMAUL HUSNA === */
.asmaul-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.asmaul-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s;
}

.asmaul-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.asmaul-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 600;
}

.asmaul-arabic {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.asmaul-latin {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.asmaul-meaning {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* === TAFSIR === */
.tafsir-selector {
    max-width: 600px;
    margin: 2rem auto;
}

.selector-group {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow);
}

.selector-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tafsir-select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--white);
}

.tafsir-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px var(--shadow);
}

.ayah-number {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 20px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.ayah-arabic {
    font-size: 2rem;
    line-height: 2.5;
    text-align: right;
    margin-bottom: 1.5rem;
}

.ayah-translation {
    padding: 1rem;
    background: var(--secondary);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.tafsir-text {
    padding: 1.5rem;
    background: #f0f8f0;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.tafsir-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* === BACAAN SHALAT === */
.bacaan-shalat-container {
    max-width: 800px;
    margin: 2rem auto;
}

.bacaan-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px var(--shadow);
}

.bacaan-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.bacaan-arabic {
    font-size: 1.8rem;
    line-height: 2.2;
    text-align: right;
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: var(--secondary);
    border-radius: 10px;
}

.bacaan-latin {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fff8e1;
    border-radius: 8px;
}

.bacaan-arti {
    padding: 1rem;
    background: #f0f8f0;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

/* === CALENDAR === */
.calendar-converter {
    max-width: 600px;
    margin: 2rem auto;
}

.date-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px var(--shadow);
    text-align: center;
}

.date-display {
    margin-top: 1.5rem;
}

.masehi-date,
.hijri-date {
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.masehi-date {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.hijri-date {
    background: var(--secondary);
    color: var(--text);
}

/* === NABI & HADITS === */
.nabi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.nabi-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s;
}

.nabi-card:hover {
    transform: translateY(-5px);
}

.nabi-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.hadits-list {
    max-width: 800px;
    margin: 2rem auto;
}

.hadits-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px var(--shadow);
}

.hadits-number {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 20px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hadits-arabic {
    font-size: 1.8rem;
    line-height: 2.2;
    text-align: right;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--secondary);
    border-radius: 10px;
}

.hadits-translation {
    padding: 1rem;
    background: #f0f8f0;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.hadits-source {
    color: var(--text-light);
    font-style: italic;
}

/* === BERITA === */
.berita-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.berita-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s;
}

.berita-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.berita-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.berita-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.berita-content {
    padding: 1.5rem;
}

.berita-category {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.berita-content h3 {
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.berita-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.berita-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* === INFO BOX === */
.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-box i {
    font-size: 1.5rem;
    color: #2196F3;
}

.error-message {
    background: #ffebee;
    border-left: 4px solid #f44336;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #c62828;
}

.error-message i {
    font-size: 1.5rem;
}

/* === FOOTER === */
.footer {
    background: var(--white);
    margin-top: 4rem;
    padding: 3rem 0 1rem;
    box-shadow: 0 -2px 10px var(--shadow);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-section ul li i {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.footer-social a:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 1rem;
    font-style: italic;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
}

.footer-bottom i {
    color: #e74c3c;
}

.footer-disclaimer {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.footer-sponsor {
    font-size: 0.9rem;
    margin: 0.5rem 0;
    color: var(--text);
}

.footer-sponsor a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
}

.footer-sponsor a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ========================================
   DARK MODE
   ======================================== */
body.dark-mode {
    --primary: #4a8f4c;
    --primary-dark: #2c5f2d;
    --primary-light: #6ab06d;
    --secondary: #1a1a1a;
    --text: #e0e0e0;
    --text-light: #b0b0b0;
    --border: #333;
    --white: #2d2d2d;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.5);
}

body.dark-mode {
    background: #121212;
    color: var(--text);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Mobile (< 768px) */
@media (max-width: 768px) {
    /* Header */
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        order: 1;
        flex: 1;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 3;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--primary);
        cursor: pointer;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        right: -100%;
        left: auto;
        width: 85%;
        max-width: 320px;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: -2px 0 10px var(--shadow);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 999;
        align-items: flex-start;
        order: 2;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav a {
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        justify-content: flex-start;
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: var(--secondary);
        margin-top: 0;
        margin-left: 1rem;
        border-radius: 0;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .theme-toggle {
        width: 100%;
        margin-top: 1rem;
        justify-content: center;
    }
    
    /* Hero */
    .hero {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn {
        width: 100%;
        padding: 0.9rem 1.5rem;
    }
    
    /* Cards */
    .next-prayer-card {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .next-prayer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .next-prayer-icon {
        font-size: 2.5rem;
    }
    
    .prayer-name {
        font-size: 1.3rem;
    }
    
    .prayer-time {
        font-size: 2rem;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin: 2rem 0;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    /* Surah */
    .surah-card {
        padding: 1rem;
        gap: 1rem;
    }
    
    .surah-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .surah-name-latin {
        font-size: 1rem;
    }
    
    .surah-name-arabic {
        font-size: 1.4rem;
    }
    
    .surah-meta {
        flex-direction: column;
        gap: 0.3rem;
        align-items: flex-start;
        font-size: 0.85rem;
    }
    
    /* Surah Detail */
    .surah-header {
        padding: 1.5rem;
    }
    
    .surah-title h1 {
        font-size: 1.4rem;
    }
    
    .surah-arabic-name {
        font-size: 1.8rem;
    }
    
    .surah-meaning {
        font-size: 0.95rem;
    }
    
    .surah-info-meta {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.9rem;
    }
    
    .bismillah {
        font-size: 1.6rem;
        padding: 1.5rem 1rem;
    }
    
    /* Verse */
    .verse-card {
        padding: 1.5rem 1rem;
    }
    
    .verse-number-badge {
        position: static;
        margin-bottom: 1rem;
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .verse-arabic {
        font-size: 1.4rem;
        line-height: 2;
        padding-right: 0;
    }
    
    .verse-latin-small {
        font-size: 0.75rem;
        margin-top: 0.5rem;
    }
    
    .verse-translation {
        font-size: 0.95rem;
        padding: 0.8rem;
    }
    
    .verse-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .verse-action-btn {
        width: 100%;
        justify-content: center;
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    /* Audio Player */
    .audio-player {
        flex-direction: column;
        padding: 1.2rem;
        gap: 1rem;
    }
    
    .audio-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .audio-title {
        font-size: 0.95rem;
    }
    
    .audio-subtitle {
        font-size: 0.8rem;
    }
    
    .audio-controls {
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }
    
    /* Prayer Times */
    .prayer-times-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .prayer-time-card {
        padding: 1.2rem 0.8rem;
    }
    
    .prayer-icon {
        font-size: 1.8rem;
    }
    
    .prayer-name {
        font-size: 0.95rem;
    }
    
    .prayer-time {
        font-size: 1.3rem;
    }
    
    /* Doa */
    .doa-card {
        padding: 1.5rem;
    }
    
    .doa-title {
        font-size: 1.1rem;
    }
    
    .doa-arabic {
        font-size: 1.4rem;
        line-height: 2;
        padding: 1.2rem;
    }
    
    .doa-latin,
    .doa-translation {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
    
    .doa-categories {
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Kiblat */
    .compass-circle {
        width: 220px;
        height: 220px;
    }
    
    .compass-arrow {
        font-size: 2.5rem;
    }
    
    .compass-kaaba {
        font-size: 1.5rem;
    }
    
    .kiblat-compass {
        padding: 2rem 1rem;
    }
    
    .kiblat-info-box,
    .kiblat-calculation {
        padding: 1.5rem;
    }
    
    .kiblat-info-box ol {
        font-size: 0.9rem;
        line-height: 1.8;
    }
    
    /* Dzikir */
    .dzikir-display {
        padding: 2rem 1.5rem;
    }
    
    .dzikir-btn {
        width: 160px;
        height: 160px;
        font-size: 1rem;
    }
    
    .dzikir-btn i {
        font-size: 2.5rem;
    }
    
    .dzikir-count {
        font-size: 3rem;
    }
    
    .dzikir-controls {
        gap: 0.5rem;
    }
    
    .control-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .preset-grid {
        grid-template-columns: 1fr;
    }
    
    .preset-card {
        padding: 1.2rem;
    }
    
    .preset-arabic {
        font-size: 1.5rem;
    }
    
    /* Zakat */
    .zakat-calculator {
        padding: 1.5rem;
    }
    
    .calc-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.8rem;
    }
    
    /* Asmaul Husna */
    .asmaul-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .asmaul-card {
        padding: 1.5rem;
    }
    
    .asmaul-arabic {
        font-size: 1.8rem;
    }
    
    /* Hadits & Tafsir */
    .hadits-card,
    .tafsir-card,
    .bacaan-card {
        padding: 1.5rem;
    }
    
    .hadits-arabic,
    .ayah-arabic,
    .bacaan-arabic {
        font-size: 1.5rem;
        line-height: 2;
    }
    
    /* Nabi */
    .nabi-grid {
        grid-template-columns: 1fr;
    }
    
    .nabi-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Berita */
    .berita-grid {
        grid-template-columns: 1fr;
    }
    
    .berita-image {
        height: 180px;
    }
    
    /* Calendar */
    .date-card {
        padding: 1.5rem;
    }
    
    .masehi-date,
    .hijri-date {
        font-size: 1.1rem;
        padding: 1.2rem;
    }
    
    /* Quote */
    .quote-section {
        padding: 2rem 1.5rem;
    }
    
    .quote-text {
        font-size: 1.2rem;
    }
    
    .quote-translation {
        font-size: 0.95rem;
    }
    
    .quote-icon {
        font-size: 2rem;
        top: 0.5rem;
        right: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-section ul {
        padding: 0;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Page Header */
    .page-header {
        padding: 1.5rem 0;
    }
    
    .page-header h1 {
        font-size: 1.6rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
    }
    
    /* Search */
    .search-box {
        margin: 1.5rem auto;
    }
    
    .search-box input {
        padding: 0.9rem 1rem 0.9rem 2.8rem;
        font-size: 0.95rem;
    }
    
    /* Navigation */
    .surah-navigation {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
    }
    
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Selector */
    .tafsir-selector,
    .city-selector {
        margin: 1.5rem auto;
    }
    
    .selector-group {
        padding: 1.2rem;
    }
    
    .tafsir-select,
    .city-select {
        padding: 0.7rem;
        font-size: 0.95rem;
    }
}

/* Small Mobile (< 375px) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.3rem;
    }
    
    .verse-arabic {
        font-size: 1.3rem;
    }
    
    .dzikir-btn {
        width: 140px;
        height: 140px;
    }
    
    .dzikir-count {
        font-size: 2.5rem;
    }
    
    .compass-circle {
        width: 200px;
        height: 200px;
    }
    
    .prayer-times-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .prayer-times-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .berita-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav a {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }
}

/* Large Desktop (> 1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .verse-arabic {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

/* Prayer Location & Detect Button */
.prayer-location {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

.detect-location-btn {
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.detect-location-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.detect-location-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
