/**
 * Foto Galerisi Kategori Sayfası CSS
 * themes/Duru/assets/css/gallery-category.css
 */

/* Container */
.duru-container.gallery-category-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 7px;
    margin-bottom: 30px;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Layout - 2 Sütun */
.gallery-category-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 15px;
}

/* Galeri Listesi */
.gallery-category-list {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 20px;
    margin-bottom: 15px;
}

.gallery-category-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
}

.gallery-category-list-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-category-list-title i {
    color: #e11d48;
}

/* Grid */
.gallery-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

/* Card */
.gallery-category-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s;
}

.gallery-category-card:hover {
    transform: translateY(-5px);
}

.gallery-category-card-image {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    padding-top: 100%;
    background: #f0f0f0;
    margin-bottom: 12px;
}

.gallery-category-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-category-no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 32px;
}

.gallery-category-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(225, 29, 72, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-category-card:hover .gallery-category-card-overlay {
    opacity: 1;
}

.gallery-category-card-content {
    padding: 0;
}

.gallery-category-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-category-card-meta {
    font-size: 12px;
    color: #888;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Empty State */
.gallery-category-empty {
    background: #fff;
    padding: 60px 20px;
    text-align: center;
    border-radius: 0;
    border: 1px solid #e5e7eb;
}

.gallery-category-empty i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}

.gallery-category-empty h3 {
    color: #333;
    margin: 0 0 8px 0;
}

.gallery-category-empty p {
    color: #999;
    font-size: 14px;
    margin: 0;
}

/* Pagination */
.gallery-category-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
}

.pagination-btn {
    padding: 8px 16px;
    background: #f3f4f6;
    color: #1f2937;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.pagination-numbers {
    display: flex;
    gap: 6px;
}

.pagination-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #1f2937;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination-number:hover {
    background: #e5e7eb;
}

.pagination-number.active {
    background: #e11d48;
    color: #fff;
}

/* Sidebar */
.gallery-category-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery-sidebar-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 20px;
    border-radius: 0;
}

.gallery-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e11d48;
}

.gallery-sidebar-title i {
    color: #e11d48;
}

.gallery-sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gallery-sidebar-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f9fafb;
    color: #1f2937;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.gallery-sidebar-category:hover {
    background: #f3f4f6;
    color: #e11d48;
}

.gallery-sidebar-category.active {
    background: #e11d48;
    color: #fff;
}

.gallery-sidebar-category-count {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    background: #e5e7eb;
    padding: 2px 8px;
    border-radius: 10px;
}

.gallery-sidebar-category.active .gallery-sidebar-category-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Responsive */
@media (max-width: 1199px) {
    .gallery-category-layout {
        grid-template-columns: 1fr 260px;
    }
    .gallery-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .gallery-category-layout {
        grid-template-columns: 1fr;
    }
    .gallery-category-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .gallery-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .gallery-category-sidebar {
        grid-template-columns: 1fr;
    }
    .gallery-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .gallery-category-grid {
        grid-template-columns: 1fr;
    }
    .gallery-category-list {
        padding: 15px;
    }
    .gallery-category-list-header {
        margin-bottom: 15px;
    }
    .gallery-category-list-title {
        font-size: 16px;
    }
}

/* Popüler Galeriler Sidebar */
.gallery-sidebar-popular {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-sidebar-popular-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    background: #f9f9f9;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.gallery-sidebar-popular-item:hover {
    background: #f0f0f0;
    border-color: #e11d48;
    transform: translateX(5px);
}

.gallery-sidebar-popular-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: #e0e0e0;
    flex-shrink: 0;
}

.gallery-sidebar-popular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-sidebar-popular-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #999;
    font-size: 1.5rem;
}

.gallery-sidebar-popular-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.gallery-sidebar-popular-title {
    margin: 0 0 6px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-sidebar-popular-meta {
    margin: 0;
    font-size: 0.75rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gallery-sidebar-popular-meta i {
    font-size: 0.7rem;
}

