/* ============================================
   Foto Galerisi CSS
   themes/Duru/assets/css/gallery.css
   ============================================ */

/* Renk değişkenleri header.php'den gelir */
:root {
    --secondary-color: #f0f0f0;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --border-color: #eee;
    --transition: all 0.3s ease;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Gallery Card */
.gallery-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

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

.gallery-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
}

.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-card:hover .gallery-card-image img {
    transform: scale(1.05);
}

.gallery-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-card-icon {
    font-size: 2.5rem;
    color: #fff;
}

.gallery-card-content {
    padding: 15px;
}

.gallery-card-title {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-card-category {
    margin: 0 0 8px 0;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

.gallery-card-date {
    margin: 0;
    font-size: 0.8rem;
    color: #999;
}

/* Gallery Lightbox */
.gallery-lightbox {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-main-image {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Thumbnails */
.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 20px;
}

.gallery-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
}

.gallery-thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.2);
}

/* Sidebar Popüler Galeriler */
.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: var(--transition);
    border: 1px solid var(--border-color);
}

.gallery-sidebar-popular-item:hover {
    background: #f0f0f0;
    border-color: var(--primary-color);
    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: var(--text-dark);
    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;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .gallery-card-image {
        height: 180px;
    }

    .gallery-thumbnails {
        gap: 8px;
    }

    .gallery-thumbnail {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .gallery-card-image {
        height: 150px;
    }

    .gallery-card-title {
        font-size: 1rem;
    }

    .gallery-thumbnails {
        gap: 6px;
    }

    .gallery-thumbnail {
        width: 60px;
        height: 60px;
    }
}

