/* File: css/styleisi.css */

/* Reset dasar agar tampilan konsisten */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: antiquewhite; /* Warna background utama */
    color: #333;
    padding-top: 100px; /* Jarak agar tidak tertutup header fixed */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container Utama */
.container {
    width: 95%;
    max-width: 800px; /* Batasi lebar agar enak dibaca di layar besar */
    margin: 0 auto;
    padding: 20px 10px;
    flex: 1; /* Agar footer terdorong ke bawah */
}

h2 {
    text-align: center;
    color: #07afb1;
    margin-bottom: 30px;
    font-weight: 700;
}

/* --- TOMBOL BUAT POSTINGAN --- */
.post-link {
    display: inline-block;
    background-color: #07afb1;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.post-link:hover {
    background-color: #058e90;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* --- KARTU POSTINGAN --- */
.post {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s;
}

.post:hover {
    transform: translateY(-2px); /* Efek naik sedikit saat hover */
}

/* Header Postingan (Avatar & Nama) */
.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 10px;
}

.avatar-placeholder {
    width: 45px;
    height: 45px;
    background-color: #07afb1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0; /* Agar tidak gepeng */
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: bold;
    color: #333;
    font-size: 1.05em;
}

.post-date {
    font-size: 0.85em;
    color: #888;
}

/* Isi Postingan */
.post h3 {
    margin: 10px 0;
    color: #333;
    font-size: 1.4em;
    line-height: 1.3;
}

.post p {
    font-size: 1em;
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
}

.post img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Tombol Download Dokumen */
.doc-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #f1f1f1;
    color: #333;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9em;
    transition: 0.3s;
    border: 1px solid #ddd;
}

.doc-link:hover {
    background-color: #e0e0e0;
    color: #000;
}

/* --- FOOTER POSTINGAN (Like & Hapus) --- */
.post-actions {
    display: flex;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.like-btn {
    text-decoration: none;
    font-size: 1.5em;
    margin-right: 8px;
    transition: transform 0.2s;
    line-height: 1;
}

.like-btn:hover {
    transform: scale(1.2);
}

.liked { color: #ff4757; } /* Merah */
.not-liked { color: #ccc; } /* Abu-abu */

.like-count {
    font-size: 0.95em;
    color: #555;
    font-weight: 600;
    margin-right: auto; /* Mendorong elemen berikutnya (tombol hapus) ke kanan mentok */
}

.btn-delete {
    color: #ff4757;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    padding: 6px 12px;
    border: 1px solid #ff4757;
    border-radius: 6px;
    transition: 0.3s;
    background-color: transparent;
}

.btn-delete:hover {
    background-color: #ff4757;
    color: white;
}

/* --- KOMENTAR --- */
.comments {
    margin-top: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
}

.comment {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    font-weight: bold;
    color: #07afb1;
    font-size: 0.9em;
    margin-bottom: 4px;
}

.comment p {
    margin: 0;
    font-size: 0.95em;
    color: #555;
    line-height: 1.5;
}

.comment small {
    display: block;
    margin-top: 5px;
    color: #aaa;
    font-size: 0.8em;
}

/* Form Komentar */
.comment-form {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc; 
    font-size: 1em;
}