body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f5f5;
    color: #333;
}

.site-header, .site-footer {
    background: #0f766e;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

.container {
    max-width: 960px;
    margin: 1rem auto;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
}

.city-select, .welcome {
    text-align: center;
}

label {
    display: block;
    margin-bottom: 0.5rem;
}

select, button {
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    margin: 0.25rem;
}

button {
    border: none;
    border-radius: 4px;
    background: #0f766e;
    color: #fff;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}

.error-msg {
    color: #b91c1c;
    margin-bottom: 0.5rem;
}

.main-nav ul {
    list-style: none;
    padding: 0;
}

.main-nav li {
    margin: 0.5rem 0;
}

.main-nav a {
    text-decoration: none;
    color: #0f766e;
    font-weight: 600;
}

/* Responsive */
@media (min-width: 600px) {
    .main-nav ul {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }

    .main-nav li {
        margin: 0;
    }
}



.today-prayers {
    margin-top: 1rem;
}

.prayer-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.prayer-card {
    background: #f0fdfa;
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prayer-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.prayer-time {
    font-size: 1.1rem;
}

.table-wrapper {
    margin-top: 1rem;
    overflow-x: auto;
}

.prayer-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.prayer-table th,
.prayer-table td {
    border: 1px solid #ddd;
    padding: 0.4rem 0.5rem;
    text-align: center;
}

.prayer-table th {
    background: #0f766e;
    color: #fff;
    position: sticky;
    top: 0;
}


/* Namaz Öğren sayfası */

.tab-switcher {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid #0f766e;
    background: #fff;
    color: #0f766e;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.tab-btn.active {
    background: #0f766e;
    color: #fff;
}

.namaz-intro {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-card {
    border-radius: 12px;
    padding: 1rem;
    background: #f9fafb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #0f766e;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.step-title {
    font-size: 1.1rem;
    margin: 0;
}

.step-desc {
    margin: 0.5rem 0 0.75rem;
    font-size: 0.95rem;
}

.step-media {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.step-image-wrapper img {
    max-width: 100%;
    border-radius: 8px;
    display: block;
}

/* YouTube iframe'i responsive yapmak için */
.responsive-iframe {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 oran */
    height: 0;
}

.responsive-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Daha geniş ekranlarda resim ve videoyu yan yana göster */
@media (min-width: 768px) {
    .step-media {
        grid-template-columns: repeat(<?php echo 2; ?>, minmax(0, 1fr));
    }
}

/* Namaz Öğren - Kontroller ve Slider */

.step-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
}

.btn-primary,
.btn-secondary {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #0f766e;
    background: #0f766e;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-secondary {
    background: #ffffff;
    color: #0f766e;
}

.btn-primary:hover,
.btn-secondary:hover {
    opacity: 0.9;
}

.speed-label {
    font-size: 0.9rem;
}

.speed-label select {
    margin-left: 0.25rem;
    padding: 0.25rem 0.4rem;
}

/* Adım ilerleme göstergesi */
.step-progress {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #4b5563;
}

/* Adım kartı ve dua blokları */

.step-card {
    border-radius: 12px;
    padding: 1rem;
    background: #f9fafb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin-bottom: 0.5rem;
}

.step-duas {
    margin-top: 1rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
}

.dua-block {
    margin-bottom: 0.75rem;
    background: #ffffff;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e5e7eb;
}

.dua-title {
    margin: 0 0 0.3rem;
    font-size: 0.95rem;
    color: #0f172a;
}

.dua-arabic {
    font-family: "Scheherazade", "Amiri", "Traditional Arabic", serif;
    font-size: 1rem;
    direction: rtl;
    text-align: right;
    margin: 0.25rem 0;
}

.dua-translit,
.dua-meaning {
    margin: 0.2rem 0;
    font-size: 0.9rem;
}

.dua-audio {
    margin-top: 0.25rem;
    width: 100%;
}

/* Step media yan yana / alt alta */

.step-media {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.step-image-wrapper img {
    max-width: 100%;
    border-radius: 8px;
    display: block;
}

@media (min-width: 768px) {
    .step-media {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Ek sekme etiketleri */
.tab-switcher.small .tab-label {
    font-size: 0.85rem;
    margin-right: 0.25rem;
}

/* Büyük yazı modu */
body.large-text {
    font-size: 18px;
}

body.large-text .container {
    font-size: 1rem;
}

/* Çocuk modu - Arapça ve meali gizleyip sadeleştirilmiş görünüm */
body.child-mode .dua-arabic,
body.child-mode .dua-meaning {
    display: none;
}

body.child-mode .dua-block {
    border-color: #bfdbfe;
    background: #eff6ff;
}

/* Kart, buton, dua blokları için önceki stillerini koru; 
   daha önce verdiğim step-controls, step-card, step-duas, dua-block, step-media vb. stiller aynen geçerli. */



/* Sekmeler */
.tab-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0 0.75rem;
}

.tab-switcher.small {
    justify-content: center;
}

.tab-btn {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #0f766e;
    background: #fff;
    color: #0f766e;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.tab-btn.active {
    background: #0f766e;
    color: #fff;
}

/* Genel intro */
.namaz-intro {
    margin: 0.75rem 0 1rem;
    font-size: 0.95rem;
}

/* Adım kartları */
.steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-card {
    border-radius: 12px;
    padding: 1rem;
    background: #f9fafb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #0f766e;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.step-title {
    margin: 0;
    font-size: 1.05rem;
}

.step-desc {
    margin: 0.4rem 0 0.6rem;
    font-size: 0.95rem;
}

.step-media {
    margin-bottom: 0.6rem;
}

.step-image-wrapper img {
    max-width: 100%;
    border-radius: 8px;
    display: block;
}

/* Sure / dua metin alanı */
.step-dua-text {
    margin-top: 0.4rem;
    font-size: 0.95rem;
}

.dua-arabic {
    font-family: "Scheherazade", "Amiri", "Traditional Arabic", serif;
    font-size: 1.1rem;
    direction: rtl;
    text-align: right;
    margin: 0.4rem 0;
}

.dua-translit,
.dua-meaning {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.step-audio {
    margin-top: 0.4rem;
    width: 100%;
}

/* Kontroller */
.step-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    margin: 0.75rem 0;
}

.step-controls.top {
    margin-bottom: 0.5rem;
}

.step-controls.bottom {
    margin-top: 0.75rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #0f766e;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-primary {
    background: #0f766e;
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: #0f766e;
}

.btn-primary:hover,
.btn-secondary:hover {
    opacity: 0.9;
}

.speed-label {
    font-size: 0.9rem;
}

.speed-label select {
    margin-left: 0.25rem;
    padding: 0.2rem 0.4rem;
    font-size: 0.9rem;
}

.font-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
}

/* Adım göstergesi */
.step-progress {
    text-align: center;
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
}


