* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f7f4ef;
    color: #222;
    margin: 0;
    padding: 0;
}

.container {
    width: min(1000px, 92%);
    margin: 0 auto;
}

.navbar {
    background: #7a3e00;
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
}

.brand:hover {
    text-decoration: underline;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-links a,
.nav-user {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-links a:hover {
    text-decoration: underline;
}

.page-title {
    margin-bottom: 1rem;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.form-card {
    max-width: 680px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.input,
.textarea {
    width: 100%;
    padding: 0.75rem;
    margin: 0 0 1rem 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font: inherit;
    background: #fff;
}

.textarea {
    resize: vertical;
}

.button {
    display: inline-block;
    background: #d35400;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    text-decoration: none;
    font: inherit;
    transition: background 0.2s ease;
}

.button:hover {
    background: #b94700;
}

.button.secondary {
    background: #555;
}

.button.secondary:hover {
    background: #444;
}

.button.danger {
    background: #b00020;
}

.button.danger:hover {
    background: #900018;
}

.button.small {
    padding: 0.45rem 0.7rem;
    font-size: 0.85rem;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-link {
    text-decoration: none;
    color: #222;
}

.post-link:hover {
    text-decoration: underline;
}

.meta,
.comment-meta {
    color: #666;
    font-size: 0.9rem;
}

.rating {
    font-weight: bold;
    color: #d35400;
    white-space: nowrap;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.image-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.review-preview,
.review-body {
    line-height: 1.6;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.flash {
    padding: 0.9rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.flash-success {
    background: #dff6dd;
    color: #1f5f2c;
}

.flash-danger {
    background: #ffe0e0;
    color: #7a1020;
}

.flash-warning {
    background: #fff4cc;
    color: #6b5500;
}

.flash-info {
    background: #deefff;
    color: #0f4c75;
}

.comments {
    margin-top: 1rem;
}

.comment {
    border-top: 1px solid #eee;
    padding: 1rem 0;
}

.comment-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.page-indicator {
    color: #555;
}

.delete-form {
    margin-top: 1rem;
}

.auth-note {
    margin-top: 1rem;
    color: #555;
}

.empty-state {
    text-align: center;
    color: #666;
    padding: 2rem 1rem;
}

.feed {
    display: flex;
    flex-direction: column;
}
