/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #2563eb;
}

/* Main content */
.main {
    padding: 40px 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-image-full {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    margin: 1.5rem 0;
}

@media (max-width: 768px) {
    .post-image-full {
        max-height: 300px;
    }
}

/* Footer */
.footer {
    background-color: #fff;
    padding: 2rem 0;
    text-align: center;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
}

/* Responsive Design */
/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 101;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #2563eb;
    position: relative;
    transition: background-color 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #2563eb;
    transition: transform 0.3s;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg) translate(4px, 6px);
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg) translate(4px, -6px);
}

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

    .header .container {
        flex-direction: row;
        justify-content: space-between;
        height: auto;
        padding: 1rem;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        padding: 80px 2rem 2rem;
        transition: right 0.3s ease-in-out;
        z-index: 100;
    }

    .nav.nav-open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

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

.code-container {
    background-color: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.code {
    font-family: monospace;
    font-size: 1.125rem;
    color: #1f2937;
    flex-grow: 1;
}

.btn-copy {
    padding: 0.5rem 1rem;
    background-color: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.3s;
}

.btn-copy:hover {
    background-color: #1d4ed8;
}

.btn-copy.success {
    background-color: #10b981;
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    .post-card {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .header {
        position: static;
        box-shadow: none;
    }

    .post-link {
        display: none;
    }
}
.button-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem auto;
}
.action-button {
    padding: 0.75rem 1.5rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
    text-align: center;
}

.action-button:hover {
    background-color: #1d4ed8;
}
.copy-message {
    margin-top: 1rem;
    padding: 0.5rem;
    background-color: #10b981;
    color: white;
    border-radius: 4px;
    text-align: center;
}