/* CSS Minimalista para el Tema Base (Estilo Notion/Medium) */
:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --accent-color: #111827;
    --link-color: #3b82f6;
    --hover-bg: #f3f4f6;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.site-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* HEADER */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.header-logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.header-nav {
    display: flex;
    gap: 20px;
}

.header-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.header-nav a:hover {
    color: var(--accent-color);
}

/* MAIN LAYOUT */
.main-layout {
    display: flex;
    gap: 60px;
    flex: 1;
}

.content-area {
    flex: 1;
    min-width: 0; /* Previene desbordamiento */
}

/* SIDEBAR */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.widget {
    margin-bottom: 40px;
}

.widget h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-weight: 600;
}

.about-widget p {
    font-size: 0.95rem;
    color: var(--text-color);
}

.widget-content {
    font-size: 0.95rem;
    color: var(--text-color);
}

/* POST LIST */
.post-feed {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.post-card {
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.post-card:last-child {
    border-bottom: none;
}

.post-header {
    margin-bottom: 15px;
}

.post-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.post-header h2 a {
    color: var(--accent-color);
    text-decoration: none;
}

.post-header h2 a:hover {
    text-decoration: underline;
}

.post-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.post-excerpt {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.read-more {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--link-color);
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* SINGLE POST */
.single-post-header {
    margin-bottom: 40px;
}

.single-post-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.single-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.single-post-content p {
    margin-bottom: 1.5em;
}

.single-post-content h2, .single-post-content h3 {
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 700;
}

.single-post-content img, .single-post-content iframe, .single-post-content video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
    display: block;
}

.single-post-content iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
}

.post-footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    color: var(--accent-color);
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-page {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.btn-page:hover {
    text-decoration: underline;
}

.page-current {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* FOOTER */
.site-footer {
    margin-top: auto;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Responsive Media for Content and Widgets */
.content-area iframe,
.widget-content iframe {
    max-width: 100%;
}
.content-area iframe[src*="youtube"],
.widget-content iframe[src*="youtube"] {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}
.content-area iframe[src*="spotify"],
.widget-content iframe[src*="spotify"] {
    width: 100%;
    height: 152px;
    border-radius: 12px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        margin-top: 40px;
        border-top: 1px solid var(--border-color);
        padding-top: 40px;
    }
    
    .single-post-header h1 {
        font-size: 2rem;
    }
}

/* CODE BLOCKS */
pre {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5em 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background-color: #f3f4f6;
    color: #d10000;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

/* SPOILERS */
.spoiler-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    vertical-align: bottom;
}
.spoiler-content {
    filter: blur(6px);
    transition: filter 0.3s ease;
    user-select: none;
    background-color: #222;
    color: #222; /* Oculta un poco más el texto */
    border-radius: 4px;
    padding: 0 4px;
}
.spoiler-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}
.spoiler-container.revealed .spoiler-content {
    filter: blur(0);
    background-color: transparent;
    color: inherit;
    user-select: text;
}
.spoiler-container.revealed .spoiler-overlay {
    opacity: 0;
}
