/* Duvar Kağıdı Sayfası Stilleri */

/* Hero Bölümü */
.wallpaper-hero {
    position: relative;
    background: linear-gradient(135deg, #4b6cb7, #182848);
    height: 50vh; /* 40vh'den 50vh'ye yükseltildi */
    min-height: 400px; /* 300px'den 400px'e yükseltildi */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    padding-top: 80px; /* Header'ın altında kalan kısmı düzeltmek için padding eklendi */
    margin-top: -20px; /* Üst kenar boşluğunu azaltmak için */
}

.wallpaper-hero .container {
    position: relative;
    z-index: 2;
}

.wallpaper-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px; /* İçeriğe iç boşluk ekledik */
    position: relative;
    z-index: 3; /* İçeriğin particles üzerinde görünmesini sağlar */
}

.wallpaper-hero h2 {
    font-size: 3rem; /* Başlık boyutunu artırdık */
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Okunabilirlik için gölge ekledik */
}

.wallpaper-hero .subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Arama Kutusu */
.wallpaper-hero .search-container {
    max-width: 600px;
    margin: 0 auto;
}

.wallpaper-hero form {
    display: flex;
    position: relative;
}

.wallpaper-hero input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.wallpaper-hero input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.wallpaper-hero input:focus {
    background: rgba(255, 255, 255, 0.25);
    outline: none;
}

.wallpaper-hero .search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    border: none;
    height: calc(100% - 10px);
    width: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wallpaper-hero .search-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #2ecc71, #3498db);
}

/* Ana İçerik */
.wallpaper-content {
    padding: 60px 0;
    background-color: #f7f9fc;
}

.wallpaper-layout {
    display: flex;
    gap: 30px;
}

/* Sidebar - Kategoriler */
.wallpaper-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-header {
    margin-bottom: 15px;
}

.sidebar-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-header h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    border-radius: 3px;
}

/* Kategori listesi stil güncellemesi */
.category-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-list li {
    margin-bottom: 0;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.category-list li a {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Sola hizalama */
    padding: 14px 18px;
    color: #555;
    text-decoration: none;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.category-list li a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    flex-shrink: 0; /* İkon boyutunu koruması için */
}

.category-list li .count {
    margin-left: auto; /* Sayaçları sağa itme */
    background-color: #f0f0f0;
    color: #777;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Sayaç boyutunu koruması için */
}

.category-list li.active a {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(46, 204, 113, 0.1));
    color: #2ecc71;
    border-left: 4px solid #2ecc71;
    font-weight: 500;
}

.category-list li.active i,
.category-list li a:hover i {
    color: #2ecc71;
}

.category-list li a:hover {
    background: #f9f9f9;
    transform: translateX(5px);
}

.category-list li.active .count,
.category-list li a:hover .count {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

/* Yeni Yönlendirme Filtreleme Stili */
.orientation-filter {
    background-color: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.orientation-buttons {
    display: flex;
    gap: 20px; /* Aradaki boşluğu artırdım */
    justify-content: space-between;
}

.orientation-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    border: none;
    border-radius: 10px;
    padding: 20px 15px; /* Buton boyutunu artırdım */
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.orientation-btn i {
    font-size: 2rem; /* İkon boyutunu artırdım */
    margin-bottom: 10px;
}

.orientation-btn span {
    font-size: 1rem;
    font-weight: 500;
}

.orientation-btn.active {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
    transform: translateY(-3px);
}

.orientation-btn:hover:not(.active) {
    background: #e8ecf1;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Duvar Kağıdı Galerisi */
.wallpaper-gallery {
    flex-grow: 1;
}

.gallery-header {
    display: flex;
    justify-content: flex-start; /* space-between yerine flex-start */
    align-items: center;
    margin-bottom: 25px;
}

.gallery-title {
    font-size: 1.6rem;
    color: #333;
}

.item-count {
    font-size: 1rem;
    color: #777;
    font-weight: normal;
}

/* Duvar Kağıdı Grid - Yeni 2 sütunlu düzen */
.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Her zaman 2 sütun */
    gap: 25px;
    max-width: 100%;
}

/* Görsel boyutlarını yönlendirmeye göre ayarlama */
.wallpaper-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 0;
}

/* Yatay görseller - 16:9 oranı */
.wallpaper-item.landscape .wallpaper-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 oranı (9/16 * 100) */
    overflow: hidden;
}

/* Dikey görseller - 9:16 oranı */
.wallpaper-item.portrait .wallpaper-image {
    position: relative;
    width: 100%;
    padding-top: 177.78%; /* 9:16 oranı (16/9 * 100) */
    overflow: hidden;
}

.wallpaper-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wallpaper-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); /* Gölge efektini koruyoruz */
}

.wallpaper-item:hover .wallpaper-image img {
    transform: scale(1.05);
}

/* Overlay - Hover efektleri */
.wallpaper-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 0) 60%,
        rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    transition: opacity 0.3s ease;
    color: white;
}

.wallpaper-item:hover .wallpaper-overlay {
    opacity: 1;
}

/* Overlay üst bölüm - kalite ve favori */
.overlay-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.quality-badge {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.favorite-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorite-btn:hover {
    background: rgba(255, 90, 96, 0.8);
    transform: scale(1.1);
}

.favorite-btn.active {
    background: rgba(255, 90, 96, 0.8);
}

.favorite-btn.active i {
    font-weight: 900; /* Solid heart icon when active */
}

/* Overlay alt bölüm - isim ve incele butonu */
.overlay-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.overlay-bottom h3 {
    margin: 0;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    max-width: 65%;
}

.view-btn {
    background: rgba(52, 152, 219, 0.85);
    color: white;
    border: none;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-btn:hover {
    background: rgba(41, 128, 185, 1);
    transform: translateY(-2px);
}

/* Daha Fazla Göster Butonu - Ortalama düzeltmesi */
.load-more-container {
    margin-top: 40px;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
}

#load-more {
    padding: 12px 30px;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 0 auto; /* Ekstra ortalama için */
}

/* Mobil görünüm iyileştirmeleri */

/* Hero Bölümü iyileştirmeleri */
.wallpaper-hero {
    position: relative;
    background: linear-gradient(135deg, #4b6cb7, #182848);
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    padding-top: 80px;
    margin-top: -20px;
}

.wallpaper-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 3;
}

.wallpaper-hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Arama Kutusu iyileştirmeleri */
.search-container {
    max-width: 600px;
    margin: 0 auto 20px;
    padding: 0 15px;
}

.search-container form {
    display: flex;
    position: relative;
}

/* Sayfa düzeni iyileştirmeleri */
.wallpaper-content {
    padding: 40px 0;
    background-color: #f7f9fc;
}

.wallpaper-layout {
    display: flex;
    gap: 30px;
}

/* Sidebar - Kategoriler iyileştirmeleri */
.wallpaper-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.category-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-list li a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 15px;
    color: #555;
    text-decoration: none;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    border-radius: 8px;
}

.category-list li a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.category-list li .count {
    margin-left: auto;
    background-color: #f0f0f0;
    color: #777;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Yönlendirme butonları iyileştirmeleri */
.orientation-buttons {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.orientation-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    border: none;
    border-radius: 10px;
    padding: 15px 10px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Daha Fazla Göster Butonu iyileştirmeleri */
.load-more-container {
    margin-top: 40px;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
}

#load-more {
    padding: 12px 30px;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 0 auto;
}

/* Mobil Uyumluluk İyileştirmeleri */
@media (max-width: 992px) {
    .wallpaper-layout {
        flex-direction: column;
    }
    
    .wallpaper-sidebar {
        width: 100%;
        margin-bottom: 30px;
    }
    
    /* Mobil cihazlar için kategori listesi düzenlemeleri */
    .category-list ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .category-list li a {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .category-list li a i {
        margin-right: 8px;
        font-size: 1rem;
    }
    
    .category-list li .count {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}

@media (max-width: 768px) {
    /* Hero bölümü mobil düzenlemeleri */
    .wallpaper-hero {
        height: 45vh;
        min-height: 320px;
        padding-top: 60px;
        padding-bottom: 20px;
    }
    
    .wallpaper-hero h2 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .wallpaper-hero .subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .search-container {
        margin-bottom: 10px;
    }
    
    /* Galeri başlığı düzenlemeleri */
    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .gallery-title {
        font-size: 1.4rem;
    }
    
    /* Duvar kağıdı grid düzenlemeleri */
    .wallpaper-grid {
        grid-template-columns: 1fr;
    }
    
    /* Kategori liste düzenlemeleri */
    .category-list ul {
        grid-template-columns: 1fr;
    }
    
    .category-list li a {
        justify-content: flex-start;
    }
    
    /* Yönlendirme butonları düzenlemeleri */
    .orientation-filter {
        margin-bottom: 20px;
    }
    
    .orientation-buttons {
        gap: 10px;
    }
    
    .orientation-btn {
        padding: 12px 8px;
    }
    
    .orientation-btn i {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }
    
    .orientation-btn span {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    /* Küçük mobil cihazlar için ek düzenlemeler */
    .wallpaper-hero {
        height: 40vh;
        min-height: 280px;
        padding-top: 50px;
    }
    
    .wallpaper-hero h2 {
        font-size: 1.8rem;
    }
    
    .wallpaper-content {
        padding: 30px 0;
    }
    
    .wallpaper-sidebar {
        margin-bottom: 20px;
    }
    
    .sidebar-header h3 {
        font-size: 1.2rem;
    }
    
    .search-container input {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .search-container .search-btn {
        width: 40px;
    }
    
    #load-more {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .overlay-bottom h3 {
        font-size: 0.9rem;
        max-width: 60%;
    }
    
    .view-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

