/* Regularised p-Adic Research Website Styles */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --background: #f5f6fa;
    --text-color: #2c3e50;
    --code-bg: #ecf0f1;
}

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

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background);
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    margin-bottom: 20px;
}

header h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.subtitle {
    font-style: italic;
    opacity: 0.9;
}

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

nav a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 4px;
    transition: background 0.3s;
}

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

main {
    background: white;
    padding: 30px;
    border-radius: 8px;
}

section {
    margin-bottom: 30px;
}

h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h3 {
    color: var(--secondary-color);
    margin: 15px 0 10px 0;
}

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

li {
    margin-bottom: 5px;
}

.formula {
    background: var(--code-bg);
    padding: 15px;
    border-left: 4px solid var(--secondary-color);
    font-family: 'Courier New', monospace;
    margin: 15px 0;
    overflow-x: auto;
}

code {
    background: var(--code-bg);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

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

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

.hypothesis {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    border-radius: 4px;
    margin: 10px 0;
}

.hypothesis.validated {
    background: #d4edda;
    border-color: #28a745;
}

.hypothesis.invalidated {
    background: #f8d7da;
    border-color: #dc3545;
}

.log-entry {
    border-left: 4px solid var(--secondary-color);
    padding: 15px;
    margin: 15px 0;
    background: #f9f9f9;
}

.log-entry .date {
    font-weight: bold;
    color: var(--secondary-color);
}

footer {
    text-align: center;
    padding: 20px;
    color: #666;
    margin-top: 20px;
}

footer a {
    color: var(--secondary-color);
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    header {
        padding: 20px 10px;
    }

    header h1 {
        font-size: 1.5em;
    }

    nav {
        flex-direction: column;
        align-items: center;
    }
}
