/* File: style.css */
body {
    font-family: Arial, sans-serif;
    background: url('../asset/image/bg.jpg') repeat;
    color: #333;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1 {
    text-align: center;
    color: #333;
}

.post-list-wrapper {
    max-width: 750px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.post {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    padding: 20px;
    box-sizing: border-box;
}

.post-header {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-info {
    font-size: 0.9em;
    color: #888;
}

.post-title {
    font-weight: bold;
    font-size: 1.5em;
    margin: 10px 0;
}

.post-title-link {
    color: #000;
    text-decoration: none;
}

.post-title-link:hover {
    text-decoration: underline;
}

.post-excerpt {
    color: #555;
    font-size: 1em;
}

.post-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.action-button {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px 10px;
    background: #f9f9f9;
    cursor: pointer;
    color: #007bff;
    font-size: 1em;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.action-button:hover {
    background-color: #e9e9e9;
}

/* Responsive styles */
@media (max-width: 768px) {
    .post-list-wrapper {
        padding: 10px;
        max-width: 100%;
    }

    .post {
        margin: 10px;
        padding: 15px;
    }

    .post-title {
        font-size: 1.2em;
    }

    .post-actions {
        flex-direction: column;
        gap: 5px;
    }
}
