/**
 * Foto Galerisi Detay Sayfası CSS
 * themes/Duru/assets/css/gallery-detail.css
 */

/* Container */
.gallery-detail-page {
    margin-top: 7px;
    margin-bottom: 30px;
}

/* Breadcrumb */
.gallery-detail-breadcrumb {
    background: #fff;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 0.95rem;
}

.gallery-detail-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.gallery-detail-breadcrumb a:hover {
    color: var(--primary-color);
    opacity: 0.8;
}

.breadcrumb-sep {
    color: #999;
    margin: 0 8px;
}

/* Header - Başlık Kartı */
.gallery-detail-header {
    background: #fff;
    border-radius: 0;
    padding: 25px 30px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.gallery-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0 0 12px 0;
}

.gallery-detail-summary {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Layout */
.gallery-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

/* Main Content */
.gallery-detail-main {
    min-width: 0;
}

/* Resimler Alt Alta Bölümü */
.gallery-images-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.gallery-image-article {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
}

.gallery-image-counter-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
}

.gallery-image-wrapper {
    background: #000;
    overflow: hidden;
    position: relative;
    padding-bottom: 66.67%;
}

.gallery-image-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-image-zoom-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 5;
}

.gallery-image-zoom-btn:hover {
    background: rgba(225, 29, 72, 0.8);
    transform: scale(1.1);
}

.gallery-image-caption {
    padding: 20px 25px;
    border-top: 1px solid #eee;
}

.gallery-image-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.gallery-image-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Sosyal Paylaşım */
.gallery-image-share {
    padding: 15px 25px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gallery-share-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
}

.gallery-share-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gallery-share-icon-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-share-icon-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gallery-share-icon-link--facebook { background: #1877f2; }
.gallery-share-icon-link--x { background: #000; }
.gallery-share-icon-link--nextsocial { background: #7c3aed; }
.gallery-share-icon-link--linkedin { background: #0a66c2; }
.gallery-share-icon-link--telegram { background: #0088cc; }
.gallery-share-icon-link--whatsapp { background: #25d366; }
.gallery-share-icon-link--email { background: #ea4335; }
.gallery-share-icon-link--copy { background: #6b7280; }

.gallery-share-nextsocial-letter {
    font-weight: 700;
    font-size: 16px;
}

.gallery-share-x-icon {
    width: 14px;
    height: 14px;
}

/* Galeri Lightbox */
.gallery-image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    z-index: 9999;
}

.gallery-image-lightbox.is-active {
    display: flex;
}

.gallery-image-lightbox-inner {
    position: relative;
    max-width: 1100px;
    width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

.gallery-image-lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.95);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.gallery-image-lightbox-close:hover {
    background: rgba(225, 29, 72, 0.9);
    transform: scale(1.1);
}

.gallery-image-lightbox-close i {
    font-size: 16px;
}

/* Gallery Viewer */
.gallery-detail-viewer {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.gallery-detail-main-image {
    background: #000;
    overflow: hidden;
    position: relative;
    padding-bottom: 66.67%;
}

.gallery-main-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Thumbnails */
.gallery-detail-thumbnails {
    display: flex;
    gap: 8px;
    padding: 15px;
    background: #f8f9fa;
    overflow-x: auto;
}

.gallery-thumbnail-item {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.gallery-thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnail-item.active {
    border-color: var(--primary-color);
}

.thumbnail-number {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Image Info */
.gallery-image-info {
    padding: 20px;
    border-top: 1px solid #eee;
}

.image-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.image-description {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Empty State */
.gallery-empty-state {
    background: #fff;
    padding: 60px 20px;
    text-align: center;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

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

/* Gallery Meta */
.gallery-detail-meta {
    background: #fff;
    border-radius: 0;
    padding: 20px 25px;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.gallery-meta-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.gallery-meta-category:hover {
    filter: brightness(1.1);
    color: #fff;
}

.gallery-meta-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.gallery-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.gallery-meta-item i {
    color: #999;
}

/* Share Section */
.gallery-share-section {
    background: #fff;
    border-radius: 0;
    padding: 20px 25px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.gallery-share-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.gallery-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-share-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.gallery-share-btn.facebook { background: #1877f2; }
.gallery-share-btn.twitter { background: #000; }
.gallery-share-btn.nextsocial { background: #7c3aed; }
.gallery-share-btn.whatsapp { background: #25d366; }
.gallery-share-btn.telegram { background: #0088cc; }
.gallery-share-btn.linkedin { background: #0a66c2; }
.gallery-share-btn.email { background: #ea4335; }
.gallery-share-btn.copy { background: #6c757d; }

.gallery-share-x-icon {
    width: 16px;
    height: 16px;
}

.gallery-share-nextsocial-letter {
    font-weight: 700;
    font-size: 18px;
}

/* Related Galleries */
.gallery-related-section {
    background: #fff;
    border-radius: 0;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

.gallery-related-title i {
    color: var(--primary-color);
}

.gallery-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-related-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s;
}

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

.gallery-related-thumbnail {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    padding-top: 100%;
    background: #f0f0f0;
}

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

.gallery-related-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-related-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-related-card:hover .gallery-related-overlay {
    opacity: 1;
}

.gallery-related-info {
    padding: 12px 0 0;
}

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

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

.gallery-sidebar-section {
    background: #fff;
    border-radius: 0;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.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 var(--primary-color);
}

.gallery-sidebar-title i {
    color: var(--primary-color);
}

/* Sidebar Info */
.gallery-sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-sidebar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.gallery-sidebar-item:last-child {
    border-bottom: none;
}

.gallery-sidebar-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.gallery-sidebar-value {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 600;
}

.gallery-sidebar-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.gallery-sidebar-value a:hover {
    text-decoration: underline;
}

/* Sidebar List */
.gallery-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-sidebar-item-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s;
}

.gallery-sidebar-item-link:hover {
    background: #f8f9fa;
}

.gallery-sidebar-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 0;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}

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

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

.gallery-sidebar-item-info {
    flex: 1;
    min-width: 0;
}

.gallery-sidebar-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-sidebar-item-date {
    font-size: 11px;
    color: #888;
}

.gallery-sidebar-item-date i {
    margin-right: 4px;
}

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

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

@media (max-width: 767px) {
    .gallery-detail-sidebar {
        grid-template-columns: 1fr;
    }
    .gallery-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-detail-header {
        padding: 20px;
    }
    .gallery-detail-title {
        font-size: 20px;
    }
    .gallery-detail-summary {
        font-size: 14px;
    }
    .gallery-detail-meta {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    .gallery-detail-thumbnails {
        padding: 12px;
    }
    .gallery-thumbnail-item {
        width: 70px;
        height: 70px;
    }
    .gallery-image-counter-badge {
        top: 10px;
        left: 10px;
        font-size: 12px;
        padding: 6px 12px;
    }
    .gallery-image-zoom-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        top: 10px;
        right: 10px;
    }
    .gallery-image-caption {
        padding: 15px 20px;
    }
    .gallery-image-title {
        font-size: 15px;
    }
    .gallery-image-description {
        font-size: 13px;
    }
    .gallery-image-share {
        padding: 12px 20px;
        gap: 10px;
    }
    .gallery-share-label {
        font-size: 12px;
    }
    .gallery-share-icon-link {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .gallery-related-grid {
        grid-template-columns: 1fr;
    }
    .gallery-related-card {
        display: flex;
        gap: 12px;
    }
    .gallery-related-thumbnail {
        width: 140px;
        height: 80px;
        padding-top: 0;
        flex-shrink: 0;
    }
    .gallery-related-info {
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .gallery-share-buttons {
        justify-content: center;
    }
    .gallery-share-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .gallery-meta-item {
        font-size: 12px;
    }
}

