/* Video Modal Styles */
.gco-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    overflow: hidden;
}

.gco-modal-container {
    display: flex;
    height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
}

.gco-modal-video-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #000;
}

.gco-modal-close-x {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s;
}

.gco-modal-close-x:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gco-modal-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gco-modal-video-wrapper video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.gco-play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gco-play-indicator svg {
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
}

.gco-play-indicator .gco-icon-play,
.gco-play-indicator .gco-icon-pause {
    display: none;
}

.gco-play-indicator.show-play {
    opacity: 1;
}

.gco-play-indicator.show-play .gco-icon-play {
    display: block;
}

.gco-play-indicator.show-pause {
    opacity: 1;
}

.gco-play-indicator.show-pause .gco-icon-pause {
    display: block;
}

.gco-modal-video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.gco-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.gco-modal-nav {
    display: none;
}

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

.gco-modal-nav .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.gco-nav-prev {
    top: 20px;
}

.gco-nav-next {
    bottom: 20px;
}

/* Info Section */
.gco-modal-info-section {
    width: 400px;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gco-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.gco-modal-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gco-modal-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.gco-modal-profile-info {
    display: flex;
    flex-direction: column;
}

.gco-modal-username {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.gco-modal-date {
    font-size: 12px;
    color: #999;
}

.gco-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s;
}

.gco-modal-close:hover {
    background: #eee;
    color: #333;
}

.gco-modal-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.gco-modal-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
    color: #333;
}

.gco-modal-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.gco-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gco-modal-tag {
    font-size: 13px;
    color: #667eea;
    cursor: pointer;
}

.gco-modal-tag:hover {
    text-decoration: underline;
}

.gco-modal-stats {
    display: flex;
    gap: 20px;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.gco-modal-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
}

.gco-modal-stat .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.gco-modal-actions {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
}

.gco-modal-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.gco-modal-btn:hover {
    background: #f5f5f5;
}

.gco-modal-btn .dashicons,
.gco-modal-btn svg {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.gco-modal-like-btn.liked {
    background: #ff4757;
    border-color: #ff4757;
    color: #fff;
}

.gco-modal-save-btn.saved {
    background: #ffc107;
    border-color: #ffc107;
    color: #fff;
}

.gco-modal-save-btn.saved svg {
    fill: #fff;
    stroke: #fff;
}

.gco-modal-link {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #eee;
}

.gco-modal-url {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    background: #f9f9f9;
}

.gco-modal-copy-btn {
    padding: 10px 20px;
    background: linear-gradient(90deg, #fbbf24, #f97316);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.gco-modal-copy-btn:hover {
    background: linear-gradient(90deg, #f97316, #ea580c);
}

/* Mobile Fullscreen Style */
@media (max-width: 900px) {
    .gco-modal-container {
        flex-direction: column;
        height: 100%;
    }
    
    .gco-modal-video-section {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100% !important;
        z-index: 1;
    }
    
    .gco-modal-video-wrapper {
        height: 100%;
    }
    
    .gco-modal-video-wrapper video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Hide desktop info section */
    .gco-modal-info-section {
        display: none;
    }
    
    /* Mobile overlay info - bottom left */
    .gco-mobile-info {
        display: block;
        position: fixed;
        bottom: 20px;
        left: 15px;
        right: 70px;
        z-index: 10;
        color: #fff;
    }
    
    .gco-mobile-username {
        font-weight: 600;
        font-size: 16px;
        margin-bottom: 8px;
        text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    }
    
    .gco-mobile-title {
        font-size: 14px;
        margin-bottom: 8px;
        line-height: 1.4;
        text-shadow: 0 1px 3px rgba(0,0,0,0.5);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .gco-mobile-tags {
        font-size: 13px;
        opacity: 0.9;
        text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    }
    
    .gco-mobile-tags span {
        margin-right: 8px;
    }
    
    /* Mobile action buttons - right side */
    .gco-mobile-actions {
        display: flex;
        position: fixed;
        bottom: 100px;
        right: 15px;
        flex-direction: column;
        gap: 20px;
        z-index: 10;
    }
    
    .gco-mobile-action-btn {
        background: none;
        border: none;
        color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
    }
    
    .gco-mobile-action-btn .dashicons,
    .gco-mobile-action-btn svg {
        font-size: 32px;
        width: 32px;
        height: 32px;
    }
    
    .gco-mobile-action-btn span:last-child {
        font-size: 12px;
    }
    
.gco-mobile-action-btn.liked svg {
        fill: #ff4757;
        stroke: #ff4757;
    }
    
    .gco-mobile-action-btn.saved svg {
        fill: #ffc107;
        stroke: #ffc107;
    }
    
    /* Close button */
    .gco-modal-close-x {
        top: 15px;
        left: 15px;
        z-index: 20;
    }
    
    /* Hide desktop elements on mobile */
    .gco-modal-nav {
        display: none;
    }
}

/* Desktop - hide mobile elements */
@media (min-width: 901px) {
    .gco-mobile-info,
    .gco-mobile-actions {
        display: none;
    }
}

@media (max-width: 600px) {
    .gco-mobile-info {
        bottom: 30px;
    }
    
    .gco-mobile-actions {
        bottom: 120px;
    }
}

@media (max-width: 600px) {
    .gco-modal-actions {
        flex-wrap: wrap;
    }
    
    .gco-modal-info-section.expanded .gco-modal-actions {
        display: flex;
        flex-wrap: wrap;
    }
    
    .gco-modal-btn {
        flex: none;
        width: calc(50% - 5px);
    }
    
    .gco-modal-btn:last-child {
        width: 100%;
    }
}
