/* Genel Sayfa Stilleri */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

/* YENİ: Başlık stili güncellendi */
h1 {
    text-align: center;
    font-size: 3rem; /* 48px */
    font-weight: 700;
    font-style: italic;
    color: #3a7bd5; /* Yedek renk */
    background: -webkit-linear-gradient(45deg, #3a7bd5, #3a6073); /* Gradyan rengi */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
    padding-bottom: 10px;
}


/* Arama formunun ana konteyneri */
.search-form-container {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.select-wrapper {
    position: relative;
    border-right: 1px solid #ccc;
}

#search-field {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #f8f9fa;
    border: none;
    padding: 12px 30px 12px 15px;
    font-size: 16px;
    color: #495057;
    cursor: pointer;
    height: 100%;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #888;
}

#search-input {
    flex-grow: 1;
    padding: 12px 15px;
    font-size: 16px;
    border: none;
    outline: none;
    background: transparent;
}

#search-form button {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    transition: background-color 0.3s;
}

#search-form button:hover {
    background-color: #0056b3;
}

/* Sonuçlar ve Yükleniyor Göstergesi */
#results-container {
    margin-top: 30px;
}

.result-item {
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #fff;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.result-item:hover {
    border-color: #ced4da;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.result-item p {
    margin: 8px 0;
    line-height: 1.6;
    color: #495057;
}

.result-item p strong {
    color: #212529;
}

.hidden {
    display: none;
}

/* Sonuç kartı için eklenen stiller */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
}

.result-header h3 {
    margin: 0;
    color: #0056b3;
    font-size: 18px;
    flex-grow: 1;
}

.open-access-badge {
    background-color: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.keywords-container {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #f1f1f1;
}

.keyword-tag {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 13px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.result-footer {
    margin-top: 15px;
    text-align: right;
}

.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s;
}

.pdf-link:hover {
    background-color: #c82333;
    text-decoration: none;
}

/* Genişletilebilir Özet ve DOI Stilleri */
.abstract-container {
    font-size: 14px;
    line-height: 1.7;
    color: #495057;
}

.abstract-toggle {
    background: none;
    border: none;
    color: #007bff;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 0 0 0;
    display: block;
    margin-top: 5px;
    font-size: 14px;
}

.abstract-toggle:hover {
    text-decoration: underline;
}

.doi-link {
    color: #6c757d;
    text-decoration: none;
    font-weight: normal;
    font-style: italic;
}

.doi-link:hover {
    color: #212529;
    text-decoration: underline;
}

/* Sayfalama Stilleri */
#results-summary {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #555;
    font-size: 14px;
    text-align: center;
}

#pagination-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.page-item {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #007bff;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.page-item:hover:not(:disabled) {
    background-color: #e9ecef;
}

.page-item.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    cursor: default;
}

.page-item:disabled {
    color: #aaa;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

.page-item-dots {
    padding: 8px 6px;
    color: #555;
}
