/* Frontend Styles for GCO Video */

/* Video Feed Grid */
.gco-video-feed {
    display: grid;
    gap: 20px;
    padding: 20px 0;
}

.gco-video-feed.gco-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gco-video-feed.gco-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gco-video-feed.gco-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Video Card */
.gco-video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gco-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.gco-video-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Thumbnail */
.gco-video-thumbnail {
    position: relative;
    padding-top: 177.78%; /* 9:16 aspect ratio */
    background: #000;
    overflow: hidden;
}

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

.gco-no-thumbnail {
    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%);
}

.gco-no-thumbnail .dashicons {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8);
}

.gco-video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Video Info */
.gco-video-info {
    padding: 15px;
}

.gco-video-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #333;
}

.gco-video-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.gco-video-stats .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    margin-right: 3px;
    vertical-align: middle;
}

/* Single Video Player */
.gco-single-player {
    max-width: 500px;
    margin: 0 auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.gco-single-player video {
    width: 100%;
    display: block;
}

/* Full Screen Player */
.gco-fullscreen-player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gco-fullscreen-player video {
    max-width: 100%;
    max-height: 100%;
}

.gco-fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
}

/* Video Actions */
.gco-video-actions {
    position: absolute;
    right: 10px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gco-action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    flex-direction: column;
    font-size: 10px;
}

.gco-action-btn .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* No Videos */
.gco-no-videos {
    text-align: center;
    padding: 40px;
    color: #666;
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 992px) {
    .gco-video-feed.gco-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gco-video-feed.gco-columns-3,
    .gco-video-feed.gco-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gco-video-feed {
        gap: 10px;
    }
    
    .gco-video-info {
        padding: 10px;
    }
    
    .gco-video-title {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .gco-video-feed.gco-columns-2,
    .gco-video-feed.gco-columns-3,
    .gco-video-feed.gco-columns-4 {
        grid-template-columns: 1fr;
    }
}
