/* Temporal Rate Ontology Website Styles - Integrated Version */

:root {
    --primary-color: #1a5490;
    --secondary-color: #2e7bc4;
    --accent-color: #5a9fd4;
    --dark-bg: #0f1419;
    --light-bg: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Palatino', serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: #ffffff;
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 20px 40px;
    text-align: center;
    border-bottom: 4px solid var(--accent-color);
}

header h1 {
    font-family: 'Baskerville', 'Georgia', serif;
    font-size: 2.8em;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.tagline {
    font-size: 1.2em;
    font-weight: 300;
    opacity: 0.95;
    font-style: italic;
}

.sub-tagline {
    font-size: 1em;
    opacity: 0.85;
    margin-top: 5px;
    font-style: normal;
}

/* Navigation */
nav {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

nav .container {
    display: flex;
    justify-content: center;
    gap: 28px;
    row-gap: 10px;
    flex-wrap: wrap;
    padding: 15px 20px;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 0.95em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Main Content */
main {
    padding: 40px 20px 60px;
}

section {
    margin-bottom: 80px;
}

main.container > section:first-child {
    margin-top: 10px;
}

section h2 {
    font-family: 'Baskerville', 'Georgia', serif;
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-color);
    font-weight: 400;
}

section h3 {
    font-size: 1.5em;
    color: var(--text-primary);
    margin: 30px 0 20px;
    font-weight: 500;
}

section h4 {
    font-size: 1.2em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

p {
    margin-bottom: 20px;
}

.lead {
    font-size: 1.25em;
    line-height: 1.6;
    font-weight: 400;
}

/* Summary Box */
.summary-box {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    border-left: 5px solid var(--primary-color);
    padding: 30px;
    margin: 30px 0;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.key-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.point-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px;
    background: rgba(26, 84, 144, 0.1);
    border: 1px solid var(--accent-color);
    font-size: 0.85em;
    color: var(--primary-color);
    font-weight: 500;
}

/* Schematic Section */
.schematic-section {
    margin: 0 -20px 80px;
    padding: 48px 20px 40px;
    background: linear-gradient(180deg, #f0f6ff 0%, #ffffff 100%);
    border-top: 3px solid var(--accent-color);
    border-bottom: 1px solid rgba(26, 84, 144, 0.12);
}

.schematic-section h2 {
    margin-bottom: 24px;
}

.schematic-frame {
    width: 100%;
    /* Stay within the text column — no wider than the container */
    max-width: 100%;
    margin: 20px auto 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(26, 84, 144, 0.14);
    /* Lighter shadow — less contrast against white page */
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
    background: #080c14;
    /* aspect-ratio as the primary sizing mechanism */
    aspect-ratio: 16 / 9;
}

.schematic-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #080c14;
}

.schematic-note {
    margin-top: 14px;
    text-align: center;
    font-size: 0.95em;
    color: var(--text-secondary);
}

.schematic-note a {
    color: var(--primary-color);
    border-bottom: 1px solid var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.schematic-note a::after {
    content: ' →';
}

.schematic-note a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Key Claims Grid */
.claim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.claim-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 25px;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.claim-card:hover {
    box-shadow: 0 4px 12px rgba(26, 84, 144, 0.15);
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.claim-card h4 {
    margin-bottom: 12px;
    font-size: 1.15em;
}

.claim-card p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Detailed Explanation */
.detailed-explanation {
    margin: 40px 0;
}

.detailed-explanation ul {
    margin: 20px 0 20px 30px;
}

.detailed-explanation li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.important-note {
    background: #fff8e6;
    border-left: 4px solid #f4b400;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.important-note p {
    margin: 0;
}

.what-tro-is {
    margin-top: 30px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 20px 0;
}

.is-column,
.is-not-column {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.is-column h4,
.is-not-column h4 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.1em;
}

.is-column ul,
.is-not-column ul {
    margin: 15px 0 0 20px;
    padding: 0;
}

.is-column li,
.is-not-column li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Papers Section */
.paper-list {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.paper {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.paper:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.paper h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4em;
    color: var(--primary-color);
    line-height: 1.4;
}

.paper-meta {
    font-size: 0.9em;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 15px;
}

.paper-description {
    margin: 15px 0 20px;
    line-height: 1.7;
    color: var(--text-primary);
}

.paper-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.paper-status {
    display: inline-block;
    padding: 10px 16px;
    background: #f0f7ff;
    color: var(--text-secondary);
    border-radius: 4px;
    font-size: 0.9em;
    font-style: italic;
    border: 1px solid var(--border-color);
}

.reading-guide {
    margin-top: 35px;
    padding: 25px;
    background: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.reading-guide h4 {
    margin-top: 0;
    color: var(--primary-color);
}

.reading-guide p {
    margin: 0;
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 0.9em;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(26, 84, 144, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* FAQ Section */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.faq-item {
    background: white;
    border-left: 4px solid var(--accent-color);
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.faq-item h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.25em;
}

.faq-item p {
    margin-bottom: 0;
    line-height: 1.7;
}

/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 20px 0;
}

.resource-box {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.resource-box h4 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.1em;
}

.keywords,
.citation {
    font-size: 0.9em;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.related-reading {
    margin-top: 30px;
}

.related-reading h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.related-reading ul {
    margin-left: 25px;
}

.related-reading li {
    margin-bottom: 12px;
    line-height: 1.7;
}

/* Contact Section */
.contact-box {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 35px;
    max-width: 600px;
}

.contact-box p {
    margin-bottom: 10px;
}

.contact-box a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.contact-box a:hover {
    border-bottom-color: var(--primary-color);
}

.contact-note {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.contact-note p {
    font-style: italic;
    color: var(--text-secondary);
    margin: 0;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: #ffffff;
    padding: 30px 20px;
    text-align: center;
    font-size: 0.9em;
}

footer p {
    margin: 8px 0;
    opacity: 0.8;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Link Styling */
main a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-color);
}

main a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Strong/Em Styling */
strong {
    font-weight: 600;
    color: var(--text-primary);
}

em {
    font-style: italic;
}

/* Selection Styling */
::selection {
    background: var(--accent-color);
    color: white;
}

/* Accessibility */
[role="article"]:focus,
[role="navigation"]:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Why TRO Tabs */
.audience-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color, #ddd);
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary, #666);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    color: var(--primary-color, #1a5490);
    background: rgba(26, 84, 144, 0.05);
}

.tab-btn.active {
    color: var(--primary-color, #1a5490);
    border-bottom-color: var(--primary-color, #1a5490);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .tagline {
        font-size: 1em;
    }

    nav .container {
        gap: 20px;
    }

    section h2 {
        font-size: 1.8em;
    }

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

    .two-col,
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .paper-links {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    .audience-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid var(--border-color, #ddd);
    }

    .tab-btn.active {
        border-left: 3px solid var(--primary-color, #1a5490);
        border-bottom: 1px solid var(--border-color, #ddd);
        background: rgba(26, 84, 144, 0.05);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .claim-card:hover,
    .paper:hover,
    .btn:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    nav,
    footer,
    .btn,
    .schematic-section {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: underline;
        color: black;
    }

    .paper,
    .faq-item {
        page-break-inside: avoid;
    }

    header {
        background: none;
        color: black;
        border-bottom: 2px solid black;
    }
}

    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
}
