/* ========================================
   GALERİ SAYFASI CSS
   Responsive & Lightbox Destekli
======================================== */

/* Hero Section */
.gallery-hero {
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('../images/fabrika.jpg') center/cover no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.gallery-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.gallery-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.gallery-hero p {
    font-size: 1.15rem;
    opacity: 0.95;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Filtre Bölümü */
.gallery-filters-section {
    background: var(--bg-light);
    padding: 25px 0;
    position: sticky;
    top: 60px;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.filter-btn i {
    font-size: 0.85rem;
}

/* Galeri Grid */
.gallery-section {
    padding: 50px 0;
    background: white;
}

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

/* Galeri Item */
.gallery-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.4s ease;
}

.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
}

.gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    height: 280px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Overlay */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.gallery-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.gallery-tag.highlight {
    background: var(--primary-color);
}

.gallery-overlay h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.5;
}

.gallery-zoom {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.gallery-card:hover .gallery-zoom {
    opacity: 1;
    transform: scale(1);
}

.gallery-zoom:hover {
    background: var(--primary-color);
    color: white;
}

/* Proje Badge */
.project-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 15px;
    background: var(--success-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* CTA Section */
.gallery-cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.gallery-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.gallery-cta-content {
    flex: 1;
    min-width: 300px;
    color: white;
}

.gallery-cta-content h2 {
    font-size: 1.75rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.gallery-cta-content p {
    opacity: 0.9;
    font-size: 1rem;
}

.gallery-cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.gallery-cta-buttons .btn {
    padding: 14px 28px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border-radius: 25px;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

.gallery-cta-buttons .btn-outline {
    border-color: white;
    color: white;
}

.gallery-cta-buttons .btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

.gallery-cta-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
}

.gallery-cta-buttons .btn-primary:hover {
    background: var(--bg-light);
}

/* Video Gallery */
.video-gallery-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.video-card:hover .video-play-btn {
    background: var(--primary-color);
    color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card h4 {
    padding: 15px 20px 5px;
    font-size: 1rem;
    color: var(--text-dark);
}

.video-card p {
    padding: 0 20px 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Trust Badges */
.trust-badges-section {
    padding: 40px 0;
    background: white;
    border-top: 1px solid var(--border-color);
}

.trust-badges-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-weight: 500;
}

.trust-badge i {
    font-size: 1.3rem;
    color: var(--success-color);
}

/* ========================================
   PAGİNATİON
======================================== */
.gallery-pagination {
    padding: 40px 0;
    background: white;
    border-top: 1px solid var(--border-color);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.pagination-btn,
.pagination-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination-btn:hover,
.pagination-num:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-num.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.pagination-dots {
    padding: 0 5px;
    color: var(--text-muted);
}

.pagination-info {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Video Link Section */
.video-link-section {
    padding: 30px 0;
    background: var(--bg-light);
}

.video-link-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 25px 35px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.video-link-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.video-link-content i {
    font-size: 3rem;
    color: var(--primary-color);
}

.video-link-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.video-link-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========================================
   LIGHTBOX
======================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.lightbox-caption {
    color: white;
    margin-top: 15px;
    font-size: 1rem;
    opacity: 0.9;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ========================================
   RESPONSIVE TASARIM
======================================== */

/* Tablet - 1024px */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-item-wide {
        grid-column: span 2;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-cta-box {
        flex-direction: column;
        text-align: center;
    }
    
    .gallery-cta-buttons {
        justify-content: center;
    }
}

/* Tablet Small - 768px */
@media (max-width: 768px) {
    .gallery-hero {
        min-height: 300px;
    }
    
    .gallery-hero h1 {
        font-size: 1.75rem;
    }
    
    .gallery-hero p {
        font-size: 1rem;
    }
    
    .gallery-filters-section {
        position: relative;
        top: 0;
        padding: 20px 0;
    }
    
    .gallery-filters {
        gap: 8px;
        padding: 0 10px;
    }
    
    .filter-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .filter-btn i {
        display: none;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-card {
        height: 220px;
    }
    
    .gallery-overlay {
        padding: 20px 15px;
        transform: translateY(0);
        opacity: 1;
        background: linear-gradient(transparent 0%, rgba(0,0,0,0.8) 50%);
    }
    
    .gallery-overlay h3 {
        font-size: 0.95rem;
    }
    
    .gallery-overlay p {
        font-size: 0.8rem;
    }
    
    .gallery-zoom {
        opacity: 1;
        transform: scale(1);
        width: 35px;
        height: 35px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video-thumbnail {
        height: 180px;
    }
    
    .gallery-cta-content h2 {
        font-size: 1.4rem;
    }
    
    .gallery-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .gallery-cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .trust-badges-grid {
        gap: 25px;
    }
    
    .trust-badge {
        font-size: 0.9rem;
    }
    
    /* Pagination Mobile */
    .pagination {
        gap: 5px;
    }
    
    .pagination-btn,
    .pagination-num {
        min-width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    /* Video Link Mobile */
    .video-link-box {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .video-link-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .video-link-content i {
        font-size: 2.5rem;
    }
    
    /* Lightbox Mobile */
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Mobile - 480px */
@media (max-width: 480px) {
    .gallery-hero {
        min-height: 250px;
    }
    
    .gallery-hero-content {
        padding: 40px 15px;
    }
    
    .gallery-hero h1 {
        font-size: 1.4rem;
    }
    
    .gallery-hero p {
        font-size: 0.9rem;
    }
    
    .gallery-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .gallery-filters::-webkit-scrollbar {
        display: none;
    }
    
    .filter-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .gallery-section {
        padding: 30px 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-card {
        height: 250px;
    }
    
    .project-badge {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    
    .gallery-cta-section {
        padding: 40px 0;
    }
    
    .gallery-cta-content h2 {
        font-size: 1.25rem;
    }
    
    .gallery-cta-content p {
        font-size: 0.9rem;
    }
    
    .video-gallery-section {
        padding: 40px 0;
    }
    
    .video-thumbnail {
        height: 200px;
    }
    
    .trust-badges-grid {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .lightbox-content {
        max-width: 95%;
    }
    
    .lightbox-caption {
        font-size: 0.85rem;
        padding: 0 15px;
    }
}


/* ========================================
   VİDEO GALERİ SAYFASI
======================================== */
.video-hero .gallery-hero-content h1 i {
    margin-right: 15px;
}

.video-gallery-section.video-page {
    padding: 50px 0;
    background: white;
}

.video-grid-large {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.video-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.4s ease;
}

.video-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
}

.video-card-large {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.video-card-large:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.video-thumbnail-large {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.video-thumbnail-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card-large:hover .video-thumbnail-large img {
    transform: scale(1.08);
}

.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.video-play-btn-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}

.video-card-large:hover .video-play-btn-large {
    background: var(--primary-color);
    color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.video-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.video-meta {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-meta i {
    font-size: 0.75rem;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.video-modal-close:hover {
    background: rgba(255,255,255,0.2);
}

.video-modal-content {
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal-content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 15px;
}

.video-placeholder i {
    font-size: 4rem;
    opacity: 0.5;
}

.video-placeholder p {
    opacity: 0.7;
}

/* Video Galeri Responsive */
@media (max-width: 1024px) {
    .video-grid-large {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .video-grid-large {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video-thumbnail-large {
        height: 200px;
    }
    
    .video-play-btn-large {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    .video-info {
        padding: 15px;
    }
    
    .video-info h3 {
        font-size: 1rem;
    }
    
    .video-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .video-thumbnail-large {
        height: 180px;
    }
    
    .video-modal-content {
        width: 95%;
    }
}