/* Dizin Arama Sayfası Stilleri */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #45a049;
    --border-color: #e0e0e0;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --title-bg: #e8f5e9;
    --block-bg: #f5f5f5;
}

body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 20px auto;
    padding: 15px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.search-container {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-container h1 {
    color: #2c3e50;
    margin-bottom: 25px;
}

.search-form {
    display: flex;
    align-items: center; 
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 800px;
    flex-wrap: wrap;
}

.search-input {
    padding: 10px;
    width: 100%;
    max-width: 300px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.search-select {
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background-color: white;
    min-width: 120px;
}

.search-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.search-button:hover,
.search-button:active {
    background-color: #45a049;
}

/* Sonuç blokları */
.result-block {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.result-item {
    margin-bottom: 10px;
    padding: 8px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.result-label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.result-value {
    color: #666;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    margin-bottom: 5px;
}

.result-value a {
    color: #1a0dab;
    text-decoration: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: inline-block;
    margin-bottom: 5px;
}

.result-value a:hover {
    text-decoration: underline;
}

/* Mobil optimizasyonu */
@media (max-width: 768px) {
    body {
        margin: 10px auto;
        padding: 10px;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input,
    .search-select,
    .search-button {
        width: 100%;
        max-width: none;
        margin: 5px 0;
        font-size: 16px; /* iOS için minimum font boyutu */
    }

    .search-button {
        padding: 12px 20px; /* Dokunmatik için daha büyük hedef alanı */
        margin-top: 10px;
    }

    .result-block {
        padding: 12px;
        margin-bottom: 12px;
    }

    .result-item {
        padding: 6px 0;
        display: block;
        border-bottom: none;
    }

    .result-item:last-child {
        padding-bottom: 0;
    }

    .result-label {
        font-size: 13px;
        display: block;
        margin-bottom: 5px;
    }

    .result-value {
        font-size: 13px;
        display: block;
        margin-bottom: 8px;
    }

    .result-value a {
        display: block;
        margin-bottom: 8px;
    }
}

/* Tablet optimizasyonu */
@media (min-width: 769px) and (max-width: 1024px) {
    body {
        margin: 15px auto;
        padding: 15px;
    }

    .search-input {
        max-width: 250px;
    }

    .search-select {
        min-width: 100px;
    }

    .result-block {
        padding: 15px;
    }
}

/* Yükleniyor animasyonu */
.loading {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dialog stilleri */
#search-dialog {
    max-width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

/* Mobil ve tablet için dialog stilleri */
@media (max-width: 1024px) {
    #search-dialog {
        width: 90%;
        max-width: none;
        max-height: 90vh;
        margin: 0;
        padding: 15px;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .ui-dialog {
        width: 90% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .ui-dialog .ui-dialog-content {
        padding: 15px;
    }

    .ui-dialog .ui-dialog-titlebar {
        padding: 10px;
    }

    .ui-dialog .ui-dialog-buttonpane {
        padding: 10px;
    }
}

/* Popup stilleri */
.search-link {
    color: #1a0dab;
    text-decoration: none;
    cursor: pointer;
    word-wrap: break-word;
}

.search-link:hover {
    text-decoration: underline;
}

/* Sayfalama stilleri */
.pagination-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.page-link {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.page-link.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* Otomatik doldurma stilleri */
.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
    font-size: 14px;
    z-index: 1000;
}

.ui-menu-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.ui-menu-item:hover {
    background-color: #f5f5f5;
}

.ui-state-active {
    background-color: #4CAF50 !important;
    color: white !important;
    border: none !important;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.highlight {
    background-color: yellow;
    padding: 2px;
    border-radius: 2px;
}

/* Sonuç kartları */
.result-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.result-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.result-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.result-title small {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.result-content {
    padding: 10px 0;
}

.result-item {
    margin-bottom: 10px;
}

.result-label {
    display: inline-block;
    min-width: 120px;
    color: #666;
    font-weight: bold;
}

.result-value {
    display: inline-block;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.result-divider {
    height: 1px;
    background: #eee;
    margin: 10px 0;
}

.book-link {
    color: #1a0dab;
    text-decoration: none;
    transition: color 0.3s ease;
}

.book-link:hover {
    color: #4CAF50;
    text-decoration: underline;
}

/* Mobil optimizasyonu */
@media (max-width: 768px) {
    .result-card {
        padding: 12px;
        margin-bottom: 12px;
    }

    .result-title {
        font-size: 16px;
    }

    .result-label {
        min-width: 100px;
        display: block;
        margin-bottom: 5px;
    }

    .result-value {
        display: block;
    }
}

/* Yükleniyor animasyonu */
.loading {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sonuç bulunamadı mesajı */
.no-results {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
    color: #666;
}

/* Arama formu */
.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-button {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: #45a049;
}

/* Sonuç başlığını gizle */
.search-header {
    display: none;
}

/* Sonuçlar container'ını düzenle */
.results-container {
    margin-top: 0;
    padding: 0;
}

/* Footer stilleri */
.site-footer {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-color);
}

.footer-content {
    font-size: 14px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content p {
    margin: 0;
}

.footer-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Mobil için footer */
@media (max-width: 768px) {
    .site-footer {
        margin-top: 30px;
        padding: 15px 0;
        font-size: 13px;
    }
} 