/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Import DM Sans font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap');

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Global link styles */
a {
    color: #EE4323;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #d13a1f;
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #000000;
    color: white;
    padding: 0.4rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    font-weight: 500;
}

.site-nav a:not(:last-child)::after {
    content: '|';
    margin-left: 1rem;
    color: white;
    opacity: 0.6;
}

.site-nav a:hover {
    color: #EE4323;
}

.contribute-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.github-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* Main content */
.site-main {
    min-height: calc(100vh - 200px);
    padding: 1.5rem 0;
}

/* Hero section */
.hero {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #222222;
    font-weight: 300;
}

.hero p {
    font-size: 1.2rem;
    color: #666666;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* Content cards */
.content-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.content-card h2 {
    color: #111111;
    margin-bottom: 1rem;
    font-weight: 700;
}

.content-card p {
    color: #111111;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.content-card a {
    color: #EE4323;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-card a:hover {
    color: #d13a1f;
    text-decoration: underline;
}

/* Techniques table */
.techniques-table-container {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.techniques-table-container h2 {
    color: #111111;
    margin-bottom: 1rem;
    font-weight: 700;
}

.techniques-table {
    margin-top: 1.5rem;
    border: 2px solid #EE4323;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-block;
    width: 100%;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
    border-spacing: 0;
    margin: 0;
}

th {
    background: #EE4323;
    color: white;
    padding: 0.5rem;
    text-align: left;
    font-weight: 700;
    border: 1px solid #EE4323;
    font-size: 0.9rem;
}

td {
    padding: 0.5rem;
    border: none;
    vertical-align: middle;
    background-color: white;
    font-size: 0.9rem;
}

tr:hover {
    background-color: #f5f5f5;
}

.technique-cell {
    border: 1px solid #EE4323;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Remove borders on outer edges to prevent doubling */
.technique-cell:first-child {
    border-left: none;
}

.technique-cell:last-child {
    border-right: none;
}

tr:first-child .technique-cell {
    border-top: none;
}

tr:last-child .technique-cell {
    border-bottom: none;
}

.technique-cell:hover {
    background-color: #fff5f5;
}

.technique-cell a {
    color: #000000;
    text-decoration: none;
    font-weight: 400;
    display: block;
    width: 100%;
    height: 100%;
    padding: inherit;
    margin: -0.75rem;
    box-sizing: border-box;
}

.missing-technique {
    color: #999;
    font-style: italic;
    text-decoration: line-through;
}

.empty-cell {
    background-color: #f8f9fa;
    border: none;
    cursor: default;
}

.empty-cell:hover {
    background-color: #f8f9fa;
}

/* Technique pages */
.technique {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.technique-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ecf0f1;
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 400;
}

.breadcrumb a {
    color: #777;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.technique-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #111111;
    font-weight: 400;
}

.technique-content h1 {
    color: #111111;
    margin: 0 0 0rem 0;
    font-size: 2.5rem;
    font-weight: 300;
}

.technique-content h2 {
    color: #333;
    margin: 1rem 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 500;
}

.technique-content h3 {
    color: #34495e;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.technique-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.technique-content ul,
.technique-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.technique-content li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.technique-content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #7f8c8d;
}

.technique-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.technique-content pre {
    background: #111111;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0;
}

.technique-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.technique-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #ecf0f1;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: #EE4323;
    color: white;
    border: 1px solid #EE4323;
}

.btn-primary:hover {
    background: #d13a1f;
    border-color: #d13a1f;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: white !important;
}

/* Footer */
.site-footer {
    background: #000000;
    color: white;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.site-footer .container {
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
}

.footer-team {
    margin: 0;
    font-size: 1rem;
    color: #f6f6f6;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-align: left;
}

.footer-logo {
    height: 20px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    position: relative;
    top: 1px;
    right: -5px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .techniques-table {
        font-size: 0.9rem;
    }

    th,
    td {
        padding: 0.75rem 0.5rem;
    }

    .technique-content {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .techniques-table-container {
        padding: 1rem;
    }

    .technique {
        padding: 1rem;
    }
}