@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at 20% 20%, #101530, #02040a);
    color: #fff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ==================================== */
/* --- CẤU TRÚC CHUNG (Sử dụng Flexbox) --- */
/* ==================================== */
.post-section {
    display: flex;
    flex-wrap: wrap;
    max-width: 1400px; /* Tăng max-width để giống view game */
    margin: 20px auto;
    padding: 20px;
    gap: 30px;
    color: #fff;
    background: none; /* Bỏ background tổng thể nếu muốn giống view game */
    box-shadow: none;
}

/* --- Cột Trái (Giữ nguyên cấu trúc/style của view game) --- */
.post-left {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background: rgba(20, 25, 40, 0.8);
    border: 1px solid rgba(0, 180, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    align-self: flex-start;
}

.post-image {
    width: 100%;
    max-height: 250px; /* Giữ nguyên max-height của bạn */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px; /* Thêm margin dưới */
    box-shadow: 0 0 15px #00b4ff40, 0 0 30px #ff006640;
}

.post-title {
    font-size: 2.2rem; /* Đồng bộ với view game */
    font-weight: 700;
    color: #00b4ff;
    text-shadow: 0 0 8px #00b4ff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-meta {
    font-size: 0.95rem; /* Đồng bộ với view game */
    color: #ccc;
    border-bottom: 1px solid rgba(0, 180, 255, 0.2); /* Thêm border dưới */
    padding-bottom: 10px;
    display: block; /* Sửa lại hiển thị meta */
}
.post-meta span {
    display: block;
    margin-bottom: 8px;
}
.post-meta strong {
    color: #fff; /* Đồng bộ với view game */
    font-weight: 600;
}
.status-pending {
    font-weight: bold;
    color: #ffc107;
    margin-top: 15px;
}


/* --- Nội dung chính (Cột phải) --- */
.post-content {
    flex: 2; /* Đồng bộ với view game */
    min-width: 60%;
    background: rgba(20, 25, 40, 0.8); /* Đồng bộ với view game */
    border: 1px solid rgba(0, 180, 255, 0.2); /* Đồng bộ với view game */
    border-radius: 15px;
    padding: 30px;
    font-size: 1.1rem; /* Đồng bộ với view game */
    line-height: 1.7;
    color: #f0f0f0;
}

.post-content .empty-warning {
    padding: 20px;
    background-color: #333;
    color: #ffeb3b;
    border-radius: 8px;
    margin: 0;
}

/* ==================================== */
/* --- RATING & COMMENT SECTIONS (Đồng bộ) --- */
/* ==================================== */

.comments-section {
    flex-basis: 100%; 
    background: rgba(20, 25, 40, 0.8);
    border: 1px solid rgba(0, 180, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px; 
}

.comments-section h2 {
    color: #00b4ff;
    border-bottom: 2px solid rgba(0, 180, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* --- TÓM TẮT ĐÁNH GIÁ --- */
.rating-summary {
    font-size: 1.5rem;
    color: #33ff99;
    margin-bottom: 15px;
}
.rating-summary .avg-score {
    font-weight: bold;
    font-size: 2.5rem;
}
.rating-summary .rating-count {
    font-size: 1rem;
    color: #ccc;
    margin-left: 10px;
}

/* --- FORM ĐÁNH GIÁ & BÌNH LUẬN --- */
.review-form textarea {
    width: 100%;
    background: rgba(30, 35, 60, 0.9);
    border: 1px solid #555;
    border-radius: 10px;
    padding: 12px;
    color: #fff;
    resize: vertical;
    min-height: 90px;
    margin-top: 10px;
}
.review-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00b4ff;
    margin-bottom: 8px;
}
.review-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* --- STAR RATING --- */
.stars {
    display: flex;
    justify-content: flex-start;
    font-size: 2rem;
    margin-bottom: 15px;
    gap: 5px;
    direction: rtl; /* Quan trọng cho CSS Rating */
    text-align: left;
}
.stars input { display: none; }
.stars label {
    font-size: 25px;
    color: #777;
    cursor: pointer;
    transition: 0.3s;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}
.stars input:checked ~ label,
.stars label:hover,
.stars label:hover ~ label {
    color: #ffcc00;
}

/* --- NÚT HÀNH ĐỘNG FORM --- */
.btn-comment {
    background: linear-gradient(90deg, #00b4ff, #ff0066);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: .3s;
}
.btn-comment:hover { opacity: 0.9; }

.delete-btn {
    background: #ff3366;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}
.delete-btn:hover {
    background: #ff0033;
    box-shadow: 0 0 10px #ff0066;
}

/* --- HIỂN THỊ BÌNH LUẬN --- */
.comment-item {
    background: #1b2235;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 3px solid #00b4ff;
}
.comment-item.your-review {
    border: 1px solid #ff0066;
    background-color: rgba(255, 0, 102, 0.1);
    padding: 15px;
    border-radius: 10px;
}
.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #99aacc;
    margin-bottom: 5px;
}
.comment-meta strong { color: #fff; }
.comment-stars { color: #ffcc00; margin-top: 4px; }
.comment-text { font-size: 1rem; color: #ccc; margin: 0; }
.no-comments { color: #ffc107; padding: 10px; text-align: center; }

/* ==================================== */
/* --- ACTIONS (Nút Quay lại) --- */
/* ==================================== */
.actions {
    flex-basis: 100%;
    margin-top: 20px;
    padding: 20px;
    background: rgba(20, 25, 40, 0.8);
    border-radius: 15px;
    display: flex;
    justify-content: flex-start; /* Giữ nút quay lại bên trái */
    align-items: center;
    border: 1px solid rgba(0, 180, 255, 0.2);
}

.btn-back {
    background: rgba(0, 180, 255, 0.2);
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-back:hover {
    background: rgba(0, 180, 255, 0.5);
    box-shadow: 0 0 15px #00b4ff;
}

/* Các quy tắc liên quan đến tải game đã bị loại bỏ */
/* .download-area, .game-price, .btn-download đã bị loại bỏ */

/* ==================================== */
/* --- MOBILE ADJUSTMENTS --- */
/* ==================================== */
@media (max-width: 768px) {
    .post-section {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
    .post-left, .post-content, .comments-section {
        min-width: 100%;
        max-width: 100%;
        padding: 20px;
    }
    .post-title {
        font-size: 1.8rem;
    }
    /* Action area fix */
    .actions {
        justify-content: center;
        padding: 15px;
    }
    .btn-back {
        width: 100%;
        text-align: center;
    }
}