/* ============================================
   EĞİTMEN GALERİ STYLE
   Tarih: 10 Aralık 2024
   Açıklama: Resim ve video galerisi
============================================ */

:root {
    --gallery-primary: #6ee7b7;
    --gallery-primary-dark: #34d399;
    --gallery-dark: #1f2937;
    --gallery-gray: #6b7280;
    --gallery-light: #f9fafb;
    --gallery-border: #e5e7eb;
    --gallery-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --gallery-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --gallery-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GALERİ CONTAINER
============================================ */

.gallery-section {
    margin-top: 2rem;
}

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.gallery-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gallery-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.gallery-count {
    background: linear-gradient(135deg, var(--gallery-primary) 0%, var(--gallery-primary-dark) 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ============================================
   FİLTRE BUTONLARI
============================================ */

.gallery-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--gallery-border);
    background: white;
    color: var(--gallery-gray);
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gallery-transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover, .back-btn:hover {
    border-color: var(--gallery-primary);
    color: var(--gallery-primary-dark);
    transform: translateY(-2px);
}


.back-btn {
    padding: 0.5rem 3.25rem;
    background: linear-gradient(135deg, var(--gallery-primary) 0%, var(--gallery-primary-dark) 100%);
    color: white;
    border-color: var(--gallery-primary);
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gallery-transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--gallery-primary) 0%, var(--gallery-primary-dark) 100%);
    color: white;
    border-color: var(--gallery-primary);
}

.filter-btn i, .back-btn i {
    font-size: 1rem;
}

/* ============================================
   GALERİ GRID
============================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* ============================================
   GALERİ ITEM
============================================ */

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: var(--gallery-shadow);
    transition: var(--gallery-transition);
    cursor: pointer;
    height: 280px;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--gallery-shadow-lg);
}

.gallery-item.hidden {
    display: none;
}

/* Resim Container */
.gallery-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-image {
    /*transform: scale(1.1);*/
}
/* ============================================
   GALERİ VİDEO THUMBNAIL - ŞIK GÖRÜNÜM
   Mevcut egitmen-galeri.css'e eklenecek
============================================ */

/* Video Container */
.gallery-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-video-container:hover::before {
    opacity: 1;
}

/* Video Thumbnail Image */
.gallery-video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.4s ease;
    display: block;
}

.gallery-video-container:hover .gallery-video-thumbnail {
    transform: scale(1.1);
    filter: brightness(0.8);
}

/* Video Play Icon - Merkez */
.video-play-icon {
    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;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 3;
    cursor: pointer;
}

.video-play-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.2);
    animation: videoPulse 2s infinite;
}

@keyframes videoPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Play Icon - Font Awesome */
.video-play-icon i {
    font-size: 26px;
    color: #667eea;
    margin-left: 4px; /* Play icon'u ortala (üçgen için) */
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Hover Efekti */
.gallery-video-container:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.15);
    background: rgba(102, 126, 234, 0.95);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.5);
}

.gallery-video-container:hover .video-play-icon i {
    color: white;
}

/* Active/Click Efekti */
.video-play-icon:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* Video Badge (YouTube/Vimeo) - Sağ Üst */
.gallery-video-container::after {
    content: 'VIDEO';
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    background: rgba(220, 38, 38, 0.95);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 6px;
    z-index: 4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.gallery-video-container:hover::after {
    background: rgba(220, 38, 38, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
}

/* YouTube Özel Badge */
.gallery-item[data-video-type="youtube"] .gallery-video-container::after {
    content: 'YOUTUBE';
    background: rgba(255, 0, 0, 0.95);
}

.gallery-item[data-video-type="youtube"] .gallery-video-container:hover::after {
    background: rgba(255, 0, 0, 1);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.5);
}

/* Vimeo Özel Badge */
.gallery-item[data-video-type="vimeo"] .gallery-video-container::after {
    content: 'VIMEO';
    background: rgba(26, 183, 234, 0.95);
}

.gallery-item[data-video-type="vimeo"] .gallery-video-container:hover::after {
    background: rgba(26, 183, 234, 1);
    box-shadow: 0 4px 12px rgba(26, 183, 234, 0.5);
}

/* Video Duration Badge - Sol Alt (opsiyonel) */
.video-duration {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    z-index: 4;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Loading State (thumbnail yüklenirken) */
.gallery-video-thumbnail[loading] {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: videoLoading 1.5s infinite;
}

@keyframes videoLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* No Thumbnail Fallback */
.gallery-video-container.no-thumbnail {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-video-container.no-thumbnail::after {
    display: none;
}

.gallery-video-container.no-thumbnail .video-play-icon {
    width: 90px;
    height: 90px;
}

.gallery-video-container.no-thumbnail .video-play-icon i {
    font-size: 36px;
}

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

@media (max-width: 768px) {
    .video-play-icon {
        width: 60px;
        height: 60px;
    }

    .video-play-icon i {
        font-size: 22px;
    }

    .gallery-video-container::after {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 10px;
    }

    .video-duration {
        bottom: 10px;
        left: 10px;
        padding: 3px 8px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .video-play-icon {
        width: 50px;
        height: 50px;
    }

    .video-play-icon i {
        font-size: 18px;
        margin-left: 3px;
    }

    .gallery-video-container::after {
        padding: 4px 8px;
        font-size: 9px;
    }

    .gallery-video-container.no-thumbnail .video-play-icon {
        width: 70px;
        height: 70px;
    }

    .gallery-video-container.no-thumbnail .video-play-icon i {
        font-size: 28px;
    }
}

/* ============================================
   LIGHTBOX İÇİNDE VİDEO GÖRÜNÜMÜ
============================================ */

.lightbox-content .gallery-video-container {
    height: auto;
    min-height: 400px;
}

.lightbox-content .gallery-video-thumbnail {
    max-height: 70vh;
    width: auto;
    height: auto;
}

.lightbox-content .video-play-icon {
    width: 100px;
    height: 100px;
}

.lightbox-content .video-play-icon i {
    font-size: 40px;
}

@media (max-width: 768px) {
    .lightbox-content .gallery-video-container {
        min-height: 250px;
    }

    .lightbox-content .video-play-icon {
        width: 80px;
        height: 80px;
    }

    .lightbox-content .video-play-icon i {
        font-size: 32px;
    }
}

/* ============================================
   ALTERNATIF STIL 1: Minimal
============================================ */

.gallery-style-minimal .video-play-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.gallery-style-minimal .video-play-icon::before {
    display: none;
}

.gallery-style-minimal .video-play-icon i {
    color: white;
    font-size: 24px;
}

.gallery-style-minimal .gallery-video-container::after {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

/* ============================================
   ALTERNATIF STIL 2: Bold
============================================ */

.gallery-style-bold .video-play-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid white;
}

.gallery-style-bold .video-play-icon::before {
    animation: videoPulseBold 1.5s infinite;
}

@keyframes videoPulseBold {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.gallery-style-bold .video-play-icon i {
    color: white;
    font-size: 30px;
}

.gallery-style-bold .gallery-video-container:hover .video-play-icon {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translate(-50%, -50%) scale(1.2) rotate(15deg);
}

/* Tip Badge */
.gallery-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 2;
}

.gallery-type-badge.type-image {
    background: rgba(52, 211, 153, 0.9);
}

.gallery-type-badge.type-video {
    background: rgba(139, 92, 246, 0.9);
}

/* Overlay */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    padding: 1.5rem 1.25rem 1.25rem;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-item-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   LIGHTBOX
============================================ */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: zoomIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-video {
    width: 90vw;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

/* Lightbox Info */
.lightbox-info {
    position: absolute;
    bottom: -80px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
}

.lightbox-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lightbox-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Lightbox Controls */
.lightbox-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--gallery-transition);
    z-index: 10000;
}

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

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--gallery-transition);
    z-index: 10000;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 2rem;
}

.lightbox-nav.next {
    right: 2rem;
}

.lightbox-counter {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 10000;
}

/* ============================================
   BOŞ DURUM
============================================ */

.gallery-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gallery-light);
    border-radius: 12px;
    margin-top: 2rem;
}

.gallery-empty-icon {
    font-size: 4rem;
    color: var(--gallery-border);
    margin-bottom: 1.5rem;
}

.gallery-empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gallery-dark);
    margin-bottom: 0.75rem;
}

.gallery-empty-text {
    color: var(--gallery-gray);
    font-size: 1rem;
}

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

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

    .gallery-item {
        height: 200px;
    }

    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-title {
        font-size: 1.5rem;
    }

    .filter-btn, .back-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .lightbox-content {
        max-width: 95vw;
    }

    .lightbox-close,
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
    }

    .lightbox-nav.prev {
        left: 1rem;
    }

    .lightbox-nav.next {
        right: 1rem;
    }

    .lightbox-info {
        bottom: -100px;
    }

    .lightbox-title {
        font-size: 1rem;
    }

    .lightbox-description {
        font-size: 0.85rem;
    }

    .video-play-icon {
        width: 50px;
        height: 50px;
    }

    .video-play-icon i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .gallery-item {
        height: 180px;
    }

    .gallery-title {
        font-size: 1.25rem;
    }

    .gallery-type-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.7rem;
    }

    .lightbox-video {
        width: 95vw;
    }
}

/* ============================================
   ANIMASYONLAR
============================================ */

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.video-play-icon {
    animation: pulse 2s infinite;
}

.gallery-item:hover .video-play-icon {
    animation: none;
}

/* Loading State */
.gallery-loading {
    text-align: center;
    padding: 3rem;
    color: var(--gallery-gray);
}

.gallery-loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


.gallery-stats {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
}

.stat-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: all .25s ease;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

/* Renkler */
.stat-box:nth-child(1) .stat-icon { background: linear-gradient(135deg,#3b82f6,#2563eb); }
.stat-box:nth-child(2) .stat-icon { background: linear-gradient(135deg,#ef4444,#dc2626); }
.stat-box:nth-child(3) .stat-icon { background: linear-gradient(135deg,#f59e0b,#d97706); }

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

@media (max-width: 768px) {
    .gallery-stats {
        flex-wrap: wrap;
    }

    .stat-box {
        flex: 1 1 100%;
    }
}

/* ===============================
   MODAL GENEL
================================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

.modal-large {
    max-width: 760px;
}

/* ===============================
   MODAL HEADER
================================ */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header i {
    color: #2563eb;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6b7280;
}

.modal-close:hover {
    color: #ef4444;
}

/* ===============================
   MODAL BODY
================================ */
.modal-body {
    padding: 22px;
    overflow-y: auto;
}

/* ===============================
   FORM GROUP
================================ */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px; 
	
}
.form-group input { padding: 14px 15px 14px 11px; }
	
.form-control {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}

/* ===============================
   UPLOAD ALANI (FOTO)
================================ */
.upload-section {
    margin-bottom: 20px;
}

.upload-area {
    border: 2px dashed #c7d2fe;
    border-radius: 14px;
    padding: 26px;
    text-align: center;
    cursor: pointer;
    background: #f8faff;
    transition: all .25s ease;
}

.upload-area:hover {
    background: #eef2ff;
    border-color: #6366f1;
}

.upload-icon {
    font-size: 34px;
    color: #6366f1;
    margin-bottom: 8px;
}

.upload-area p {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.upload-area small {
    color: #6b7280;
}

/* ===============================
   CROPPER
================================ */
.cropper-wrapper {
    max-height: 360px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.cropper-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

/* ===============================
   VIDEO PREVIEW
================================ */
.video-preview-container {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-preview-container iframe {
    width: 100%;
    height: 100%;
    min-height: 270px;
    border: 0;
}

/* ===============================
   CHECKBOX
================================ */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-checkbox input {
    width: 18px;
    height: 18px;
}

.custom-checkbox label {
    font-size: 14px;
    margin: 0;
}

/* ===============================
   MODAL FOOTER
================================ */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 22px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

/* ===============================
   BUTTONS
================================ */
.btn {
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg,#2563eb,#4f46e5);
    color: #fff;
}

.btn-primary:hover {
    opacity: .9;
}

.btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

.btn-secondary:hover {
    background: #d1d5db;
}

/* ===============================
   MOBİL
================================ */
@media (max-width: 640px) {
    .modal-content,
    .modal-large {
        max-width: 95%;
        margin: 10px;
    }
}
.swal2-container {
    z-index: 20000 !important;
}
/* ===============================
   VIDEO PREVIEW / PLAYER (CONTROLLED)
================================ */

.video-preview-container,
.video-player-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.video-preview-container,
.video-player-container {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 14px;
    overflow: hidden;

    /* 👇 KRİTİK SATIRLAR */
    max-height: 70vh;
}

/* iframe tam alanı doldursun ama container'ı aşmasın */
.video-preview-container iframe,
.video-player-container iframe,
#videoPreviewEmbed iframe,
#videoPlayerEmbed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* MOBİLDE DAHA KISA */
@media (max-width: 768px) {
    .video-preview-container,
    .video-player-container {
        max-height: 45vh;
    }
}

/* ============================================
   GALERİ ITEM CSS DÜZELTMESİ
============================================ */

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

/* Gallery Item */
.gallery-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Gallery Actions (Üst sağ butonlar) */
.gallery-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-actions {
    opacity: 1;
}

.btn-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-icon:hover {
    background: white;
    transform: scale(1.1);
}

.btn-icon i {
    font-size: 14px;
    color: #374151;
}

.drag-handle {
    cursor: move;
}

/* Gallery Badge (Vitrin) */
.gallery-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
}

.gallery-badge.vitrin {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(251,191,36,0.3);
}

/* Gallery Image (Fotoğraf) */
.gallery-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.image-overlay i {
    font-size: 2.5rem;
    color: white;
}

/* Gallery Video */
.gallery-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.gallery-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-video img {
    transform: scale(1.05);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder i {
    font-size: 4rem;
    color: rgba(255,255,255,0.3);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.video-overlay i {
    font-size: 3.5rem;
    color: white;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.video-platform {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.video-platform i {
    font-size: 16px;
    color: #dc2626;
}

/* Gallery Info (Başlık) - KRİTİK KISIM */
.gallery-info {
    padding: 1rem;
    background: white;
}

.gallery-info h4 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Video için başlık overlay değil, aşağıda göster */
.gallery-video + .gallery-info {
    border-top: 1px solid #f3f4f6;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

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

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10000;
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

#lightboxInfo {
    margin-top: 1.5rem;
}

#lightboxInfo h3 {
    color: white;
    font-size: 1.25rem;
}

/* Sortable Ghost */
.sortable-ghost {
    opacity: 0.4;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .gallery-actions {
        opacity: 1;
    }
    
    .btn-icon {
        width: 32px;
        height: 32px;
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev {
        left: 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
.kapali-buton {
	background: #eee !important; 
	color: #ccc !important;
	box-shadow: none !important;
}