@import 'default-styles.css';

body {
    position: relative;
}

/* Navbar styles  */


.navbar {
    background-color: #ffffff;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 500;
}


.navbar__logo {
    display: flex;
    align-items: center;
    margin-left: 20px;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.navbar__logo-img,
.sidebar-logo__img {
    height: 50px;
    margin-left: 15px;
}

.navbar__logo-text,
.sidebar__logo-text {
    font-weight: bold;
    font-size: 20px;
    color: #333;
}

.navbar-Menu {
    display: flex;
    align-items: center;
    margin-left: 40px;
}

.navbar-Menu__link {
    margin: 0 15px;
    text-decoration: none;
    color: #555;
}

.dropdown {
    position: relative;
    /* display: inline-block;
            transition: all 250ms ease; */
}

.dropdown-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    z-index: 1;
    text-align: right;
    right: 0;
    top: 25px;
    border-radius: 8px;
}




.open-menu__icon {
    display: none;
    border: none;
    background-color: transparent;

}

.open-menu__icon i {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* sidebar */


.sidebar {
    position: absolute;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    top: -100px;
    bottom: 0;
    right: -300px;
    min-width: 300px;
    z-index: 10000;
    padding: 20px;
    transition: all 250ms ease-in-out;
    display: none;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    /* margin-left: 20px; */
    margin-top: 20px;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}


.sidebar-Menu {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
}

.sidebar-Menu__link {
    margin-bottom: 20px;
    color: black;
    transition: all 250ms ease;
}

.sidebar-Menu__link:hover {
    color: var(--primary-color);
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: black;
    transition: all 250ms ease;
    cursor: pointer;
}

.sidebar-link i {
    transition: all 250ms ease;
}

.sidebar-dropdown-content {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    align-items: center;
    /* background-color: #b5b5b5; */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    padding-top: 20px;
    transition: all 250ms ease;
}

.dropdown-active {
    opacity: 100;
    visibility: visible;
}

.sidebar-dropdown-content>* {
    margin-bottom: 20px;
    color: #555;
}

.sidebar-dropdown-content>*:hover {
    color: var(--primary-color);
}

/* videos */



.video-card {
    transition: transform 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    background-color: white;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background-color: #000;
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #2c3e50;
}

.video-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.download-btn {
    width: 100%;
    padding: 0.8rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.download-btn:hover {
    background-color: #0056b3;
    color: white;
}

.download-btn i {
    font-size: 1.2rem;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.video-size {
    background-color: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.section {
    margin-bottom: 3rem;
}

.section-title {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: bold;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 2rem;
    text-align: center;
}

.section-card {
    transition: transform 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    background-color: white;
    text-decoration: none;
    color: inherit;
    display: block;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.section-thumbnail {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background-color: #000;
    overflow: hidden;
}

.section-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.section-card:hover .section-thumbnail img {
    transform: scale(1.05);
}

.section-info {
    padding: 1.5rem;
}

.section-description {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.section-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.video-count {
    background-color: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* اضافه کردن استایل hover برای لینک رهرو سیستم */
a[href="index.html"]:hover {
    color: #007bff !important;
}

a[href="index.html"]:hover div {
    color: #007bff !important;
}

/* Styles for dropdown menu */



.dropdown:hover .dropdown-content {
    transition: all 300ms ease;
    visibility: visible;
    opacity: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}



nav a:hover {
    color: #007bff !important;

}

/* overlay */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 300ms ease;
    display: none;
}




.back-btn {
    background-color: var(--primary-color);
    color: white;
    padding: .5rem;
    border-radius: 5px;

}




/* Media Query */

@media (max-width: 1200px) {}

@media (max-width: 1080px) {

    .navbar-Menu__link {
        margin: 0 7px;
    }




}


@media (max-width: 992px) {
    .navbar {
        justify-content: center;
    }
}


@media (max-width: 768px) {
    .navbar {
        justify-content: space-between;
    }

    .navbar-Menu {
        display: none;
    }

    .open-menu__icon {
        display: block;
    }

    .sidebar {
        display: block;
    }


}


@media (max-width: 576px) {}


@media (max-width: 400px) {}