/* LearnFlash Course Structure Shortcode Styles */

.learnflash-sales-structure {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.learnflash-course-title {
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
}

.learnflash-modules-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
}

.learnflash-module-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.learnflash-module-hidden {
    display: none;
}

.learnflash-module-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.learnflash-module-header {
    display: flex;
    align-items: center;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f3f4f6 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.learnflash-module-number {
    font-size: 1.5em;
    font-weight: 700;
    color: #3e64ff;
    margin-right: 15px;
    min-width: 35px;
}

.learnflash-module-title {
    font-size: 1.4em;
    margin: 0;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.3;
}

.learnflash-module-content {
    padding: 25px;
    color: #4a5568;
    line-height: 1.7;
    font-size: 1.05em;
}

.learnflash-module-content p {
    margin-bottom: 1em;
}

.learnflash-module-content p:last-child {
    margin-bottom: 0;
}

/* Topics Toggle */
.learnflash-topics-toggle {
    margin-top: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.learnflash-topics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    background-color: rgba(62, 100, 255, 0.04);
}

.learnflash-topics-header:hover {
    background-color: rgba(62, 100, 255, 0.08);
}

.learnflash-topics-count {
    font-weight: 600;
    color: #4a5568;
    font-size: 1.05em;
}

.learnflash-toggle-icon {
    color: #3e64ff;
    display: inline-flex;
    align-items: center;
}

.learnflash-toggle-icon .lf-icon {
    width: 1.4em;
    height: 1.4em;
    transition: transform 0.3s ease;
}

.learnflash-topics-content {
    padding: 0 25px 25px;
    background-color: rgba(62, 100, 255, 0.02);
}

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

.learnflash-topic-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.learnflash-topic-item:last-child {
    border-bottom: none;
}

.learnflash-topic-icon {
    color: #3e64ff;
    font-size: 0.8em;
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
}

.learnflash-topic-icon .lf-icon {
    width: 0.7em;
    height: 0.7em;
}

.learnflash-topic-title {
    color: #2d3748;
    font-size: 1.05em;
}

.learnflash-error {
    color: #e53e3e;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    background-color: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 8px;
}

.learnflash-no-modules {
    text-align: center;
    color: #718096;
    padding: 40px 20px;
    font-size: 1.1em;
}

/* Modules toggle and fader */
.learnflash-modules-fader {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 80%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    z-index: 2;
}

.learnflash-modules-fader.hidden {
    display: none;
}

.learnflash-modules-toggle {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    position: relative;
    z-index: 3;
}

.learnflash-toggle-button {
    background: linear-gradient(135deg, #3e64ff 0%, #2a4cd2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(62, 100, 255, 0.3);
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.02em;
}

.learnflash-toggle-button:hover {
    background: linear-gradient(135deg, #2a4cd2 0%, #1e3ba8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 100, 255, 0.4);
}

.learnflash-toggle-button:active {
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .learnflash-sales-structure {
        padding: 15px;
    }
    
    .learnflash-module-header {
        padding: 20px;
    }
    
    .learnflash-module-number {
        font-size: 1.3em;
    }
    
    .learnflash-module-title {
        font-size: 1.2em;
    }
    
    .learnflash-module-content {
        padding: 20px;
        font-size: 1em;
    }
    
    .learnflash-topics-header {
        padding: 15px 20px;
    }
    
    .learnflash-topics-content {
        padding: 0 20px 20px;
    }
    
    .learnflash-topics-count {
        font-size: 1em;
    }
    
    .learnflash-topic-title {
        font-size: 1em;
    }
    
    .learnflash-modules-fader {
        bottom: 70px;
        height: 100px;
    }
    
    .learnflash-toggle-button {
        padding: 12px 24px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .learnflash-modules-container {
        gap: 20px;
    }
    
    .learnflash-module-header {
        padding: 15px;
    }
    
    .learnflash-module-content {
        padding: 15px;
    }
    
    .learnflash-toggle-button {
        padding: 10px 20px;
        font-size: 0.95em;
    }
}