/* ==========================================================================
   BadanFit — Video Page Stylesheet
   Shared across all /video/*.html exercise tutorial pages.
   Contains ONLY rules used by the video page template.
   Removed: hero, features grid, custom-training, ai-showcase, latest-blog,
            preloader (all copied from the homepage, unused here).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens this file needs + page background
       (reset, fonts, .container live in the page <style>)
   -------------------------------------------------------------------------- */
:root { --accent-green: #7fad39; }

body { background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%); }


/* --------------------------------------------------------------------------
   3. Page Layout Grid
   -------------------------------------------------------------------------- */
.video-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
    direction: rtl;
}

.video-main,
.video-side {
    min-width: 0;
}

/* --------------------------------------------------------------------------
   4. Video Player Section
   -------------------------------------------------------------------------- */
.video-player-section {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.breadcrumb-nav {
    padding: 20px 0;
    margin-bottom: 20px;
    direction: rtl;
    text-align: right;
}
.breadcrumb-nav .breadcrumb-current {
    color: #ccc;
    margin: 0;
}
.breadcrumb-nav a {
    color: var(--accent-green);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-nav a:hover {
    color: #fff;
}

.breadcrumb-nav span {
    color: #888;
    margin: 0 10px;
}

.main-video-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(127, 173, 57, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.video-player {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
}

.video-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    outline: none;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   5. Video Info Box
   -------------------------------------------------------------------------- */
.video-info-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 35px;
    border: 1px solid rgba(127, 173, 57, 0.1);
    direction: rtl;
    text-align: right;
}

.video-title h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.5;
    border-bottom: 2px solid rgba(127, 173, 57, 0.2);
    padding-bottom: 20px;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
}

.action-btn {
    background: rgba(127, 173, 57, 0.15);
    border: 2px solid rgba(127, 173, 57, 0.4);
    color: var(--accent-green);
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Vazirmatn', sans-serif;
    text-decoration: none;
}

.action-btn:hover {
    background: rgba(127, 173, 57, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(127, 173, 57, 0.3);
}

.action-btn i {
    font-size: 18px;
}

/* --------------------------------------------------------------------------
   6. How-To Content
   -------------------------------------------------------------------------- */
.how-to-section {
    margin-bottom: 35px;
}

.how-to-section h3 {
    color: var(--accent-green);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.how-to-section h3 i {
    font-size: 26px;
}

.how-to-content {
    background: rgba(127, 173, 57, 0.05);
    border-right: 4px solid var(--accent-green);
    padding: 25px;
    border-radius: 12px;
}

.how-to-content h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 20px;
}

.how-to-content h4:first-child {
    margin-top: 0;
}

.how-to-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.how-to-content ul li {
    color: #b0b0b0;
    font-size: 16px;
    line-height: 2;
    padding-right: 30px;
    position: relative;
    margin-bottom: 12px;
}

.how-to-content ul li:before {
    content: "\2713";
    position: absolute;
    right: 0;
    color: var(--accent-green);
    font-weight: 900;
    font-size: 18px;
}

.how-to-content p {
    color: #b0b0b0;
    font-size: 16px;
    line-height: 2;
    margin-bottom: 15px;
}

/* Warning / common mistakes */
.warning-box {
    background: rgba(244, 67, 54, 0.1);
    border-right: 4px solid #f44336;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.warning-box h5 {
    color: #f44336;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-box h5 i {
    font-size: 20px;
}

.warning-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.warning-box ul li {
    color: #ffcdd2;
    font-size: 15px;
    line-height: 1.8;
    padding-right: 25px;
    position: relative;
    margin-bottom: 8px;
}

.warning-box ul li:before {
    content: "\2717";
    position: absolute;
    right: 0;
    color: #f44336;
    font-weight: 900;
    font-size: 16px;
}

/* --------------------------------------------------------------------------
   7. Related Videos Sidebar
   -------------------------------------------------------------------------- */
.related-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(127, 173, 57, 0.1);
    position: sticky;
    top: 110px;
    direction: rtl;
}

.related-section h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(127, 173, 57, 0.2);
}

.related-video-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

a.related-video-item {
    text-decoration: none;
    color: inherit;
}

.related-video-item:hover {
    background: rgba(127, 173, 57, 0.1);
    border-color: rgba(127, 173, 57, 0.3);
    transform: translateX(-5px);
}

.related-thumb {
    position: relative;
    width: 140px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-duration {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.related-info h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-category {
    display: inline-block;
    background: rgba(127, 173, 57, 0.2);
    color: var(--accent-green);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(127, 173, 57, 0.3);
}

/* --------------------------------------------------------------------------
   8. Share Modal
   -------------------------------------------------------------------------- */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.share-modal.active {
    display: flex;
}

.share-content {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(127, 173, 57, 0.3);
    direction: rtl;
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.share-header h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.close-modal {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.share-btn-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(127, 173, 57, 0.1);
    border: 1px solid rgba(127, 173, 57, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn-social:hover {
    background: rgba(127, 173, 57, 0.2);
    transform: translateY(-3px);
}

.share-btn-social i {
    font-size: 28px;
    color: var(--accent-green);
}

.share-btn-social span {
    color: #b0b0b0;
    font-size: 12px;
    font-weight: 600;
}

.copy-link-section {
    padding-top: 25px;
    border-top: 1px solid rgba(127, 173, 57, 0.2);
}

.copy-link-wrapper {
    display: flex;
    gap: 10px;
}

.copy-link-wrapper input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(127, 173, 57, 0.3);
    padding: 14px 18px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-family: 'Vazirmatn', sans-serif;
}

.copy-btn {
    background: var(--accent-green);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}

.copy-btn:hover {
    background: #6a9433;
    transform: translateY(-2px);
}

.copy-btn.copied {
    background: #4caf50;
}


/* --------------------------------------------------------------------------
   10. Accessibility
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
video:focus-visible,
input:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* --------------------------------------------------------------------------
   12. Responsive — 992px
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .video-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .related-section {
        position: static;
        margin-top: 30px;
    }
}

/* --------------------------------------------------------------------------
   13. Responsive — 768px
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Video section */
    .video-player-section {
        padding: 100px 0 60px;
    }
    /* Video section */
    .video-player-section {
        padding: 100px 0 60px;
    }

    .video-title h1 {
        font-size: 26px;
    }

    .video-info-box {
        padding: 25px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .how-to-section h3 {
        font-size: 20px;
    }

    .how-to-content {
        padding: 20px;
    }

    .related-thumb {
        width: 100px;
        height: 56px;
    }

    .related-info h4 {
        font-size: 13px;
    }

}
.how-to-content a,
.how-to-section a {
    color: #7fad39;
    text-decoration: none;
    border-bottom: 1px solid rgba(127, 173, 57, 0.4);
    transition: color 0.2s, border-color 0.2s;
}

.how-to-content a:hover,
.how-to-section a:hover {
    color: #9bc94f;
    border-bottom-color: #9bc94f;
}

.how-to-content a:visited,
.how-to-section a:visited {
    color: #7fad39;
}
/* --------------------------------------------------------------------------
   14. Responsive — 480px
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .video-title h1 {
        font-size: 22px;
    }

    .share-content {
        padding: 25px;
    }

    .share-options {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* --------------------------------------------------------------------------
   15. English (LTR) overrides
   -------------------------------------------------------------------------- */
html[lang="en"] .video-layout,
html[lang="en"] .breadcrumb-nav,
html[lang="en"] .video-info-box,
html[lang="en"] .related-section,
html[lang="en"] .share-content { direction: ltr; }

html[lang="en"] .breadcrumb-nav,
html[lang="en"] .video-info-box { text-align: left; }

html[lang="en"] .how-to-content { border-right: none; border-left: 4px solid var(--accent-green); }
html[lang="en"] .warning-box    { border-right: none; border-left: 4px solid #f44336; }

html[lang="en"] .how-to-content ul li { padding-right: 0; padding-left: 30px; }
html[lang="en"] .how-to-content ul li:before { right: auto; left: 0; }
html[lang="en"] .warning-box ul li { padding-right: 0; padding-left: 25px; }
html[lang="en"] .warning-box ul li:before { right: auto; left: 0; }

html[lang="en"] .related-video-item:hover { transform: translateX(5px); }
html[lang="en"] .related-duration { left: auto; right: 5px; }

html[lang="en"] .action-btn,
html[lang="en"] .copy-btn,
html[lang="en"] .copy-link-wrapper input { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.share-modal { padding: 20px; }

.share-content {
    width: 100%;
    max-width: 500px;
    min-width: 0;
    box-sizing: border-box;
}

.share-btn-social { min-width: 0; }
.share-btn-social span { overflow-wrap: anywhere; }
.copy-link-wrapper input { min-width: 0; }

@media (max-width: 600px) {
    .share-content { padding: 25px 20px; }
    .share-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .share-btn-social { padding: 16px 8px; }
}