/* Video Guide Display Styles */
.video-guide-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.video-guide-article {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.video-guide-container {
    display: grid;
    gap: 30px;
}

/* Video Player Section */
.video-player-section {
    width: 100%;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.error-icon {
    color: #6c757d;
    margin-bottom: 16px;
}

.video-error h3 {
    color: #495057;
    margin-bottom: 8px;
}

.video-error p {
    color: #6c757d;
    margin: 0;
}

/* Video Info Section */
.video-info-section {
    padding: 0 20px 20px;
}

.video-header {
    margin-bottom: 30px;
}

.video-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 0.9rem;
}

.meta-divider {
    width: 1px;
    height: 16px;
    background: #dee2e6;
}

/* Video Description */
.video-description {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.video-description h3 {
    color: #495057;
    margin: 0 0 12px 0;
    font-size: 1.2rem;
}

.video-description p {
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

/* Related Videos */
.related-videos {
    margin-bottom: 30px;
}

.related-videos h3 {
    color: #495057;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
}

.related-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.related-video-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-video-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.related-video-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-video-thumbnail {
    position: relative;
    width: 100%;
    height: 160px;
    background: #f8f9fa;
    overflow: hidden;
}

.related-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #e9ecef;
    color: #6c757d;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.related-video-item:hover .play-overlay {
    background: rgba(0, 0, 0, 0.9);
}

.related-video-info {
    padding: 16px;
}

.related-video-title {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-video-date {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Share Section */
.video-share {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.video-share h3 {
    color: #495057;
    margin: 0 0 16px 0;
    font-size: 1.2rem;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-button.facebook {
    background: #1877f2;
    color: white;
}

.share-button.facebook:hover {
    background: #166fe5;
    color: white;
}

.share-button.copy-link {
    background: #6c757d;
    color: white;
}

.share-button.copy-link:hover {
    background: #5a6268;
    color: white;
}

/* Error States */
.video-guide-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.error-content h1 {
    color: #dc3545;
    margin-bottom: 16px;
}

.error-content p {
    color: #6c757d;
    margin-bottom: 24px;
}

.back-home-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.back-home-btn:hover {
    background: #0056b3;
    color: white;
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.copy-notification.success {
    background: #28a745;
}

.copy-notification.error {
    background: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-guide-wrapper {
        padding: 15px;
    }
    
    .video-title {
        font-size: 1.5rem;
    }
    
    .video-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .meta-divider {
        display: none;
    }
    
    .related-videos-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-button {
        justify-content: center;
    }
}

