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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #00bcd4;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

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

/* Grid da Home */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.post-card h2 {
    padding: 15px;
    font-size: 18px;
}

.post-card h2 a {
    color: #333;
    text-decoration: none;
}

.post-card h2 a:hover {
    color: #00bcd4;
}

/* Artigo Individual */
.single-post {
    max-width: 800px;
    margin: 0 auto;
}

.single-post h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #222;
}

.post-content {
    font-size: 18px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    display: block;
    border-radius: 4px;
    margin-left: auto;
    margin-right: auto;
}

.ad-block {
    margin: 30px 0;
    text-align: center;
    clear: both;
}

/* Admin */
.admin-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.admin-form {
    margin-bottom: 30px;
}

.admin-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.admin-form input[type="text"], 
.admin-form input[type="password"],
.admin-form textarea,
.admin-form input[type="file"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn {
    background: #00bcd4;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

.btn:hover {
    background: #0097a7;
}

.btn-danger {
    background: #ff5252;
}

.btn-danger:hover {
    background: #e53935;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

/* Responsividade */
@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
    .single-post h1 {
        font-size: 24px;
    }
}
