@import url('font.css');

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: #1e1e1e;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    border: 1px solid #333;
}

.content {
    display: flex
;
    gap: 20px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    color: #6c63ff;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 15px;
}

.back-link i {
    margin-left: 8px;
    font-size: 14px;
}

.back-link:hover {
    color: #857dff;
}

.course-title-main {
    color: #fff;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
    font-size: 26px;
}

/* استایل تب‌ها */
.tabs-container {
    margin-top: 20px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
    flex-wrap:wrap;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    color: #aaa;
    font-family: YekanBakh;
    font-size: 15px;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
}

.tab-btn i {
    margin-left: 8px;
    font-size: 16px;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #6c63ff;
    border-bottom: 2px solid #6c63ff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.course-description {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #ccc;
    font-size: 16px;
}

.code-container {
    margin-top: 10px;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    direction: ltr;
}

.code-header {
    background: #2d2d2d;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e0e0e0;
    border-bottom: 1px solid #333;
}

.copy-btn {
    background: #6c63ff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: YekanBakh;
    font-size: 13px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap:10px;
}

.copy-btn i {
    margin-left: 5px;
}

.copy-btn:hover {
    background: #5a52d5;
}

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

pre {
    margin: 0;
    background: #1e1e1e !important;
    max-height: 500px;
    overflow: auto;
}

code {
    border-radius: 0;
    background: #1e1e1e !important;
    padding: 15px !important;
    font-size: 14px;
}

/* استایل برای هایلایت سینتکس در حالت دارک */
.hljs {
    background: #1e1e1e !important;
    color: #e0e0e0 !important;
}

/* اسکرول بار برای pre */
pre::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

pre::-webkit-scrollbar-track {
    background: #2d2d2d;
}

pre::-webkit-scrollbar-thumb {
    background: #6c63ff;
    border-radius: 4px;
}

pre::-webkit-scrollbar-thumb:hover {
    background: #5a52d5;
}

/* استایل‌های جدید برای بخش سایدبار و لایک */
.main-content-wrapper {
    display: flex;
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 25px;
}

.container {
    flex: 1;
    max-width: 1000px;
    margin: 0;
}

.course-sidebar {
    width: 300px;
    background: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    border: 1px solid #333;
    align-self: flex-start;
}

.sidebar-widget {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-widget h3 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2d2d2d;
    color: #e0e0e0;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
    font-family: YekanBakh;
    gap:10px;
}

.share-btn:hover {
    background: #3d3d3d;
}

.like-section {
    text-align: center;
}

.like-btn {
    display: inline-flex
;
    align-items: center;
    justify-content: center;
    background: #2d2d2d;
    color: #e0e0e0;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
    font-size: 24px;
    padding: 10px;
}

.like-btn:hover {
    background: #3d3d3d;
    transform: scale(1.05);
}

.like-btn.liked {
    background: #ff3e3e;
    color: #fff;
}

.like-btn.liked:hover {
    background: #ff2a2a;
}

.like-count {
    margin-right: 5px;
    font-size: 18px;
    font-weight: bold;
}

.like-message {
    color: #ccc;
    margin: 0;
    font-size: 14px;
}


/* رسپانسیو برای موبایل */
@media (max-width: 992px) {
    .main-content-wrapper {
        flex-direction: column;
    }
    
    .course-sidebar {
        width: 100%;
        margin-top: 20px;
    }
    
    .content {
    flex-direction: column;
}

.tab-btn {
    font-size:13px;
}


div#playerRecommendation {
    display: none;
}

pre {

    max-height: 200px;
}
.romeo-recom.show {
    display: none !important;
}

}