/* 
 * Simple and modular CSS for Sam Rodriguez's website
 * Following the principles of simplicity, modularity, and semantic structure
 */

/* ===== BASE STYLES ===== */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
    color: #333;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

header h1 {
    text-align: center;
    margin-bottom: 1em;
}

p {
    margin-bottom: 1em;
}

/* ===== LAYOUT COMPONENTS ===== */
header, main, footer {
    padding: 1em 0;
}

footer {
    margin-top: 2em;
    border-top: 1px solid #eee;
    padding-top: 1em;
    font-size: 0.9em;
    text-align: center;
}

/* ===== NAVIGATION ===== */
nav {
    text-align: center;
}

.nav-list {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
    display: flex;
    justify-content: center;
}

.nav-item {
    margin: 0 15px;
}

.nav-link {
    text-decoration: none;
    font-weight: bold;
    color: #0066cc;
}

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

/* ===== PROFILE IMAGE ===== */
.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 20px auto;
    border: 3px solid #eee;
}

/* ===== POST LIST ===== */
.post-list {
    list-style-type: none;
    padding: 0;
}

.post-list-item {
    margin: 10px 0;
}

.post-list-link {
    text-decoration: none;
    color: #0066cc;
}

.post-list-link:hover {
    text-decoration: underline;
}

.post-date {
    color: #666;
    font-size: 0.9em;
    margin-top: 0;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 600px) {
    .nav-list {
        flex-direction: column;
    }
    
    .nav-item {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Basic Arithmetic */
.calculation {
    background: #e6e7e8;
    border-radius: 4px;
    padding: 0.3em 0.6em 0.35em 0.7em;
    margin: 1em 0;
    width: fit-content;
    max-width: 100%;
    font-family: Monaco, Menlo, monospace;
    font-size: 0.9em;
    line-height: 1.5;
    white-space: pre;
    overflow-x: auto;
}
/* ===== NOTES DIVIDER ===== */
.notes-divider {
    display: flex;
    align-items: center;
    gap: 1em;
    margin: 4.5em 0 2.2em;
    color: #999;
}

.notes-divider::before,
.notes-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ddd;
}

.notes-divider span {
    white-space: nowrap;
}
