/* Video Gallery Public Styles */

.vg-gallery-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px 0;
    max-width: 100%;
}

.vg-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vg-video-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.vg-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vg-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Loading İkonu */
.vg-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: none;
}

.vg-loading.active {
    display: block;
}

.vg-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vg-spin 1s linear infinite;
}

@keyframes vg-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Play Butonu */
.vg-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.vg-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.vg-play-button.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Video Kontrolleri */
.vg-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 15px;
    z-index: 6;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vg-video-wrapper:hover .vg-controls,
.vg-video-wrapper.playing .vg-controls {
    opacity: 1;
}

/* Progress Bar */
.vg-progress-container {
    width: 100%;
    margin-bottom: 10px;
}

.vg-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.vg-progress-filled {
    height: 100%;
    background: #fff;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}


/* Sağ Üst Köşe Kontrolleri */
.vg-top-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 7;
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vg-video-wrapper:hover .vg-top-controls,
.vg-video-wrapper.playing .vg-top-controls {
    opacity: 1;
}

.vg-volume-btn,
.vg-fullscreen-btn {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    padding: 0;
    margin: 0;
    outline: none;
    box-shadow: none;
    font-family: inherit;
    font-size: inherit;
    line-height: 1;
    text-decoration: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.vg-volume-btn:hover,
.vg-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.vg-volume-icon,
.vg-fullscreen-icon {
    width: 24px;
    height: 24px;
}

/* Video Başlığı */
.vg-video-title {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 4;
    max-width: calc(100% - 120px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive Tasarım */

/* Tablet - 2 sütun */
@media (max-width: 1024px) {
    .vg-gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Mobil - 1 sütun */
@media (max-width: 768px) {
    .vg-gallery-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px 0;
    }
    
    .vg-play-button svg {
        width: 50px;
        height: 50px;
    }
    
    .vg-video-title {
        font-size: 14px;
        max-width: calc(100% - 100px);
    }
    
    .vg-volume-btn,
    .vg-fullscreen-btn {
        width: 35px;
        height: 35px;
    }
    
    .vg-volume-icon,
    .vg-fullscreen-icon {
        width: 20px;
        height: 20px;
    }
}

/* Küçük mobil cihazlar */
@media (max-width: 480px) {
    .vg-gallery-container {
        gap: 10px;
    }
}
