:root {
    --primary-color: #2196F3;
    --primary-dark: #1976D2;
    --primary-light: #BBDEFB;
    --accent-color: #FF4081;
    --text-color: #212121;
    --text-secondary: #757575;
    --divider-color: #BDBDBD;
    --background-color: #f5f6f8;
    --card-background: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-color: #ddd;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.main-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-container {
    position: relative;
    width: 300px;
}

#search-input {
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    transition: background-color 0.3s;
}

#search-input::placeholder {
    color: var(--text-secondary);
}

#search-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-container i {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.surah-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.surah-card {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px var(--shadow-color);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: flex-start;
}

.surah-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.surah-number {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
}

.surah-info {
    flex: 1;
}

.surah-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.surah-arabic-name {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.surah-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.loading-indicator {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
}

.error-message i {
    margin-right: 0.5rem;
}

/* Meal seçim alanı stilleri */
.meal-selection {
    margin: 1rem 0;
    padding: 1.5rem;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.meal-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.meal-selector-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.meal-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.meal-group {
    flex: 1;
    min-width: 250px;
}

.meal-group h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.meal-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.meal-checkboxes label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.meal-checkboxes input {
    margin: 0;
}

/* Özellikler bölümü stilleri */
.features-section {
    margin: 1.5rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.features-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.feature-toggle {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 200px;
}

.toggle-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.toggle-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
    background-color: #ccc;
    border-radius: 22px;
    transition: .4s;
    margin-right: 10px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: .3s;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

.toggle-label {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Kategorili meal seçici */
.meal-categories {
    margin-bottom: 1.5rem;
}

.category-section {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background-color: var(--primary-light);
    cursor: pointer;
}

.category-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.toggle-button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
}

.meal-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
    transition: max-height 0.3s ease;
}

.meal-checkboxes.collapsed {
    max-height: 0;
    padding: 0 1rem;
    overflow: hidden;
}

.meal-checkboxes label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

.meal-checkboxes input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.meal-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.meal-actions button {
    flex: 1;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.meal-actions button:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: var(--text-primary);
}

.btn-success {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-success:hover {
    background-color: #388E3C;
}

/* Ayetler ve mealler için stilller */
.verse-container {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: all 0.3s;
}

.verse-container:hover {
    box-shadow: 0 4px 8px var(--shadow-color);
}

/* Switch toggle stileri */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 8px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.switch-label {
    margin-left: 60px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Sure detay sayfası stilleri */
.surah-header {
    margin-bottom: 1.5rem;
}

.surah-header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.surah-meta {
    display: flex;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.arabic-name {
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.verse-container {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.verse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.verse-number {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.verse-actions {
    display: flex;
    gap: 0.5rem;
}

.verse-actions button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.verse-actions button:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
}

.verse-arabic {
    font-family: 'Traditional Arabic', 'Scheherazade New', serif;
    font-size: 1.8rem;
    line-height: 2.5;
    text-align: right;
    direction: rtl;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--divider-color);
}

.verse-translation {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--divider-color);
}

.verse-translation:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.meal-header {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.meal-text {
    font-size: 1rem;
    line-height: 1.6;
}

/* Kontrol paneli stilleri */
.control-panel {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.control-panel button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 2px 5px var(--shadow-color);
    cursor: pointer;
}

.control-panel button:hover {
    background-color: var(--primary-dark);
}

.font-size-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Tema stilleri */
body.dark-theme {
    --background-color: #121212;
    --card-background: #1e1e1e;
    --text-color: #e0e0e0;
    --text-secondary: #9e9e9e;
    --divider-color: #424242;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

body.dark-theme .verse-number {
    background-color: #333;
    color: #ddd;
}

/* Font boyutu stilleri */
body.font-small {
    font-size: 0.9rem;
}

body.font-medium {
    font-size: 1rem;
}

body.font-large {
    font-size: 1.2rem;
}

body.font-small .verse-arabic {
    font-size: 1.6rem;
}

body.font-medium .verse-arabic {
    font-size: 1.8rem;
}

body.font-large .verse-arabic {
    font-size: 2.2rem;
}

/* Yükleme ve hata mesajları */
.loading, .error, .notice {
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    background-color: var(--card-background);
}

.loading {
    color: var(--text-secondary);
}

.error {
    color: #f44336;
    background-color: rgba(244, 67, 54, 0.1);
}

.notice {
    color: #2196F3;
    background-color: rgba(33, 150, 243, 0.1);
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .main-header {
        padding: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-tabs {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .meal-selection {
        padding: 1rem;
    }
    
    .meal-selector-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .verse-arabic {
        font-size: 1.5rem;
        line-height: 2.2;
    }
    
    .control-panel {
        right: 1rem;
        bottom: 1rem;
    }
}

/* Meal seçim alanı stilleri */
.translation-select {
    margin: 1rem 0;
    padding: 1rem;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.translation-select select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--divider-color);
    border-radius: 4px;
    background-color: white;
    font-size: 1rem;
    color: var(--text-color);
}