/* =========================
   Video Theme - Single Post Styles (Mobile-First Edition)
   ========================= */

/* Reset / Base (mobile-first) */
.single-post-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-content {
    width: 100%;
    order: 1;
}

.sidebar {
    order: 2;
    width: 100%;
}

/* Video Post Article */
.video-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

/* Video Title */
.video-post > h1.video-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 16px;
    padding: 16px 16px 0;
    line-height: 1.25;
    color: #1a1a1a;
}

/* Video Wrapper & Player */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: #000;
    margin-bottom: 16px;
    overflow: hidden;
    line-height: 0;
}

.video-player {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}

/* Keep 16:9 for iframes */
.iframe-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    border: 0;
}

/* Affiliate Button - bigger touch target on mobile */
.affiliate-button {
    padding: 0 16px 20px;
    text-align: center;
}

.affiliate-button a {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    min-height: 48px;
    line-height: 1.4;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.affiliate-button a:hover,
.affiliate-button a:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    outline: none;
}

/* Video Info - stacked, readable */
.video-post > .video-info {
    padding: 16px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.video-post > .video-info p {
    margin: 10px 0;
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.5;
}

.video-post > .video-info strong {
    color: #212529;
    font-weight: 600;
    margin-right: 8px;
}

.video-post > .video-info a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.video-post > .video-info a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Likes/Dislikes - stacked + bigger on mobile */
.likes-dislikes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    align-items: center;
}

.like-btn,
.dislike-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: 2px solid #e9ecef;
    background: #fff;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #495057;
    min-width: 160px;
    min-height: 48px;
}

.like-btn:hover {
    border-color: #28a745;
    background: #28a745;
    color: #fff;
    transform: translateY(-2px);
}

.dislike-btn:hover {
    border-color: #dc3545;
    background: #dc3545;
    color: #fff;
    transform: translateY(-2px);
}

.like-btn.active {
    border-color: #28a745;
    background: #28a745;
    color: #fff;
}

.dislike-btn.active {
    border-color: #dc3545;
    background: #dc3545;
    color: #fff;
}

/* Post Content */
.post-content {
    padding: 16px;
    font-size: 1rem;
    line-height: 1.7;
    color: #343a40;
}

.post-content p {
    margin-bottom: 15px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #212529;
}

/* Related Videos */
.related-posts {
    padding: 24px 16px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.related-posts > h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 20px;
    color: #212529;
}

/* Video Grid - responsive */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.related-posts .video-grid {
    margin-bottom: 0;
}

/* Sidebar widgets */
.sidebar {
    width: 100%;
}

.sidebar .widget {
    background: #fff;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sidebar .widget h2,
.sidebar .widget h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #212529;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

/* Comments Section */
.comments-section {
    padding: 24px 16px;
    background: #fff;
    margin-top: 0;
}

#comments {
    background: transparent;
    padding: 0;
}

/* No Content Message */
.no-content {
    text-align: center;
    padding: 60px 20px;
}

.no-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #212529;
}

.no-content p {
    font-size: 16px;
    color: #606060;
    margin-bottom: 25px;
}

.no-content .btn {
    display: inline-block;
    padding: 12px 30px;
    background: #667eea;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.no-content .btn:hover {
    background: #764ba2;
}

/* ────────────────────────────────────────
   Tablet & Desktop Enhancements (min-width)
   ──────────────────────────────────────── */

@media (min-width: 768px) {
    .single-post-container {
        flex-direction: row;
        padding: 20px;
        gap: 30px;
    }

    .main-content {
        flex: 1;
    }

    .sidebar {
        flex: 0 0 320px;
    }

    .video-post > h1.video-title {
        font-size: 2rem;
        padding: 20px 20px 0;
        margin-bottom: 20px;
    }

    .video-wrapper {
        margin-bottom: 20px;
    }

    .likes-dislikes {
        flex-direction: row;
        justify-content: center;
        padding: 20px;
    }

    .like-btn,
    .dislike-btn {
        min-width: auto;
    }

    .video-post > .video-info,
    .post-content,
    .related-posts {
        padding: 20px;
    }

    .related-posts > h2 {
        font-size: 1.8rem;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }

    .affiliate-button {
        padding: 0 20px 20px;
    }

    .affiliate-button a {
        padding: 15px 40px;
        font-size: 16px;
    }
}

@media (min-width: 1024px) {
    .single-post-container {
        max-width: 1200px;
        gap: 40px;
    }

    .sidebar {
        flex: 0 0 350px;
    }

    .video-post > h1.video-title {
        font-size: 2.4rem;
    }

    .related-posts > h2 {
        font-size: 24px;
    }
}

@media (min-width: 1400px) {
    .single-post-container {
        max-width: 1400px;
    }
}