/* Digital Trauma Theory - Main Stylesheet */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: #2c3e50;
    background-color: #fefefe;
    font-size: 18px;
}

/* Container and layout */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Typography */
h1 {
    color: #1a252f;
    font-size: 2.8em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
    border-bottom: 3px solid #3498db;
    padding-bottom: 20px;
}

h2 {
    color: #2c3e50;
    font-size: 2.2em;
    font-weight: 600;
    margin-top: 60px;
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 4px solid #e74c3c;
}

h3 {
    color: #34495e;
    font-size: 1.6em;
    font-weight: 600;
    margin-top: 45px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 3px solid #3498db;
}

h4 {
    color: #34495e;
    font-size: 1.3em;
    font-weight: 600;
    margin-top: 35px;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 2px solid #95a5a6;
}

/* Paragraphs and text */
p {
    margin-bottom: 20px;
    text-align: justify;
    hyphens: auto;
}

p:first-of-type {
    font-size: 1.1em;
    color: #2c3e50;
}

/* Table of Contents */
.toc {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.toc h2 {
    color: #495057;
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 20px;
    border: none;
    padding: 0;
    text-align: center;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.toc li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

.toc a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.toc a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Opening quotes */
.opening-quote {
    font-size: 1.4em;
    font-style: italic;
    color: #7f8c8d;
    text-align: center;
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    border-radius: 10px;
    border-left: 4px solid #e74c3c;
    position: relative;
}

.opening-quote::before {
    content: """;
    font-size: 3em;
    position: absolute;
    top: -10px;
    left: 20px;
    color: #e74c3c;
    opacity: 0.3;
}

/* Section breaks */
.section-break {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #bdc3c7, transparent);
    margin: 50px 0;
}

/* Trauma type sections */
.trauma-type {
    margin-bottom: 80px;
    padding: 0 10px;
}

/* Conclusion sections */
.conclusion-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 40px;
    margin-top: 60px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.conclusion-section::before {
    content: "🔍";
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5em;
    opacity: 0.3;
}

.conclusion-section h3 {
    color: #2c3e50;
    margin-top: 0;
    border: none;
    padding: 0;
    text-align: center;
    margin-bottom: 25px;
}

.conclusion-section p:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: #5a6c7d;
    border-top: 1px solid #dee2e6;
    padding-top: 20px;
    margin-top: 30px;
}

/* Lists */
ul, ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 8px;
}

/* Strong and emphasis */
strong {
    color: #2c3e50;
    font-weight: 600;
}

em {
    color: #5a6c7d;
    font-style: italic;
}

/* Links */
a {
    color: #3498db;
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
    text-decoration: none;
}

a:visited {
    color: #8e44ad;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid #3498db;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #5a6c7d;
    background: rgba(52, 152, 219, 0.05);
    padding: 20px 20px 20px 30px;
    border-radius: 0 8px 8px 0;
}

/* Code and technical elements */
code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e74c3c;
    font-size: 0.9em;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 2.2em;
    }
    
    h2 {
        font-size: 1.8em;
        margin-top: 40px;
    }
    
    h3 {
        font-size: 1.4em;
        margin-top: 35px;
    }
    
    h4 {
        font-size: 1.2em;
        margin-top: 25px;
    }
    
    body {
        font-size: 16px;
    }
    
    .opening-quote {
        font-size: 1.2em;
        padding: 20px;
    }
    
    .toc, .conclusion-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px 10px;
    }
    
    h1 {
        font-size: 1.9em;
    }
    
    h2 {
        font-size: 1.6em;
    }
    
    h3 {
        font-size: 1.3em;
    }
    
    body {
        font-size: 15px;
        line-height: 1.6;
    }
}

/* Print styles */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    h1, h2, h3, h4 {
        color: #000;
        page-break-after: avoid;
    }
    
    .trauma-type {
        page-break-inside: avoid;
    }
    
    .section-break {
        background: #000;
        height: 1px;
    }
    
    a {
        color: #000;
        text-decoration: none;
    }
    
    .toc, .conclusion-section {
        border: 1px solid #000;
        box-shadow: none;
        background: none;
    }
}