/* DataverseNO benzeri tema: temel renk değişkenleri */
:root {
    --dn-primary: #0b5ed7; /* Dataverse/Bootstrap tarzı mavi */
    --dn-primary-dark: #0a58ca;
    --dn-secondary: #6c757d;
    --dn-bg: #f5f7fa; /* açık gri arkaplan */
    --dn-surface: #ffffff; /* kart/içerik yüzeyi */
    --dn-border: #e5e7eb; /* açık gri sınır */
    --dn-text: #212529;
    --dn-danger: #d62828;
    --dn-success: #198754;
    --dn-warning: #ffc107;
    --dn-info: #0dcaf0;
}

body {
    background-image: url('background.png'), linear-gradient(to bottom, var(--dn-bg), #ffffff);
    background-repeat: no-repeat, repeat;
    background-position: right bottom, 0 0;
    background-size: contain, auto;
    background-attachment: fixed;
    min-height: 100vh;
    padding-top: 0; /* Header sabit değil, ek boşluk gerekmiyor */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

#list-example {
    position: fixed;
    top: 160px; /* Başlıktan sonra biraz daha aşağı */
    width: 300px;
    z-index: 100;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* İçeriğin sağındaki boşlukta konumlandır - formun hemen sağında */
@media (min-width: 1200px) {
    .content {
        margin-left: auto;
        margin-right: auto;
    }
    
    #list-example {
        left: calc(50% + 280px); /* İçerik içinde ayrılan 340px alanın ortasına ( (1200-340)/2 + 20 ) */
    }
}

/* Orta ekranlar için */
@media (min-width: 1200px) and (max-width: 1399px) {
    #list-example {
        left: calc(50% + 280px);
    }
}

#list-example .list-group-item {
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

#list-example .list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(-5px);
}

#list-example .list-group-item.active {
    background-color: var(--dn-primary);
    border-color: var(--dn-primary);
}

/* Sidebar footer: © USN ile not arasındaki boşluğu kısalt */
#list-example > .shadow.mb-5 {
    margin-bottom: 0.4rem !important;
}
.sidebar-footer-spacer {
    height: 0.2rem;
    margin: 0;
}
.sidebar-footer-note {
    font-size: 0.75rem;
    line-height: 1.4;
    color: #aaa;
    margin: 0;
    padding-top: 0.1rem;
    text-align: center;
}
.sidebar-footer-note a {
    color: #b0b0b0;
    text-decoration: none;
}
.sidebar-footer-note a:hover {
    color: #888;
    text-decoration: underline;
}

/* Footer privacy note: küçük font, bold (sidebar footer gibi) */
.footer-privacy-note {
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 0.25rem 0;
}
.footer-privacy-note .bi {
    font-size: 0.85rem;
    vertical-align: middle;
}

.content {
    margin: 0 auto; /* Ortalama */
    padding: 20px;
    max-width: 1200px; /* Maksimum genişlik sınırı */
    padding-right: 340px; /* Sidebar için alan bırak */
    background: var(--dn-surface);
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    margin-top: 20px;
}

/* Büyük ekranlar için */
@media (min-width: 1400px) {
    .content {
        max-width: 1200px;
        padding-right: 340px;
    }
}

/* Responsive tasarım */
@media (max-width: 1200px) {
    #list-example {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin-bottom: 20px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: none;
    }
    
    .content {
        margin: 0 auto;
        padding: 20px;
        padding-right: 20px; /* Sidebar yokken normal padding */
        max-width: 1000px; /* Küçük ekranlarda daha dar */
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 0;
    }
    
    .content {
        margin: 0 auto;
        padding: 15px;
        padding-right: 15px; /* Mobilde normal padding */
        max-width: 95%; /* Mobilde neredeyse tam genişlik ama biraz margin */
        margin-top: 10px;
        border-radius: 8px;
    }
    
    #list-example {
        margin-bottom: 15px;
        border-radius: 8px;
    }
}

.fixed-table {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    background: var(--dn-surface);
    padding: 40px 0;
    min-height: 120px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* URGE banner: mor arka plan, USN logosu, beyaz metin (referans stili) */
.app-banner {
    background: #5a1a7a;
    padding: 0.75rem 1.5rem;
    min-height: auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: none;
}
.app-banner-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.app-banner-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}
.app-banner .banner-title {
    margin: 0;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #ffffff;
    line-height: 1.3;
}
.app-banner .banner-accent {
    color: #ffffff;
    font-weight: 700;
}

.centered-image {
    max-width: 100%;
    height: auto;
}

/* Banner metin stili (varsayılan, app-banner dışında) */
.banner-title {
    margin: 0;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--dn-text);
    text-transform: none;
    line-height: 1.2;
}

.banner-accent {
    color: var(--dn-primary);
}

/* Custom CSS for date inputs */
#startDate, #endDate {
    width: 150px;
}

.tooltip-inner {
    max-width: 350px;
    background-color: var(--dn-primary-dark);
    color: #ffffff;
}

.tooltip-arrow {
    border-top-color: darkblue;
}

.extra-small-text {
    font-size: 0.8em;
}

.hidden {
    display: none;
}

.citation-label {
    display: inline-block;
    padding: 2px 8px;
    margin: 0 4px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.citation-label:hover {
    background-color: #e9ecef;
}

/* Bölüm başlıkları: daha minimal */
.content h3.text-danger,
.content h4.text-danger {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.6rem;
    color: #495057;
}
.content h3.text-danger:first-of-type,
.content h4.text-danger:first-of-type {
    margin-top: 0;
}
.content h3.text-danger .fas,
.content h4.text-danger .fas {
    font-size: 0.95rem;
    margin-right: 0.35rem;
    opacity: 0.9;
}

/* Accordion: yükseklik azaltıldı, daha minimal */
.content .accordion-button {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    min-height: auto;
}
.content .accordion-button:not(.collapsed) {
    box-shadow: none;
}
.content .accordion-item {
    border-radius: 6px;
}
.content .accordion-item .accordion-button {
    border-radius: 6px;
}
.content .accordion-body {
    padding: 0.75rem 1rem;
}

/* Form iyileştirmeleri */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    padding: 12px 16px;
    font-size: 14px;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
}

.form-control:hover {
    border-color: #007bff;
}

.btn {
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 10px 20px;
    font-weight: 500;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--dn-primary);
    color: #ffffff;
}

.btn-secondary {
    background: var(--dn-secondary);
    color: #ffffff;
}

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

.btn-secondary:hover {
    background: #5c636a;
}

.accordion-item {
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.accordion-button {
    border-radius: 12px;
    background: #f8f9fa;
    border: 1px solid var(--dn-border);
    font-weight: 500;
    padding: 15px 20px;
    cursor: pointer;
    pointer-events: auto;
}

.accordion-button:not(.collapsed) {
    background: var(--dn-primary);
    color: #ffffff;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

.accordion-button::after {
    pointer-events: none;
}

.accordion-button:disabled {
    pointer-events: none;
    opacity: 0.6;
}

/* Accordion'ların düzgün çalışması için */
.accordion-button {
    user-select: none;
    -webkit-user-select: none;
}

.accordion-collapse {
    transition: height 0.35s ease;
}

.alert {
    border-radius: 12px;
    border: none;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.alert-success {
    background: #d1e7dd;
    color: #0f5132;
}

.alert-warning {
    background: #fff3cd;
    color: #664d03;
}

.alert-info {
    background: #cff4fc;
    color: #055160;
}

/* Tablo ve kart iyileştirmeleri */
.card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

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

/* Scroll spy iyileştirmeleri */
.scrollspy-example {
    position: relative;
}

/* Başlık arka planı: h3 ve h4 (Sharing dahil), yükseklik azaltıldı */
.scrollspy-example h3,
.scrollspy-example h4.text-danger {
    margin-top: 0;
    margin-bottom: 0.6rem;
    border-bottom: none;
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.scrollspy-example h3::before,
.scrollspy-example h4.text-danger::before {
    content: none;
}

/* Başlık ve akordeon arasında ekstra güvenli boşluk */
.scrollspy-example h3 + .accordion,
.scrollspy-example h3 + p + .accordion {
    margin-top: 10px;
}

/* Akordeon blokları arasında alt boşluk */
.scrollspy-example .accordion {
    margin-bottom: 20px;
}

/* Ek iyileştirmeler */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 5px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

/* Loading animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content {
    animation: fadeIn 0.6s ease-out;
}

/* Focus improvements */
.form-control:focus,
.btn:focus,
.accordion-button:focus {
    outline: none;
}

/* Better spacing */
.mb-3 {
    margin-bottom: 1.5rem !important;
}

.mt-4 {
    margin-top: 2rem !important;
}

/* Sharing: icon buttons always visible, minimal gentle design */
.sharing-item-with-buttons .sharing-item-buttons {
    opacity: 1;
}
.sharing-item-with-buttons .sharing-item-buttons .btn {
    white-space: nowrap;
}
/* Sharing list: minimal, easy-to-see icon buttons */
#insertableListShare .btn-icon-sm {
    padding: 0.35rem 0.5rem;
    min-width: 2rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #f8f9fa;
    color: #495057;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
#insertableListShare .btn-icon-sm .bi {
    font-size: 0.95rem;
    opacity: 0.9;
}
#insertableListShare .btn-icon-sm:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #212529;
}
#insertableListShare .btn-icon-sm.btn-outline-primary {
    border-color: #cfe2ff;
    background: #f0f4ff;
    color: #0d6efd;
}
#insertableListShare .btn-icon-sm.btn-outline-primary:hover {
    background: #cfe2ff;
    border-color: #9ec5fe;
    color: #0a58ca;
}
#insertableListShare .btn-icon-sm.btn-outline-secondary {
    border-color: #e9ecef;
    background: #f8f9fa;
    color: #6c757d;
}
#insertableListShare .btn-icon-sm.btn-outline-secondary:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
}
/* Sharing list: bullet (dot) for all items like Recommended citation */
#insertableListShare {
    list-style-type: disc;
    padding-left: 1.5rem;
}
#insertableListShare li {
    margin-bottom: 0.35rem;
}
/* Bullet for all items: same alignment */
#insertableListShare li.sharing-item-with-buttons::before,
#insertableListShare li.sharing-item-citation::before {
    content: "• ";
    margin-right: 0.25rem;
}
/* Last item: same font/alignment as others; link clearly visible */
#insertableListShare li.sharing-item-citation {
    list-style: none;
}
#insertableListShare .sharing-citation-link {
    color: #0d6efd;
    text-decoration: underline;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}
#insertableListShare .sharing-citation-link:hover {
    color: #0a58ca;
    text-decoration: underline;
}
/* API info / DOI info: icon + label, hover shows image below (above all panels) */
.info-trigger {
    cursor: pointer;
    white-space: nowrap;
}
.info-trigger-icon {
    font-size: 1rem;
    vertical-align: middle;
}
.info-trigger-label {
    font-size: 0.875rem;
    vertical-align: middle;
    margin-left: 0.15rem;
}
.info-trigger .info-popover {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 6px;
    display: none;
    z-index: 9999;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}
.info-trigger:hover .info-popover {
    display: block;
}
.info-trigger .info-popover img {
    max-width: 320px;
    display: block;
    vertical-align: middle;
}

/* Small icon-only buttons: compact, minimal; text on hover via title */
.btn-icon-sm {
    padding: 0.3rem 0.45rem;
    min-width: 1.85rem;
    line-height: 1;
    border-radius: 6px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-icon-sm .bi {
    font-size: 0.9rem;
    display: inline-block;
    vertical-align: middle;
}

/* ReadMe action buttons: minimal, gentle, icon + text */
.readme-action-buttons {
    gap: 0.75rem;
}
.btn-readme {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border: 1px solid #b6d4fe;
    border-radius: 8px;
    background: #e7f1ff;
    color: #0d6efd;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn-readme .bi {
    font-size: 1.05rem;
    opacity: 0.95;
}
.btn-readme:hover {
    background: #cfe2ff;
    border-color: #9ec5fe;
    color: #0a58ca;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.12);
}
.btn-readme:active {
    background: #b6d4fe;
    border-color: #6ea8fe;
} 