/**
 * REMOTION Theme - Estilos adicionales
 *
 * @package REMOTION
 */

/* Variables CSS */
:root {
    --color-primary: #25E0D7;
    --color-primary-hover: #1fb8b0;
    --color-background: #050505;
    --color-card: #121212;
    --color-border: #1f1f1f;
    --color-text: #f2f2f2;
    --color-text-muted: #b5b5b5;
    --font-heading: 'Jura', system-ui, sans-serif;
    --font-body: 'Quicksand', system-ui, sans-serif;
    --container-max: 1360px;
    --spacing-unit: 1rem;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.site-branding .custom-logo {
    height: 28px;
    width: auto;
}

.primary-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu a {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.primary-menu a:hover {
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 0.5rem;
}

.menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: currentColor;
    left: 0;
}

.menu-icon::before {
    top: -6px;
}

.menu-icon::after {
    top: 6px;
}

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

/* Page header */
.page-header {
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

/* Posts grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Post card */
.post-card {
    background: var(--color-card);
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card .post-content {
    padding: 1.5rem;
}

.entry-title {
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
}

.entry-title a {
    color: var(--color-text);
}

.entry-title a:hover {
    color: var(--color-primary);
}

.entry-meta {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.entry-meta time {
    margin-right: 1rem;
}

.cat-links a {
    color: var(--color-primary);
}

.entry-summary {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.875rem;
}

.read-more:hover {
    color: var(--color-primary-hover);
}

/* Single post */
.single-post .entry-header {
    margin-bottom: 2rem;
}

.single-post .entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.single-post .post-thumbnail {
    margin: 2rem 0;
    border-radius: 1rem;
    overflow: hidden;
}

.single-post .post-thumbnail img {
    width: 100%;
    height: auto;
}

.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--color-text);
    margin-top: 2rem;
}

.entry-content a {
    color: var(--color-primary);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* Pagination */
.pagination,
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    color: var(--color-text-muted);
    margin: 0 0.25rem;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--color-primary);
    color: var(--color-background);
    border-color: var(--color-primary);
}

/* Footer */
.site-footer {
    background: var(--color-background);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0 1.5rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 0;
}

.footer-logos img {
    height: 32px;
    width: auto;
    opacity: 0.7;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.copyright {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.legal-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.legal-menu a {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.legal-menu a:hover {
    color: var(--color-primary);
}

/* 404 page */
.error-404 {
    text-align: center;
    padding: 4rem 0;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    display: block;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-background);
    font-weight: 600;
    border-radius: 9999px;
    transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: scale(1.05);
    color: var(--color-background);
}

/* Search form */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    color: var(--color-text);
    font-size: 1rem;
}

.search-field:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    border: none;
    border-radius: 0.5rem;
    color: var(--color-background);
    cursor: pointer;
}

/* Comments */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.comments-title {
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    padding: 1.5rem;
    background: var(--color-card);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-card);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .primary-menu.is-open {
        display: flex;
    }

    .primary-menu li {
        border-bottom: 1px solid var(--color-border);
    }

    .primary-menu li:last-child {
        border-bottom: none;
    }

    .primary-menu a {
        display: block;
        padding: 1rem 0;
    }

    .page-title {
        font-size: 2rem;
    }

    .single-post .entry-title {
        font-size: 1.75rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
