/* ========================================
   INTERJECTIONS EDUCATIONAL WEBPAGE - CSS
   Professional Design with Perfect Readability
   ======================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, rgb(31, 150, 199) 0%, rgb(41, 180, 229) 100%);
    color: #1a1a1a;
    line-height: 1.8;
    min-height: 100vh;
    padding: 20px;
}

/* Print Button */
.print-button-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.print-btn {
    background: linear-gradient(135deg, rgb(150, 31, 224), rgb(180, 61, 254));
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(150, 31, 224, 0.4);
    transition: all 0.3s ease;
}

.print-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(150, 31, 224, 0.6);
    background: linear-gradient(135deg, rgb(180, 61, 254), rgb(150, 31, 224));
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 5px solid rgb(150, 31, 224);
}

/* Header */
.main-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgb(150, 31, 224), rgb(180, 61, 254));
    border-radius: 15px;
    border: 4px solid rgb(31, 150, 199);
    box-shadow: 0 10px 30px rgba(150, 31, 224, 0.3);
}

.main-header h1 {
    font-size: 48px;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.subtitle {
    font-size: 24px;
    font-weight: bold;
    color: rgb(255, 255, 150);
    margin-bottom: 15px;
}

.disclaimer {
    font-size: 16px;
    font-weight: bold;
    color: rgb(255, 220, 100);
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 10px;
}

/* Navigation */
.navigation {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 15px;
    border: 4px solid rgb(150, 31, 224);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.navigation h2 {
    font-size: 28px;
    font-weight: bold;
    color: rgb(150, 31, 224);
    margin-bottom: 20px;
    text-align: center;
}

.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.nav-buttons button {
    background: linear-gradient(135deg, rgb(31, 150, 199), rgb(61, 180, 229));
    color: white;
    border: 3px solid rgb(150, 31, 224);
    padding: 15px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(31, 150, 199, 0.3);
}

.nav-buttons button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(31, 150, 199, 0.5);
    background: linear-gradient(135deg, rgb(61, 180, 229), rgb(31, 150, 199));
    border-color: rgb(180, 61, 254);
}

/* Content Sections */
.content-section {
    background: white;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 15px;
    border: 4px solid rgb(150, 31, 224);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    color: rgb(150, 31, 224);
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 4px solid rgb(31, 150, 199);
}

.content-box {
    background: rgba(240, 248, 255, 0.5);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 12px;
    border: 3px solid rgb(31, 150, 199);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.content-box h3 {
    font-size: 24px;
    font-weight: bold;
    color: rgb(31, 150, 199);
    margin-bottom: 15px;
}

.content-box ul {
    list-style-position: inside;
    padding-left: 20px;
}

.content-box li {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.8;
}

.content-box ol {
    list-style-position: inside;
    padding-left: 20px;
}

.content-box ol li {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.8;
}

.content-box strong {
    color: rgb(150, 31, 224);
    font-weight: bold;
}

/* Table Styling */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 4px solid rgb(150, 31, 224);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table thead {
    background: rgb(61, 242, 236);
    border-bottom: 4px solid rgb(150, 31, 224);
}

.comparison-table thead th {
    padding: 20px 15px;
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    color: rgb(0, 0, 0);
    border-right: 3px solid rgb(150, 31, 224);
}

.comparison-table thead th:last-child {
    border-right: none;
}

.comparison-table tbody tr {
    border-bottom: 2px solid rgb(150, 31, 224);
    transition: all 0.3s ease;
}

.comparison-table tbody tr:nth-child(odd) {
    background: rgba(61, 242, 236, 0.2);
}

.comparison-table tbody tr:nth-child(even) {
    background: white;
}

.comparison-table tbody tr:hover {
    background: rgba(150, 31, 224, 0.1);
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.comparison-table tbody td {
    padding: 18px 15px;
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    border-right: 2px solid rgb(150, 31, 224);
}

.comparison-table tbody td:last-child {
    border-right: none;
}

.comparison-table tbody td strong {
    color: rgb(150, 31, 224);
}

/* Flowchart Styling */
.flowchart-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 4px solid rgb(150, 31, 224);
    overflow-x: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.flowchart {
    min-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.flow-box {
    background: linear-gradient(135deg, rgb(61, 242, 236), rgb(91, 252, 246));
    border: 4px solid rgb(150, 31, 224);
    border-radius: 12px;
    padding: 20px 30px;
    margin: 10px 0;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    min-width: 300px;
}

.start-box {
    background: linear-gradient(135deg, rgb(150, 31, 224), rgb(180, 61, 254));
    color: white;
    font-size: 20px;
}

.end-box {
    background: linear-gradient(135deg, rgb(31, 150, 199), rgb(61, 180, 229));
    color: white;
    font-size: 20px;
}

.flow-decision {
    background: linear-gradient(135deg, rgb(255, 195, 18), rgb(255, 215, 68));
    border: 4px solid rgb(150, 31, 224);
    border-radius: 12px;
    padding: 20px 30px;
    margin: 15px 0;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    min-width: 350px;
}

.joy-box {
    background: linear-gradient(135deg, rgb(130, 204, 221), rgb(160, 224, 241));
    border-color: rgb(31, 150, 199);
}

.surprise-box {
    background: linear-gradient(135deg, rgb(255, 107, 107), rgb(255, 137, 137));
    border-color: rgb(150, 31, 224);
}

.disgust-box {
    background: linear-gradient(135deg, rgb(255, 138, 101), rgb(255, 168, 131));
    border-color: rgb(150, 31, 224);
}

.pain-box {
    background: linear-gradient(135deg, rgb(253, 203, 110), rgb(255, 223, 140));
    border-color: rgb(150, 31, 224);
}

.realization-box {
    background: linear-gradient(135deg, rgb(196, 167, 231), rgb(216, 187, 251));
    border-color: rgb(150, 31, 224);
}

.attention-box {
    background: linear-gradient(135deg, rgb(129, 236, 236), rgb(159, 255, 255));
    border-color: rgb(31, 150, 199);
}

.hesitation-box {
    background: linear-gradient(135deg, rgb(189, 189, 189), rgb(219, 219, 219));
    border-color: rgb(150, 31, 224);
}

.negative-box {
    background: linear-gradient(135deg, rgb(255, 138, 101), rgb(255, 168, 131));
}

.continue-box {
    background: linear-gradient(135deg, rgb(189, 189, 189), rgb(219, 219, 219));
}

.flow-arrow {
    font-size: 36px;
    font-weight: bold;
    color: rgb(150, 31, 224);
    margin: 5px 0;
}

.flow-split {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin: 20px 0;
    gap: 30px;
}

.flow-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.flow-arrow-left,
.flow-arrow-right {
    font-size: 24px;
    font-weight: bold;
    color: rgb(150, 31, 224);
    margin: 10px 0;
}

/* Mind Map Styling */
.mindmap-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 4px solid rgb(150, 31, 224);
    overflow-x: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.mindmap-svg {
    width: 100%;
    height: auto;
    min-width: 1200px;
}

.mindmap-svg text {
    font-weight: bold;
}

/* Q&A Section */
.qa-item {
    margin-bottom: 25px;
}

.question-box {
    background: linear-gradient(135deg, rgb(61, 242, 236), rgb(91, 252, 246));
    padding: 25px;
    border-radius: 12px;
    border: 4px solid rgb(150, 31, 224);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.question-box h3 {
    font-size: 22px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.toggle-btn {
    background: linear-gradient(135deg, rgb(150, 31, 224), rgb(180, 61, 254));
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(150, 31, 224, 0.3);
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(150, 31, 224, 0.5);
    background: linear-gradient(135deg, rgb(180, 61, 254), rgb(150, 31, 224));
}

.answer-box {
    background: rgba(240, 248, 255, 0.8);
    padding: 25px;
    margin-top: 15px;
    border-radius: 12px;
    border: 3px solid rgb(31, 150, 199);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.answer-box p {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.8;
}

.answer-box strong {
    color: rgb(150, 31, 224);
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, rgb(150, 31, 224), rgb(180, 61, 254));
    color: white;
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    margin-top: 40px;
    border: 4px solid rgb(31, 150, 199);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.main-footer p {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        border: 2px solid #333;
        padding: 20px;
    }
    
    .content-section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 2px solid #333;
    }
    
    .comparison-table {
        page-break-inside: avoid;
    }
    
    .flowchart-container,
    .mindmap-container {
        page-break-inside: avoid;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header h1 {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .nav-buttons {
        flex-direction: column;
    }
    
    .nav-buttons button {
        width: 100%;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .flow-split {
        flex-direction: column;
    }
    
    .comparison-table {
        font-size: 14px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgb(240, 240, 240);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgb(150, 31, 224), rgb(31, 150, 199));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgb(180, 61, 254), rgb(61, 180, 229));
}