/* Post Course Modern Styles - Masterclass/Netflix Style */

.post-course-page {
    background-color: var(--dark-bg, #0b0e11);
    color: #fff;
    min-height: 100vh;
    padding-bottom: 60px;
}

.course-hero {
    position: relative;
    min-height: 52vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 40px;
}

@media (max-width: 991px) {
    .course-hero .hero-content {
        padding: 100px 0 40px;
    }
}

@media (max-width: 768px) {
    .course-hero {
        margin-bottom: 5px;
    }
}


/* Current Module Header */
.current-module-header {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Current Module Header - Compact Version */
.current-module-header-compact {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.module-header-main {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.module-header-main:hover {
    background: rgba(255, 255, 255, 0.02);
}

.module-badge-compact {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color, #436E67) 0%, rgba(67, 110, 103, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.module-badge-compact .badge-number {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.module-title-compact {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

.module-selector-toggle {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.module-selector-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color, #436E67);
    color: var(--primary-color, #436E67);
}

.module-selector-toggle i {
    transition: transform 0.3s ease;
}

.module-selector-toggle.active i {
    transform: rotate(180deg);
}

/* Module Selector Dropdown */
.module-selector-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.module-selector-dropdown.active {
    max-height: 350px;
    overflow-y: auto;
}

.module-selector-list {
    padding: 8px;
}

.module-selector-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.module-selector-item:last-child {
    margin-bottom: 0;
}

.module-selector-item:hover {
    background: rgba(67, 110, 103, 0.1);
    border-color: var(--primary-color, #436E67);
}

.module-selector-item.active {
    background: rgba(67, 110, 103, 0.15);
    border-color: var(--primary-color, #436E67);
}

.selector-item-number {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(67, 110, 103, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.module-selector-item.active .selector-item-number {
    background: var(--primary-color, #436E67);
}

.selector-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.selector-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.selector-item-files {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 4px;
}

.selector-item-files i {
    font-size: 13px;
    color: var(--primary-color, #436E67);
}

/* Hide module selector toggle on desktop */
@media (min-width: 992px) {
    .module-selector-toggle {
        display: none;
    }
    
    .module-selector-dropdown {
        display: none;
    }
}

.module-badge {
    background: linear-gradient(135deg, rgba(67, 110, 103, 0.2) 0%, rgba(67, 110, 103, 0.1) 100%);
    border: 1px solid var(--primary-color, #436E67);
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    min-width: 80px;
    flex-shrink: 0;
}

.badge-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-color, #436E67);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.badge-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.module-header-info {
    flex: 1;
}

.module-header-info h2 {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.module-header-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
}

/* Course Modules Card */
.course-modules-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.modules-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modules-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.modules-header h3 i {
    color: var(--primary-color, #436E67);
    font-size: 20px;
}

.modules-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Modules List */
.modules-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom Scrollbar for Modules List */
.modules-list::-webkit-scrollbar {
    width: 6px;
}

.modules-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modules-list::-webkit-scrollbar-thumb {
    background: rgba(67, 110, 103, 0.5);
    border-radius: 10px;
}

.modules-list::-webkit-scrollbar-thumb:hover {
    background: rgba(67, 110, 103, 0.7);
}

.module-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.module-item:hover {
    background: rgba(67, 110, 103, 0.1);
    border-color: var(--primary-color, #436E67);
    transform: translateX(4px);
    text-decoration: none;
    color: inherit;
}

.module-item.active {
    background: rgba(67, 110, 103, 0.15);
    border-color: var(--primary-color, #436E67);
    box-shadow: 0 0 0 2px rgba(67, 110, 103, 0.1);
}

.module-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(67, 110, 103, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.module-item.active .module-number {
    background: var(--primary-color, #436E67);
}

.module-number .number {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.module-info {
    flex: 1;
}

.module-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.module-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.module-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.meta-badge i {
    font-size: 12px;
    color: var(--primary-color, #436E67);
}

.module-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.module-item:hover .module-arrow {
    color: var(--primary-color, #436E67);
    transform: translateX(4px);
}

.module-item.active .module-arrow {
    color: var(--primary-color, #436E67);
}

/* Course Preview (for non-purchasers) */
.course-preview-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 30px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.preview-header h3 i {
    color: var(--primary-color, #436E67);
    font-size: 22px;
}

.preview-modules-list {
    margin-bottom: 28px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom Scrollbar for Preview Modules List */
.preview-modules-list::-webkit-scrollbar {
    width: 6px;
}

.preview-modules-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.preview-modules-list::-webkit-scrollbar-thumb {
    background: rgba(67, 110, 103, 0.5);
    border-radius: 10px;
}

.preview-modules-list::-webkit-scrollbar-thumb:hover {
    background: rgba(67, 110, 103, 0.7);
}

.preview-module-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 8px;
}

.preview-module-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.preview-module-info {
    flex: 1;
}

.preview-module-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 4px 0;
}

.preview-module-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.preview-lock-icon {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.preview-features {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-features h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px 0;
}

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

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.features-list i {
    color: var(--primary-color, #436E67);
    font-size: 18px;
    flex-shrink: 0;
}

/* Current Module Downloads */
.current-module-downloads {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.current-module-downloads h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-module-downloads h4 i {
    color: var(--primary-color, #436E67);
    font-size: 18px;
}

.module-files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* GP File Selector - Compact Dropdown */
.tab-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tab-header-title h3 {
    margin: 0;
}

.gp-file-selector-dropdown {
    position: relative;
}

.gp-selector-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gp-selector-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color, #436E67);
}

.gp-selector-toggle.active {
    background: rgba(67, 110, 103, 0.15);
    border-color: var(--primary-color, #436E67);
}

.current-gp-file {
    font-weight: 500;
    color: #fff;
}

.gp-selector-toggle i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.gp-selector-toggle.active i {
    transform: rotate(180deg);
}

.gp-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: rgba(20, 25, 30, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    padding: 6px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

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

.gp-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.gp-dropdown-item:hover {
    background: rgba(67, 110, 103, 0.1);
    color: #fff;
}

.gp-dropdown-item.active {
    background: rgba(67, 110, 103, 0.15);
    color: #fff;
}

.gp-dropdown-item > i:first-child {
    color: var(--primary-color, #436E67);
    font-size: 16px;
    flex-shrink: 0;
}

.gp-dropdown-item span {
    flex: 1;
    font-weight: 500;
}

.gp-dropdown-item .gp-check {
    color: transparent;
    font-size: 18px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.gp-dropdown-item.active .gp-check {
    color: var(--primary-color, #436E67);
}

.module-selector-item {
    text-decoration: none;
    color: inherit;
}

.module-selector-item:hover {
    text-decoration: none;
    color: inherit;
}

/* Download Groups */
.download-group {
    margin-bottom: 24px;
}

.download-group:last-child {
    margin-bottom: 16px;
}

.download-group-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.group-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color, #436E67);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.group-badge i {
    font-size: 16px;
}

.group-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Responsive */
@media (max-width: 991px) {
    .current-module-header {
        flex-direction: column;
        gap: 16px;
    }

    .module-badge {
        width: 100%;
        max-width: 120px;
    }

    .module-header-info h2 {
        font-size: 20px;
    }
    
    .tab-header-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .gp-dropdown-menu {
        right: 0;
        left: auto;
    }
}

@media (max-width: 768px) {
    .course-modules-card,
    .course-preview-card,
    .current-module-downloads {
        padding: 20px;
    }

    .module-item {
        padding: 12px;
        gap: 12px;
    }

    .module-number {
        width: 36px;
        height: 36px;
    }

    .module-number .number {
        font-size: 14px;
    }

    .module-title {
        font-size: 14px;
    }

    .module-description {
        font-size: 12px;
    }
}
