/* ==========================================================================
   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. Reset & Base
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #D0F252;
    --secondary-color: #7FFF00;
    --accent-green: #7fad39;
    --dark-bg: #0a0a0a;
    --header-bg: rgba(255, 255, 255, 0.98);
    --text-dark: #333;
    --text-light: #fff;
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --------------------------------------------------------------------------
   2. Header / Navigation
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
}

.header .container {
    padding: 0;
    max-width: none;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--header-bg);
    padding: 15px 40px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    flex-direction: row-reverse;
}

/* Logo */
.logo {
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 28px;
    text-decoration: none;
}

.logo img {
    height: 100%;
    width: auto;
}

/* Menu */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 25px;
    flex: 1;
    justify-content: center;
    direction: rtl;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 0;
    transition: color 0.3s ease;
    direction: rtl;
}

.nav-link:hover {
    color: #666;
}

.dropdown-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
    text-align: right;
    background: #fff;
    list-style: none;
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Sign-in button */
.btn-signin {
    background: var(--primary-color);
    color: var(--text-dark);
    padding: 10px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(208, 242, 82, 0.3);
}

.btn-signin:hover {
    background: #bce047;
    box-shadow: 0 4px 15px rgba(208, 242, 82, 0.5);
    transform: translateY(-2px);
}

/* Authenticated state */
.btn-signin.user-panel-btn,
.btn-signin-mobile.user-panel-btn {
    background: var(--accent-green);
    color: #ffffff;
}

.btn-signin.user-panel-btn:hover,
.btn-signin-mobile.user-panel-btn:hover {
    background: #6a9632;
}

.btn-signin i,
.btn-signin-mobile i {
    margin-left: 5px;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-signin {
    display: none;
}

/* --------------------------------------------------------------------------
   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;
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.footer {
    background: #000000;
    color: #ffffff;
    padding: 60px 0 30px;
    direction: rtl;
    text-align: right;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 2fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-about {
    max-width: 400px;
    order: 4;
}

.footer-logo {
    margin-bottom: 20px;
    height: 40px;
}

.footer-logo img {
    height: 100%;
    width: auto;
}

.footer-description {
    color: #999999;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
    text-align: right;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    align-items: flex-start;
    order: 1;
}

/* Trust seals */
.trust-seals {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
    justify-content: flex-start;
}

.trust-seal-link {
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.trust-seal-link:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 5px 15px rgba(208, 242, 82, 0.4));
}

.trust-seal-img {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* Social icons */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000000;
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 25px;
    text-align: center;
}

.footer-copyright {
    color: #666666;
    font-size: 13px;
    margin: 0;
}

.vinnonis-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.vinnonis-link:hover {
    color: #bce047;
}

/* --------------------------------------------------------------------------
   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;
    }
}

/* --------------------------------------------------------------------------
   11. Responsive — 1100px
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .nav-menu {
        gap: 18px;
    }

    .nav-link {
        font-size: 13px;
    }
}

/* --------------------------------------------------------------------------
   12. Responsive — 992px
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .nav-menu {
        gap: 15px;
    }

    .nav-link {
        font-size: 13px;
    }

    .video-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

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

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-about {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .footer-social {
        align-items: flex-start;
    }
}

/* --------------------------------------------------------------------------
   13. Responsive — 768px
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .header {
        top: 10px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        transform: translateX(0);
        margin: 0;
    }

    .navbar {
        padding: 12px 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .btn-signin {
        display: none;
    }

    .mobile-signin {
        display: block;
        margin-top: 20px;
    }

    .btn-signin-mobile {
        display: block;
        background: var(--primary-color);
        color: var(--text-dark);
        padding: 12px 30px;
        border-radius: 6px;
        text-decoration: none;
        font-weight: 600;
        text-align: center;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        height: calc(100vh - 100px);
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 20px;
        gap: 0;
        overflow-y: auto;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        transform: translateX(-150%);
        border-radius: 20px;
        justify-content: flex-start;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-link {
        padding: 15px 0;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }

    /* 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;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-about {
        grid-column: 1;
    }

    .footer-logo {
        height: 35px;
        margin-bottom: 15px;
    }

    .footer-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .trust-seals {
        margin-bottom: 20px;
        gap: 12px;
    }

    .trust-seal-img {
        width: 75px;
        height: 75px;
    }

    .social-icons {
        gap: 12px;
    }

    .social-link {
        width: 38px;
        height: 38px;
    }
}

/* --------------------------------------------------------------------------
   14. Responsive — 480px
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header {
        top: 10px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        transform: translateX(0);
        margin: 0;
    }

    .navbar {
        padding: 10px 15px;
    }

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

    .share-content {
        padding: 25px;
    }

    .share-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer {
        padding: 30px 0 15px;
    }

    .footer-content {
        gap: 25px;
    }

    .footer-description {
        font-size: 13px;
        line-height: 1.7;
    }

    .trust-seals {
        justify-content: center;
        gap: 10px;
    }

    .trust-seal-img {
        width: 70px;
        height: 70px;
    }

    .footer-copyright {
        font-size: 12px;
    }
}
