/* Trading Psychology Styles */

/* Course Content Layout */
.course-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    color: white;
}

.course-intro {
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 40px;
    border-radius: 15px;
    border: 2px solid #3c266e;
}

.course-intro h2 {
    margin-bottom: 20px;
    color: #3c266e;
    font-size: 28px;
}

.course-intro p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #ccc;
}

.important-note {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    color: #ffd700;
}

/* Strategy Categories */
.strategy-category {
    margin: 50px 0;
}

.strategy-category h3 {
    color: #3c266e;
    font-size: 24px;
    margin-bottom: 30px;
    text-align: left;
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Course Module Cards */
.course-module {
    background: #100a1f;
    border: 2px solid #3c266e;
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    color: white;
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(60, 38, 110, 0.3);
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-module:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(60, 38, 110, 0.5);
    border-color: #5a3f8f;
}

.module-number {
    background: #3c266e;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    align-self: flex-start;
    margin-bottom: 15px;
}

.module-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
    line-height: 1.3;
}

.module-description {
    color: #ccc;
    font-size: 15px;
    line-height: 1.5;
    margin-top: auto;
}

/* Progress Tracker */
.progress-tracker {
    background: #1a1a2e;
    border: 2px solid #3c266e;
    border-radius: 15px;
    padding: 40px;
    margin: 50px 0;
}

.progress-tracker h3 {
    color: #3c266e;
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

/* Navigation Styles */
.main-navbar {
    background: #0a0517;
    border-bottom: 2px solid #3c266e;
    padding: 15px 0;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-link {
    color: white !important;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #5a3f8f !important;
}

.nav-link.active {
    color: white !important;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #3c266e;
}

.nav-link.disabled {
    color: #666 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .course-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .course-module {
        height: auto;
        min-height: 180px;
    }

    .course-intro {
        padding: 25px;
    }

    .course-intro h2 {
        font-size: 24px;
    }

    .course-intro p {
        font-size: 16px;
    }

    .progress-tracker {
        padding: 25px;
    }
}

.psychology-intro {
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 40px;
    border-radius: 15px;
    border: 2px solid #3c266e;
}

.psychology-intro h2 {
    margin-bottom: 20px;
    color: #3c266e;
    font-size: 28px;
}

.psychology-intro p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #ccc;
}

.psychology-warning {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.psychology-warning strong {
    color: #f44336;
}

/* Psychology Topics */
.psychology-topic {
    margin-bottom: 40px;
    background: #100a1f;
    border: 2px solid #3c266e;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(60, 38, 110, 0.3);
}

.psychology-topic h3 {
    color: #3c266e;
    margin-bottom: 20px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.psychology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.psychology-card {
    background: rgba(60, 38, 110, 0.1);
    border: 1px solid rgba(60, 38, 110, 0.3);
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
}

.psychology-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(60, 38, 110, 0.4);
    border-color: #5a3f8f;
}

.psychology-card h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.psychology-card p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.psychology-tips {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.psychology-tips li {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    line-height: 1.5;
}

.psychology-tips li::before {
    content: "💡";
    position: absolute;
    left: 0;
    top: 0;
}

/* Emotion Cards */
.emotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.emotion-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #3c266e;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.emotion-card:hover {
    background: rgba(60, 38, 110, 0.1);
    transform: scale(1.02);
}

.emotion-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

.emotion-card h5 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 16px;
}

.emotion-card p {
    color: #ccc;
    font-size: 13px;
    line-height: 1.5;
}

/* Highlight Boxes */
.psychology-highlight {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.psychology-highlight strong {
    color: #ffd700;
}

/* Universal Font Family for all text elements */
.psychology-intro p,
.psychology-topic p,
.psychology-card p,
.psychology-tips li,
.emotion-card p,
.psychology-highlight p,
.key-takeaway p,
.key-takeaway li,
h1, h2, h3, h4, h5, h6,
p, li, span, div {
    font-family: "Manrope", sans-serif !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .psychology-intro {
        padding: 25px;
    }

    .psychology-intro h2 {
        font-size: 24px;
    }

    .psychology-intro p {
        font-size: 16px;
    }

    .psychology-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .psychology-topic {
        padding: 20px;
    }

    .psychology-card {
        padding: 20px;
    }

    .emotion-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .emotion-card {
        padding: 15px;
    }

    .emotion-icon {
        font-size: 30px;
    }

    /* Mobile heading fixes */
    .lesson-header h1 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
    }

    /* Entspannungstechniken specific fix */
    .lesson-header h1:contains("Entspannungstechniken") {
        font-size: 1.6rem !important;
    }

    /* Key takeaways mobile fix */
    .key-takeaway {
        background: #100a1f !important;
        border: 2px solid #3c266e !important;
        padding: 25px !important;
        border-radius: 10px !important;
        margin: 30px 0 !important;
        box-shadow: 0 0 20px rgba(60, 38, 110, 0.3) !important;
    }

    .key-takeaway h3 {
        color: #3c266e !important;
        margin-bottom: 20px !important;
        font-size: 1.3rem !important;
    }

    .key-takeaway ul {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .key-takeaway li {
        color: #ccc !important;
        margin-bottom: 15px !important;
        padding-left: 25px !important;
        position: relative !important;
        line-height: 1.6 !important;
        font-size: 15px !important;
    }

    .key-takeaway li::before {
        content: "✓" !important;
        color: #4CAF50 !important;
        font-weight: bold !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
    }
}

@media (max-width: 480px) {
    .emotion-grid {
        grid-template-columns: 1fr;
    }
}

/* Key Takeaways Styles */
.key-takeaway {
    background: #100a1f !important;
    border: 2px solid #3c266e !important;
    padding: 25px !important;
    border-radius: 10px !important;
    margin: 30px 0 !important;
    box-shadow: 0 0 20px rgba(60, 38, 110, 0.3) !important;
}

.key-takeaway h3 {
    color: #3c266e !important;
    margin-bottom: 20px !important;
    font-size: 1.3rem !important;
}

.key-takeaway ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.key-takeaway li {
    color: white !important;
    margin-bottom: 15px !important;
    padding-left: 25px !important;
    position: relative !important;
    line-height: 1.6 !important;
    font-size: 15px !important;
}

.key-takeaway li::before {
    content: "✓" !important;
    color: #4CAF50 !important;
    font-weight: bold !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
}

.key-takeaway p {
    color: white !important;
    line-height: 1.6 !important;
    margin-bottom: 15px !important;
}

/* Navigation Styles */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0 30px 0;
    padding: 20px 0;
    border-top: 2px solid #3c266e;
    gap: 15px;
}

.nav-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #3c266e;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-btn:hover {
    background: #5a3f8f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(60, 38, 110, 0.4);
}

.navigation span {
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .navigation {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        margin: 40px 0 20px 0;
    }

    .navigation span {
        order: 2;
        margin: 10px 0;
    }

    .nav-btn:first-child {
        order: 1;
    }

    .nav-btn:last-child {
        order: 3;
    }

    .nav-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Psychology specific styles */

/* Mobile title break */
@media (max-width: 768px) {
    .mobile-break {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-break {
        display: inline;
    }
}