/* ===================================
   Custom Styling for Jekyll Site
   Builds on top of github-markdown-css
   =================================== */

:root {
    --primary-color: #2c3e50;
    --primary-dark: #1a252f;
    --secondary-color: #3498db;
    --container-width: 900px;
}

body {
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header and Navigation */
.site-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: 'Roboto', sans-serif;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    display: flex;
    align-items: center;
}

.site-title:hover {
    color: var(--secondary-color);
}

.nav-logo {
    height: 50px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.site-title:hover .nav-logo {
    opacity: 0.85;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

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

.content {
    background: white;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Apply GitHub markdown styling to content */
.content.markdown-body {
    box-sizing: border-box;
    min-width: 200px;
    max-width: 980px;
    margin: 0 auto;
}

/* Footer */
.site-footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

.site-footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    
    .nav-logo {
        height: 40px;
    }

    .nav-links {
        width: auto;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.25rem;
    }

    .nav-links a {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }
    
    .content {
        padding: 1.5rem;
    }
}

/* Argumentation tags have been moved to styles/argumentation-tags.css */

/* ===================================
   Social Share Buttons
   =================================== */

.social-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.25rem 0 0.25rem;
    margin-top: 2rem;
    border-top: 1px solid #e1e4e8;
}

.social-share-label {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #57606a;
}

.social-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    color: white;
    transition: opacity 0.2s ease, transform 0.1s ease;
    line-height: 1;
}

.share-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.share-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.share-btn:active {
    transform: translateY(0);
}

.share-twitter  { background-color: #000000; }
.share-facebook { background-color: #1877f2; }
.share-linkedin { background-color: #0a66c2; }
.share-reddit   { background-color: #ff4500; }
.share-email    { background-color: #57606a; }
.share-copy     { background-color: #2da44e; border: none; cursor: pointer; }

@media (max-width: 768px) {
    .social-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .container {
        padding: .5rem;
    }

    .nav-links {
        padding-left: 0;
    }
}

/* ===================================
   Report Inaccuracy Button
   =================================== */

.external.report-inaccuracy {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 0 0.25rem;
    margin-top: 0.5rem;
    border-top: 1px solid #e1e4e8;
}

.external.report-inaccuracy-label {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #57606a;
}

.external.report-inaccuracy-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.external.report-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    color: white;
    transition: opacity 0.2s ease, transform 0.1s ease;
    line-height: 1;
}

.external.report-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.external.report-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.external.report-btn:active {
    transform: translateY(0);
}

.external.report-btn-inaccuracy { background-color: #b45309; }

/* ===================================
   Suggest New Evidence Button
   =================================== */

.external.suggest-new-evidence {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 0 0.75rem;
    margin-bottom: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e1e4e8;
}

.external.suggest-new-evidence-label {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #57606a;
    margin-left: 0.75rem;
}

.external.suggest-new-evidence-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.external.suggest-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    color: white;
    transition: opacity 0.2s ease, transform 0.1s ease;
    line-height: 1;
}

.external.suggest-btn a {
    background-color: transparent;
    color: white;
    text-decoration: none;
}

.external.suggest-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.external.suggest-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.external.suggest-btn:active {
    transform: translateY(0);
}

.external.suggest-btn-evidence { background-color: #0891b2; }
.external.suggest-btn-claim {  background-color: #0891b2; }

/* ===================================
   Content Actions (above article)
   =================================== */

.content-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.content-actions.claim {
    justify-content: space-between;
}

.content-actions .header-share {
    margin-left: 0;
    flex-wrap: wrap-reverse;
}



.content-actions .header-share-btn {
    background-color: #f0f3f6;
    color: var(--primary-color);
}

.content-actions .header-share-btn:hover {
    color: white;
}

@media (max-width: 768px) {
    .content-actions {
        justify-content: flex-start;
    }
}

/* ===================================
   Header Share Icons (compact icon style)
   =================================== */

.header-share {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.header-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
    flex-shrink: 0;
}

.header-share-btn svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.header-share-btn:hover {
    color: white;
    transform: translateY(-1px);
    text-decoration: none;
}

.header-share-btn:active {
    transform: translateY(0);
}

.header-share-twitter:hover  { background-color: #000000; }
.header-share-facebook:hover { background-color: #1877f2; }
.header-share-linkedin:hover { background-color: #0a66c2; }
.header-share-reddit:hover   { background-color: #ff4500; }
.header-share-email:hover    { background-color: #57606a; }
.header-share-copy           { border: none; cursor: pointer; }
.header-share-copy:hover     { background-color: #2da44e; }
.header-share-infocard {
    width: auto;
    padding: 0.4rem 0.85rem;
    border: none;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: white;
    background-color: #6f42c1;
}
.header-share-infocard:hover { background-color: #5a32a3; }

@media (max-width: 768px) {
    .header-share {
        margin-left: 0;
        width: 100%;
    }
}

/* ===================================
   Share Card (hidden div for Copy Infocard)
   Rendered off-screen; captured by build script & html2canvas
   =================================== */

#share-card {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1200px;
    height: 630px;
    overflow: hidden;
    z-index: -1;
    font-family: 'Roboto', sans-serif;
    background: #ffffff;
    box-sizing: border-box;
}

.share-card-inner {
    width: 1200px;
    height: 630px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
}

.share-card-header {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    color: white;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.share-card-header svg {
    width: 22px;
    height: 22px;
    fill: rgba(255,255,255,0.85);
    flex-shrink: 0;
}

.share-card-site-name {
    font-size: 18px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.3px;
}

.share-card-body {
    flex: 1;
    padding: 24px 40px 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.share-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a252f;
    margin-bottom: 16px;
    line-height: 1.3;
    flex-shrink: 0;
}

.share-card-table-container {
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.share-card-table-container table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}

.share-card-table-container th,
.share-card-table-container td {
    padding: 7px 10px;
    text-align: left;
    border: 1px solid #e1e4e8;
    overflow: hidden;
    word-wrap: break-word;
}

.share-card-table-container th {
    background: #f6f8fa;
    font-weight: 600;
    color: #1a252f;
}

.share-card-table-container tr:nth-child(even) td {
    background: #f9fafb;
}

.share-card-table-container a {
    color: inherit;
    text-decoration: none;
}

.share-card-footer {
    background: #f6f8fa;
    padding: 12px 40px;
    font-size: 14px;
    color: #57606a;
    border-top: 1px solid #e1e4e8;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.share-card-footer svg {
    width: 14px;
    height: 14px;
    fill: #3498db;
    flex-shrink: 0;
}

.share-card-url {
    font-weight: 600;
    color: #3498db;
}

/* Copy Infocard button */
.share-infocard { background-color: #6f42c1; border: none; cursor: pointer; }
