/* Glasl Analysis Website Styles */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --bg-color: #ecf0f1;
    --text-color: #2c3e50;
    --border-color: #bdc3c7;
    --code-bg: #f8f9fa;
    --warning-color: #f39c12;
    --success-color: #27ae60;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

h1 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 10px;
}

h2 {
    color: var(--secondary-color);
    font-size: 2em;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 10px;
}

h4 {
    color: var(--secondary-color);
    font-size: 1.2em;
    margin-top: 15px;
    margin-bottom: 8px;
}

p {
    margin-bottom: 15px;
}

/* Navigation */
nav {
    background: var(--primary-color);
    padding: 15px;
    margin: -30px -30px 30px -30px;
    border-radius: 8px 8px 0 0;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background 0.3s;
}

nav a:hover {
    background: var(--secondary-color);
}

nav a.active {
    background: var(--secondary-color);
}

/* Stats and Highlights */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: var(--code-bg);
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid var(--secondary-color);
}

.stat-card.warning {
    border-left-color: var(--warning-color);
}

.stat-card.danger {
    border-left-color: var(--accent-color);
}

.stat-card h3 {
    margin-top: 0;
    font-size: 1.2em;
}

.stat-value {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--secondary-color);
}

.stat-card.danger .stat-value {
    color: var(--accent-color);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
}

thead {
    background: var(--primary-color);
    color: white;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 600;
}

tr:hover {
    background: var(--code-bg);
}

tbody tr:nth-child(even) {
    background: #fafafa;
}

/* Discord Message Quotes */
.discord-message {
    background: #36393f;
    color: #dcddde;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 4px solid #7289da;
    font-family: 'Courier New', monospace;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.message-author {
    color: #7289da;
    font-weight: bold;
}

.message-date {
    color: #72767d;
}

.message-content {
    line-height: 1.5;
    white-space: pre-wrap;
}

.message-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #4f545c;
    font-size: 0.85em;
}

.discord-link {
    color: #00b0f4;
    text-decoration: none;
}

.discord-link:hover {
    text-decoration: underline;
}

/* Pattern Cards */
.pattern-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    transition: box-shadow 0.3s;
}

.pattern-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.pattern-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stage-badge {
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
}

.stage-badge.stage-4 {
    background: var(--warning-color);
}

.stage-badge.stage-5 {
    background: var(--accent-color);
}

.stage-badge.stage-6 {
    background: #8e44ad;
}

/* Alerts and Callouts */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 4px solid;
}

.alert-info {
    background: #d1ecf1;
    border-color: #0c5460;
    color: #0c5460;
}

.alert-warning {
    background: #fff3cd;
    border-color: var(--warning-color);
    color: #856404;
}

.alert-danger {
    background: #f8d7da;
    border-color: var(--accent-color);
    color: #721c24;
}

.alert-success {
    background: #d4edda;
    border-color: var(--success-color);
    color: #155724;
}

/* Code blocks */
code {
    background: var(--code-bg);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

pre {
    background: var(--code-bg);
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 15px 0;
}

pre code {
    background: none;
    padding: 0;
}

/* Lists */
ul, ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
}

/* Links */
a {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 20px;
    color: #6c757d;
    font-size: 0.9em;
}

.breadcrumbs a {
    color: var(--secondary-color);
}

/* Collapsible sections */
.collapsible {
    cursor: pointer;
    padding: 10px;
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin: 10px 0;
}

.collapsible:hover {
    background: #e9ecef;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 10px;
}

.collapsible-content.active {
    max-height: 2000px;
    padding: 10px;
}

/* Timeline */
.timeline {
    border-left: 3px solid var(--secondary-color);
    margin-left: 20px;
    padding-left: 30px;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
}

.timeline-item::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--secondary-color);
    border-radius: 50%;
    position: absolute;
    left: -36px;
    top: 5px;
}

.timeline-date {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    nav {
        margin: -15px -15px 15px -15px;
    }

    nav ul {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }

    .container {
        box-shadow: none;
    }

    nav {
        display: none;
    }

    .discord-message {
        border: 1px solid #ccc;
        background: #f5f5f5;
        color: #333;
    }
}
