/* Timeline wrapper düzeltmesi */
.timeline-wrapper {
    position: relative !important;
    z-index: 1 !important;
    overflow: visible !important;
}

/* Ana container düzeltmesi ve sayfa padding */
.container-fluid {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding-top: 140px; /* Header ve timeline için yer */
    padding-bottom: 3rem;
}

/* Sayfa başlığı - tarihi tasarım */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(145deg, var(--parchment), var(--cream));
    color: var(--dark-sepia);
    border-radius: var(--radius-large);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    border: 2px solid var(--antique-gold);
}

/* Parşömen dokusu */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23704214' fill-opacity='0.08'%3E%3C/path%3E%3C/svg%3E");
    opacity: 0.4;
    z-index: 0;
}

/* Altın süsleme çizgileri */
.page-header::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid var(--antique-gold);
    border-radius: var(--radius-medium);
    opacity: 0.3;
    z-index: 0;
}

.page-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 1px;
    color: var(--dark-sepia);
}

.page-description {
    font-family: var(--secondary-heading-font);
    font-size: 1.2rem;
    font-style: italic;
    margin: 0;
    position: relative;
    z-index: 1;
    color: var(--burnt-umber);
}

/* Arama bölümü - tarihi tasarım */
.search-filter-section {
    background: var(--parchment);
    padding: 2.5rem;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-medium);
    margin-bottom: 3rem;
    border: 1px solid var(--antique-gold);
    position: relative;
    overflow: hidden;
}

.search-filter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23704214' fill-opacity='0.04'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
    z-index: 0;
}

.search-filter-section > * {
    position: relative;
    z-index: 1;
}

/* Form elementleri tasarımı */
.search-filter-section .form-control {
    border: 2px solid var(--aged-paper);
    border-radius: var(--radius-medium);
    padding: 0.8rem 1.2rem;
    font-family: var(--ui-font);
    font-size: 1rem;
    background-color: var(--cream);
    color: var(--ancient-text);
    transition: all var(--transition-medium);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.search-filter-section .form-control:focus {
    border-color: var(--antique-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2), inset 0 2px 4px rgba(0,0,0,0.05);
    outline: none;
    background-color: var(--parchment);
}

.search-filter-section .form-control::placeholder {
    color: var(--rusty-copper);
    font-style: italic;
}

/* Arama butonu - tarihi tasarım */
.search-filter-section .btn-primary {
    background: var(--gold-gradient);
    border: 2px solid var(--deep-gold);
    border-radius: var(--radius-medium);
    padding: 0.8rem 2rem;
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-sepia);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.3);
}

.search-filter-section .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left var(--transition-slow);
}

.search-filter-section .btn-primary:hover::before {
    left: 100%;
}

.search-filter-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--gold-shadow);
    background: linear-gradient(135deg, #e5c04e, #bb9d3d);
    border-color: var(--bright-gold);
}

.search-filter-section .btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.4);
}

/* Select dropdown tasarımı */
.search-filter-section select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b87333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
    cursor: pointer;
}

.search-filter-section select.form-control:hover {
    border-color: var(--rusty-copper);
    background-color: var(--parchment);
}

/* Sonuç bilgi bölümü */
.search-results-info {
    background: var(--cream);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-medium);
    margin-bottom: 2rem;
    border-left: 4px solid var(--rusty-copper);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--aged-paper);
    position: relative;
}

.search-results-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2H0v-2h20v-2H0V8h20V6H0V4h20V2H0V0h22v20h2V0h2v20h2V0h2v20h2V0h2v20h2V0h2v2H20v-1.5z' fill='%23704214' fill-opacity='0.03'%3E%3C/path%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.search-results-info > * {
    position: relative;
    z-index: 1;
}

.search-results-info p {
    margin: 0;
    font-family: var(--ui-font);
    color: var(--dark-sepia);
    font-size: 1.1rem;
}

.search-results-info .btn-outline-secondary {
    background: transparent;
    border: 2px solid var(--rusty-copper);
    color: var(--rusty-copper);
    border-radius: var(--radius-medium);
    padding: 0.5rem 1.2rem;
    font-family: var(--ui-font);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
}

.search-results-info .btn-outline-secondary:hover {
    background: var(--rusty-copper);
    color: var(--parchment);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Dark theme uyumluluğu */
body.dark-theme .page-header {
    background: linear-gradient(145deg, rgba(30, 26, 21, 0.9), rgba(50, 40, 30, 0.9));
    color: var(--dark-text-primary);
    border-color: var(--dark-accent);
}

body.dark-theme .page-description {
    color: var(--dark-text-secondary);
}

body.dark-theme .search-filter-section {
    background: rgba(30, 26, 21, 0.8);
    border-color: var(--dark-accent);
}

body.dark-theme .search-filter-section .form-control {
    background-color: rgba(50, 40, 30, 0.8);
    color: var(--dark-text-primary);
    border-color: rgba(184, 134, 11, 0.3);
}

body.dark-theme .search-filter-section .form-control:focus {
    background-color: rgba(50, 40, 30, 0.9);
    border-color: var(--dark-accent);
}

body.dark-theme .search-results-info {
    background: rgba(30, 26, 21, 0.7);
    border-color: rgba(184, 134, 11, 0.3);
}

body.dark-theme .search-results-info p {
    color: var(--dark-text-primary);
}

/* Galeri kartları - tarihi tasarım */
.gallery-container {
    min-height: 400px;
}

.gallery-card {
    background: var(--parchment);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-medium);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--aged-paper);
    position: relative;
    margin-bottom: 2rem;
}

/* Üst altın çizgi */
.gallery-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
    z-index: 2;
    transition: height var(--transition-medium);
}

.gallery-card:hover::before {
    height: 6px;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
    border-color: var(--antique-gold);
}

/* Galeri resmi */
.gallery-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rusty-copper), var(--burnt-umber));
    cursor: pointer;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform var(--transition-medium);
    filter: sepia(15%) brightness(0.95) contrast(1.05);
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.08);
    filter: sepia(10%) brightness(1) contrast(1.1);
}

.no-image-placeholder {
    height: 100%;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-sepia);
    font-size: 4rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    position: relative;
}

.no-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
}

/* Kategori etiketi */
.gallery-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(92, 64, 51, 0.9);
    color: var(--parchment);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: var(--ui-font);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--antique-gold);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-medium);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    z-index: 3;
}

/* Galeri overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(92, 64, 51, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: 4;
}

.gallery-image:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
}

.btn-view {
    background: var(--parchment);
    border: 2px solid var(--antique-gold);
    color: var(--dark-sepia);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-medium);
}

.btn-view:hover {
    background: var(--gold-gradient);
    color: var(--dark-sepia);
    transform: scale(1.1);
    box-shadow: var(--shadow-strong);
}

/* İçerik bölümü */
.gallery-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--parchment);
    position: relative;
}

/* Kağıt dokusu */
.gallery-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7z' fill='%23704214' fill-opacity='0.02'%3E%3C/path%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.gallery-content > * {
    position: relative;
    z-index: 1;
}

/* Galeri başlığı */
.gallery-title {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    color: var(--dark-sepia);
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
    letter-spacing: 0.5px;
}

/* Galeri bilgileri */
.gallery-info {
    margin-bottom: 1.2rem;
    padding: 1rem;
    background: var(--cream);
    border-radius: var(--radius-medium);
    border: 1px solid var(--aged-paper);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.6rem;
    font-family: var(--ui-font);
    font-size: 0.9rem;
    color: var(--ancient-text);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    width: 20px;
    margin-right: 0.8rem;
    color: var(--rusty-copper);
    font-size: 0.85rem;
}

/* Açıklama */
.gallery-description {
    color: var(--ancient-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
    font-family: var(--body-font);
    font-size: 0.95rem;
    text-align: justify;
}

/* Buton bölümü */
.gallery-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--light-sepia);
    text-align: center;
}

.gallery-footer .btn {
    background: var(--gold-gradient);
    border: none;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-family: var(--ui-font);
    font-weight: 600;
    color: var(--dark-sepia);
    transition: all var(--transition-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.3);
    text-shadow: 1px 1px 2px rgba(255,255,255,0.2);
}

.gallery-footer .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left var(--transition-slow);
}

.gallery-footer .btn:hover::before {
    left: 100%;
}

.gallery-footer .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--gold-shadow);
    background: linear-gradient(135deg, #e5c04e, #bb9d3d);
}

/* Modal içerik düzenlemesi */
.modal-image-large img {
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
    max-height: 500px;
    width: 100%;
    object-fit: contain;
    filter: sepia(10%) brightness(0.95);
}

.gallery-details {
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.8;
}

.detail-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-sepia);
}

.detail-item {
    margin-bottom: 0.8rem;
    font-family: var(--ui-font);
    color: var(--dark-sepia);
}

.gallery-bio {
    color: var(--ancient-text);
    line-height: 1.8;
    font-family: var(--body-font);
    text-align: justify;
}

/* Dark theme uyumluluğu */
body.dark-theme .gallery-card {
    background: rgba(30, 26, 21, 0.9);
    border-color: rgba(184, 134, 11, 0.2);
}

body.dark-theme .gallery-content {
    background: rgba(30, 26, 21, 0.9);
}

body.dark-theme .gallery-title {
    color: var(--dark-text-primary);
}

body.dark-theme .gallery-description {
    color: var(--dark-text-secondary);
}

body.dark-theme .gallery-info {
    background: rgba(50, 40, 30, 0.8);
    border-color: rgba(184, 134, 11, 0.2);
}

body.dark-theme .info-item {
    color: var(--dark-text-secondary);
}

body.dark-theme .gallery-footer {
    border-top-color: rgba(184, 134, 11, 0.2);
}

body.dark-theme .gallery-bio {
    color: var(--dark-text-secondary);
}

body.dark-theme .detail-item {
    color: var(--dark-text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .container-fluid {
        padding-top: 120px;
    }
    
    .page-header {
        margin-top: 0;
        padding: 2rem 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .search-filter-section {
        padding: 1.5rem;
    }
    
    .gallery-image {
        height: 220px;
    }
    
    .gallery-content {
        padding: 1.5rem;
    }
    
    .gallery-title {
        font-size: 1.3rem;
    }
    
    .modal-dialog.modal-xl {
        max-width: 95%;
    }
}

/* Animasyonlar */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-card {
    animation: slideInUp 0.6s ease-out;
}

.gallery-card:nth-child(1) { animation-delay: 0.1s; }
.gallery-card:nth-child(2) { animation-delay: 0.2s; }
.gallery-card:nth-child(3) { animation-delay: 0.3s; }
.gallery-card:nth-child(4) { animation-delay: 0.4s; }
.gallery-card:nth-child(5) { animation-delay: 0.5s; }
.gallery-card:nth-child(6) { animation-delay: 0.6s; }

/* Sayfalama stilleri - tarihi tasarım */
.pagination {
    margin-top: 3rem;
}

.pagination .page-item .page-link {
    background: var(--parchment);
    border: 2px solid var(--aged-paper);
    color: var(--dark-sepia);
    padding: 0.8rem 1.2rem;
    margin: 0 0.3rem;
    border-radius: var(--radius-medium);
    font-family: var(--ui-font);
    font-weight: 500;
    transition: all var(--transition-medium);
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pagination .page-item .page-link:hover {
    background: var(--gold-gradient);
    border-color: var(--antique-gold);
    color: var(--dark-sepia);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.pagination .page-item.active .page-link {
    background: var(--gold-gradient);
    border-color: var(--deep-gold);
    color: var(--dark-sepia);
    box-shadow: var(--shadow-medium);
    font-weight: 700;
}

.pagination .page-item.disabled .page-link {
    background: var(--cream);
    border-color: var(--light-sepia);
    color: var(--rusty-copper);
    opacity: 0.6;
}

/* Dark theme sayfalama */
body.dark-theme .pagination .page-item .page-link {
    background: rgba(30, 26, 21, 0.8);
    border-color: rgba(184, 134, 11, 0.3);
    color: var(--dark-text-primary);
}

body.dark-theme .pagination .page-item .page-link:hover {
    background: var(--gold-gradient);
    color: var(--dark-sepia);
}

body.dark-theme .pagination .page-item.active .page-link {
    background: var(--gold-gradient);
    color: var(--dark-sepia);
}

/* No results sayfası */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--parchment);
    border-radius: var(--radius-large);
    border: 2px dashed var(--aged-paper);
    margin: 2rem 0;
}

.no-results i {
    color: var(--rusty-copper);
    opacity: 0.6;
}

.no-results h3 {
    color: var(--dark-sepia);
    font-family: var(--heading-font);
    margin: 1rem 0;
}

.no-results p {
    color: var(--ancient-text);
    font-family: var(--ui-font);
}

body.dark-theme .no-results {
    background: rgba(30, 26, 21, 0.8);
    border-color: rgba(184, 134, 11, 0.3);
}

body.dark-theme .no-results h3 {
    color: var(--dark-text-primary);
}

body.dark-theme .no-results p {
    color: var(--dark-text-secondary);
}

/* Modal düzenlemeleri */
.modal-content {
    background: var(--parchment);
    border: 2px solid var(--antique-gold);
    border-radius: var(--radius-large);
}

.modal-header {
    background: linear-gradient(135deg, var(--cream), var(--parchment));
    border-bottom: 2px solid var(--light-sepia);
    border-radius: var(--radius-large) var(--radius-large) 0 0;
}

.modal-title {
    font-family: var(--heading-font);
    color: var(--dark-sepia);
    font-weight: 700;
}

.modal-footer {
    background: linear-gradient(135deg, var(--parchment), var(--cream));
    border-top: 2px solid var(--light-sepia);
    border-radius: 0 0 var(--radius-large) var(--radius-large);
}

.modal-footer .btn-primary {
    background: var(--gold-gradient);
    border: 2px solid var(--deep-gold);
    color: var(--dark-sepia);
    border-radius: var(--radius-medium);
    font-family: var(--ui-font);
    font-weight: 600;
    transition: all var(--transition-medium);
}

.modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #e5c04e, #bb9d3d);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

body.dark-theme .modal-content {
    background: rgba(30, 26, 21, 0.95);
    border-color: var(--dark-accent);
}

body.dark-theme .modal-header {
    background: linear-gradient(135deg, rgba(30, 26, 21, 0.9), rgba(50, 40, 30, 0.9));
    border-bottom-color: rgba(184, 134, 11, 0.3);
}

body.dark-theme .modal-footer {
    background: linear-gradient(135deg, rgba(50, 40, 30, 0.9), rgba(30, 26, 21, 0.9));
    border-top-color: rgba(184, 134, 11, 0.3);
}

body.dark-theme .modal-title {
    color: var(--dark-text-primary);
}