/* ==========================================
   GALLERY SECTION
   ========================================== */
.gallery-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-section .container {
    width: 100%;
    max-width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================
   CAROUSEL CONTAINER
   ========================================== */
.carousel-container {
    position: relative;
    width: 92%;
    max-width: 1700px;
    margin: 0 auto;
    height: 850px;
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
    background: #000;
}

/* ==========================================
   CAROUSEL TRACK
   ========================================== */
.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    background: #000;
}

.carousel-slide img,
.carousel-slide video {
    max-width: 96%;
    max-height: 96%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.carousel-slide:hover::after {
    content: 'Büyütmek için tıklayın';
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    animation: fadeInUp 0.3s ease forwards;
    white-space: nowrap;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        bottom: 50px;
    }
}

/* ==========================================
   NAVIGATION BUTTONS
   ========================================== */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(1.05);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

.carousel-btn i {
    font-size: 22px;
    color: #333;
}

/* ==========================================
   INDICATORS - HIDDEN
   ========================================== */
.carousel-indicators {
    display: none !important;
}

/* ==========================================
   ERROR MESSAGE
   ========================================== */
.error-message {
    text-align: center;
    padding: 100px 20px;
    color: #dc3545;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.error-message i {
    font-size: 64px;
    margin-bottom: 25px;
    opacity: 0.8;
}

.error-message p {
    font-size: 20px;
    margin: 0;
    font-weight: 500;
}

/* ==========================================
   MODAL STYLES
   ========================================== */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.close-modal:hover {
    color: #f44336;
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.2);
}

.modal-content {
    position: relative;
    margin: 80px auto;
    max-width: 1600px;
    padding: 0 20px;
}

.modal-media-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 75vh;
}

.modal-media-container img,
.modal-media-container video {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

.modal-prev i,
.modal-next i {
    font-size: 28px;
}

/* ==========================================
   MODAL THUMBNAILS
   ========================================== */
.modal-thumbnails {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding: 25px;
    overflow-x: auto;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.modal-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.modal-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.modal-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.modal-thumbnails::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.modal-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.modal-thumbnail:hover {
    opacity: 0.9;
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.modal-thumbnail.active {
    border-color: #fff;
    opacity: 1;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.modal-thumbnail img,
.modal-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   SEO CONTENT SECTION
   ========================================== */
.seo-content {
    padding: 80px 0;
    background: #fff;
}

.seo-content article {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.seo-content h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.seo-content h3 {
    color: #444;
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.seo-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 16px;
}

.seo-content ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.seo-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #666;
    line-height: 1.6;
}

.seo-content ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #1e3a8a;
}

/* ==========================================
   RESPONSIVE - LARGE DESKTOP
   ========================================== */
@media (min-width: 1920px) {
    .carousel-container {
        max-width: 1900px;
        height: 950px;
    }
}

/* ==========================================
   RESPONSIVE - DESKTOP
   ========================================== */
@media (max-width: 1600px) {
    .carousel-container {
        width: 88%;
        height: 750px;
    }
}

@media (max-width: 1400px) {
    .carousel-container {
        width: 90%;
        height: 700px;
    }
}

/* ==========================================
   RESPONSIVE - TABLET
   ========================================== */
@media (max-width: 1024px) {
    .gallery-section {
        padding: 60px 0;
    }

    .gallery-section .container {
        padding: 0 25px;
    }

    .carousel-container {
        width: 94%;
        height: 650px;
        border-radius: 20px;
    }
    
    .carousel-btn {
        width: 50px;
        height: 50px;
    }
    
    .carousel-btn i {
        font-size: 20px;
    }
    
    .carousel-prev {
        left: 25px;
    }
    
    .carousel-next {
        right: 25px;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */
@media (max-width: 768px) {
    .gallery-section {
        padding: 50px 0;
        min-height: auto;
    }

    .gallery-section .container {
        padding: 0 15px;
    }

    .carousel-container {
        width: 96%;
        height: 550px;
        border-radius: 15px;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
    }
    
    .carousel-btn i {
        font-size: 18px;
    }
    
    .carousel-prev {
        left: 15px;
    }
    
    .carousel-next {
        right: 15px;
    }

    .carousel-slide:hover::after {
        font-size: 13px;
        padding: 10px 20px;
    }
    
    .modal-content {
        margin: 60px auto;
    }
    
    .modal-prev,
    .modal-next {
        width: 50px;
        height: 50px;
    }
    
    .modal-prev i,
    .modal-next i {
        font-size: 20px;
    }
    
    .modal-prev {
        left: 15px;
    }
    
    .modal-next {
        right: 15px;
    }
    
    .modal-thumbnail {
        width: 80px;
        height: 65px;
    }
    
    .close-modal {
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 35px;
    }

    .seo-content {
        padding: 50px 0;
    }

    .seo-content h2 {
        font-size: 1.75rem;
    }

    .seo-content h3 {
        font-size: 1.35rem;
    }
}

/* ==========================================
   RESPONSIVE - SMALL MOBILE
   ========================================== */
@media (max-width: 480px) {
    .gallery-section {
        padding: 40px 0;
    }

    .gallery-section .container {
        padding: 0 10px;
    }

    .carousel-container {
        width: 98%;
        height: 450px;
        border-radius: 12px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn i {
        font-size: 16px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }

    .carousel-slide:hover::after {
        font-size: 12px;
        padding: 8px 16px;
        bottom: 30px;
    }

    @keyframes fadeInUp {
        to {
            opacity: 1;
            bottom: 35px;
        }
    }
}

/* ==========================================
   LOADING ANIMATION
   ========================================== */
.gallery-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.gallery-loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #f7b731;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}