* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #ffb347 0%, #ff7e5f 100%);
    min-height: 100vh;
    color: #333;
}

header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

nav h1 {
    text-align: center;
    margin: 0;
    color: #ff7e5f;
    font-size: 2rem;
}

main {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 1rem 2rem;
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.form-section,
.preview-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-section h2,
.preview-section h2 {
    margin-top: 0;
    color: #ff7e5f;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #f2d2a9;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffb347;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #ffb347 0%, #ff7e5f 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 126, 95, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.post-card {
    background: #fff8f2;
    border-radius: 8px;
    padding: 1.5rem;
    min-height: 200px;
}

.post-titulo {
    color: #333;
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    word-wrap: break-word;
}

.post-conteudo {
    color: #555;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.post-info {
    font-size: 0.875rem;
    color: #e67e22;
    font-weight: 600;
    padding-top: 1rem;
    border-top: 1px solid #f2d2a9;
}

footer {
    text-align: center;
    padding: 2rem;
    color: white;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    main {
        margin: 30px auto;
    }
  
    .container {
        grid-template-columns: 1fr;
    }

    nav h1 {
        font-size: 1.5rem;
    }

    .form-section,
    .preview-section {
        padding: 1.5rem;
    }
}
