/* Course Creation Guide Styles - Updated */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow: hidden;
}

/* Guide Overlay - Updated to black background */
.guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main Container */
.guide-container {
    width: 95%;
    max-width: 1000px;
    height: 95vh;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Header - Updated with black text and contrast */
.guide-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
    z-index: 1;
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 20px 20px 0 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-section i {
    font-size: 2rem;
    color: #F38E20;
}

.logo-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff; /* White text for contrast on dark background */
}

.header-controls {
    display: flex;
    gap: 15px;
}

.audio-toggle, .close-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-toggle:hover, .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.audio-toggle.active {
    background: #F38E20;
    color: white;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #F38E20, #D42027);
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 14.28%; /* 1/7 slides */
}

/* Slides Container */
.slides-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    padding: 3rem 2rem 2rem;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #F38E20 transparent;
}

.slide::-webkit-scrollbar {
    width: 6px;
}

.slide::-webkit-scrollbar-track {
    background: transparent;
}

.slide::-webkit-scrollbar-thumb {
    background: #F38E20;
    border-radius: 3px;
}

.slide.active {
    left: 0;
    opacity: 1;
    transform: translateX(0);
}

.slide.prev {
    left: -100%;
    transform: translateX(-100px);
}

/* Slide Content */
.slide-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.slide-icon {
    font-size: 4rem;
    color: #F38E20;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

.slide-icon.celebration {
    color: #D42027;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.slide h2 {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.slide-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* Features Preview */
.features-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2.5rem;
    color: #F38E20;
}

.feature-item span {
    font-weight: 600;
    color: #1a1a2e;
}

/* Audio Status */
.audio-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem;
    background: rgba(243, 142, 32, 0.1);
    border-radius: 10px;
    color: #F38E20;
    font-weight: 500;
}

/* Form Preview */
.form-preview {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    text-align: left;
}

.form-section {
    margin-bottom: 1.5rem;
}

.form-section label {
    display: block;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.form-section input,
.form-section select,
.form-section textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #666;
}

.form-section textarea {
    height: 80px;
    resize: vertical;
}

/* Layout Preview */
.layout-preview {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.module-item:hover {
    transform: translateX(10px);
}

.module-item i {
    font-size: 2rem;
    color: #F38E20;
}

.module-content h4 {
    color: #1a1a2e;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.module-content p {
    color: #666;
    font-size: 0.9rem;
}

/* Media Types */
.media-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.media-type {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.media-type:hover {
    transform: translateY(-5px);
}

.media-type i {
    font-size: 3rem;
    color: #F38E20;
    margin-bottom: 1rem;
}

.media-type h4 {
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.media-type p {
    color: #666;
    font-size: 0.9rem;
}

/* Upload Preview */
.upload-preview {
    margin-bottom: 2rem;
}

.upload-zone {
    border: 3px dashed #F38E20;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    background: rgba(243, 142, 32, 0.05);
    transition: all 0.3s ease;
}

.upload-zone:hover {
    background: rgba(243, 142, 32, 0.1);
    border-color: #D42027;
}

.upload-zone i {
    font-size: 3rem;
    color: #F38E20;
    margin-bottom: 1rem;
}

/* Preview Interface */
.preview-interface {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.preview-header {
    background: #1a1a2e;
    color: white;
    padding: 1.5rem;
}

.course-info h3 {
    margin-bottom: 0.5rem;
}

.course-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-content {
    padding: 1.5rem;
}

.lesson-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.lesson-item i {
    color: #F38E20;
}

.lesson-item span:last-child {
    margin-left: auto;
    color: #666;
    font-size: 0.9rem;
}

/* Publishing Steps */
.publishing-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #F38E20, #D42027);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
}

.step-content h4 {
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #666;
    font-size: 0.9rem;
}

/* Marketplace Preview */
.marketplace-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.course-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    text-align: center;
}

.course-image {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.course-details h4 {
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.course-details p {
    color: #666;
    margin-bottom: 1rem;
}

.course-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F38E20;
    margin-bottom: 0.5rem;
}

.course-rating {
    color: #666;
}

/* Success Stats */
.success-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

.stat-item i {
    font-size: 2.5rem;
    color: #F38E20;
    margin-bottom: 1rem;
}

.stat-item h4 {
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #666;
}

/* Buttons - Updated for better functionality */
.link-btn, .primary-action-btn, .secondary-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.link-btn {
    background: linear-gradient(135deg, #F38E20, #D42027);
    color: white;
}

.link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 142, 32, 0.3);
}

.primary-action-btn {
    background: linear-gradient(135deg, #F38E20, #D42027);
    color: white;
    font-size: 1.2rem;
    padding: 15px 30px;
}

.secondary-action-btn {
    background: transparent;
    color: #F38E20;
    border: 2px solid #F38E20;
}

.primary-action-btn:hover, .secondary-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

/* Tips and Info Boxes */
.tips-box, .ai-features, .organization-tips, .checklist, .optimization-tips, .next-steps {
    background: rgba(243, 142, 32, 0.05);
    border-left: 4px solid #F38E20;
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
    margin-top: 2rem;
    text-align: left;
}

.tips-box h4, .ai-features h4, .organization-tips h4, .checklist h4, .optimization-tips h4, .next-steps h4 {
    color: #F38E20;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tips-box ul, .ai-features ul, .organization-tips ul, .checklist ul, .optimization-tips ul, .next-steps ul {
    list-style: none;
    padding-left: 0;
}

.tips-box li, .ai-features li, .organization-tips li, .checklist li, .optimization-tips li, .next-steps li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.tips-box li::before, .ai-features li::before, .organization-tips li::before, .checklist li::before, .optimization-tips li::before, .next-steps li::before {
    content: "•";
    color: #F38E20;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Page Links */
.page-link {
    margin: 2rem 0;
}

/* Support Info */
.support-info {
    text-align: center;
    padding: 2rem;
    background: rgba(212, 32, 39, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(212, 32, 39, 0.1);
}

.support-info p {
    color: #D42027;
    margin-bottom: 1rem;
}

.support-link {
    color: #D42027;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.support-link:hover {
    border-color: #D42027;
}

/* Navigation - Updated for better functionality */
.guide-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #F38E20, #D42027);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.nav-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 142, 32, 0.3);
}

.nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Slide Indicators */
.slide-indicators {
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: linear-gradient(135deg, #F38E20, #D42027);
    transform: scale(1.2);
}

.indicator:hover {
    background: #F38E20;
}

/* AI Guide Avatar - Floating cartoon African woman */
.ai-guide-avatar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #F38E20, #D42027);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.ai-guide-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.ai-guide-avatar.speaking {
    animation: pulse 1s ease-in-out infinite;
}

.ai-guide-avatar .avatar-icon {
    font-size: 2.5rem;
    color: white;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Volume Control - More visible */
.volume-control {
    position: fixed;
    bottom: 120px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 25px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10002;
    transition: all 0.3s ease;
}

.volume-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.volume-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.volume-button.active {
    color: #F38E20;
    background: rgba(243, 142, 32, 0.2);
}

.volume-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .guide-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .guide-header {
        padding: 1rem;
        border-radius: 0;
    }

    .logo-section h1 {
        font-size: 1.4rem;
    }

    .slide {
        padding: 2rem 1rem 1rem;
    }

    .slide h2 {
        font-size: 2rem;
    }

    .slide-description {
        font-size: 1rem;
    }

    .features-preview,
    .media-types,
    .publishing-steps,
    .success-stats {
        grid-template-columns: 1fr;
    }

    .course-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

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

    .guide-navigation {
        padding: 1rem;
    }

    .nav-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .ai-guide-avatar {
        width: 60px;
        height: 60px;
        bottom: 15px;
        right: 15px;
    }

    .ai-guide-avatar .avatar-icon {
        font-size: 2rem;
    }

    .volume-control {
        bottom: 85px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .slide-icon {
        font-size: 3rem;
    }

    .slide h2 {
        font-size: 1.5rem;
    }

    .form-preview,
    .layout-preview,
    .preview-interface {
        padding: 1rem;
    }

    .module-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    .slide,
    .progress-fill,
    .nav-btn,
    .indicator,
    .feature-item,
    .module-item,
    .media-type,
    .upload-zone,
    .link-btn,
    .primary-action-btn,
    .secondary-action-btn,
    .ai-guide-avatar {
        transition: none;
        animation: none;
    }

    .slide-icon {
        animation: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .guide-container {
        border: 3px solid #000;
    }

    .nav-btn:disabled {
        background: #666;
        color: #ccc;
    }
}

/* Focus Indicators */
.nav-btn:focus,
.audio-toggle:focus,
.close-btn:focus,
.link-btn:focus,
.primary-action-btn:focus,
.secondary-action-btn:focus,
.indicator:focus,
.volume-button:focus {
    outline: 3px solid #F38E20;
    outline-offset: 2px;
}

/* Fix white highlight issues */
.logo-section h1 {
    background: none !important;
    text-shadow: none !important;
    position: relative;
    z-index: 2;
}

.header-content {
    background: none !important;
    position: relative;
    z-index: 2;
}

.guide-header * {
    background: none !important;
    text-shadow: none !important;
}

/* Remove any unwanted highlights */
.guide-header ::selection {
    background: rgba(243, 142, 32, 0.3);
    color: white;
}

.guide-header ::-moz-selection {
    background: rgba(243, 142, 32, 0.3);
    color: white;
}

/* Complete button visibility and styling */
.nav-btn:not(:disabled) {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.nav-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Ensure complete button stands out */
#nextBtn:not([disabled]) {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: white !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

#nextBtn:hover:not([disabled]) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

/* Last slide specific styling */
.slide:last-child .primary-action-btn {
    font-size: 1.3rem;
    padding: 18px 36px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
