/* Swifteando - Tema limpio */

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

:root {
    --peach: #E07850;
    --peach-light: #FFF5F0;
    --peach-hover: #FFE8DE;
    --peach-dark: #C85A35;
    --text: #212529;
    --text-light: #495057;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --border: #dee2e6;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

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

/* Header */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--peach);
    text-decoration: none;
}

.logo:hover {
    color: var(--peach-dark);
}

.logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
    flex-wrap: wrap;
}

.nav ul a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav ul a:hover {
    color: var(--peach-dark);
    background: var(--peach-light);
}

/* Hero */
.hero {
    text-align: center;
    padding: 48px 20px;
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.hero p {
    font-size: 1rem;
    color: var(--text-light);
}

/* Posts Grid */
.posts-grid {
    display: flex;
    gap: 12px;
    padding: 24px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--peach-hover) var(--peach-light);
}

.posts-grid::-webkit-scrollbar {
    height: 6px;
}

.posts-grid::-webkit-scrollbar-track {
    background: var(--peach-light);
    border-radius: 3px;
}

.posts-grid::-webkit-scrollbar-thumb {
    background: var(--peach-hover);
    border-radius: 3px;
}

.post-card {
    background: var(--peach-light);
    border-radius: 8px;
    padding: 14px 16px;
    flex: 0 0 150px;
    transition: background 0.2s;
}

.post-card:hover {
    background: var(--peach-hover);
}

.post-card a {
    text-decoration: none;
    color: inherit;
}

.post-card h2 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.post-card p {
    color: var(--text-light);
    font-size: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article */
.article-content {
    padding: 32px 0;
}

.article-content h1 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.meta {
    color: var(--text-light);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.content h2 {
    font-size: 1.25rem;
    margin: 32px 0 12px;
}

.content p {
    margin-bottom: 16px;
}

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

.content pre {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 20px 0;
    font-size: 0.85rem;
}

.content code {
    font-family: 'SF Mono', Menlo, monospace;
    background: var(--bg-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

.content pre code {
    background: none;
    padding: 0;
}

/* Tags */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 20px 0;
}

.tags-list a {
    background: var(--bg-light);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 0.85rem;
}

.tags-list a:hover {
    background: var(--peach);
    color: white;
}

/* Footer */
.site-footer {
    background: var(--bg-light);
    padding: 24px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: auto;
}

/* Desktop */
@media (min-width: 768px) {
    .hero {
        padding: 64px 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.15rem;
    }

    .post-card {
        flex: 0 0 180px;
        padding: 16px 20px;
    }

    .post-card h2 {
        font-size: 1rem;
    }

    .post-card p {
        font-size: 0.8rem;
        -webkit-line-clamp: 3;
    }

    .logo {
        font-size: 1.4rem;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    .nav ul {
        gap: 8px;
    }

    .nav ul a {
        font-size: 0.95rem;
        padding: 8px 14px;
    }
}
