/* assets/css/style.css */

/* Basic Reset for older devices */
* {
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    background-color: #f0f2f5;
    color: #1c1e21;
    font-size: 14px;
    line-height: 1.4;
}

a {
    color: #32c9a7;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout */
.header {
    background-color: #29487d;
    color: #fff;
    padding: 8px 12px;
    border-bottom: 1px solid #29487d;
}

.header h1 a {
    color: #fff;
    font-size: 20px;
    text-decoration: none;
}

.nav a {
    color: #fff;
    font-weight: bold;
}

.main-content {
    padding: 10px;
    /* max-width removed for small screens */
    margin: 0 auto;
    min-height: calc(100vh - 200px); /* This might not work on all Java phones, but it's okay */
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="date"],
input[type="password"],
textarea {
    width: 95%; /* Use percentage for better compatibility */
    padding: 8px;
    margin: 4px 0;
    border: 1px solid #dddfe2;
    border-radius: 4px;
}

input[type="submit"] {
    background-color: #32c9a7;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #1b5e20;
}

/* Post Styling */
.post-box, .post {
    background-color: #fff;
    border: 1px solid #dddfe2;
    border-radius: 3px;
    padding: 12px;
    margin-bottom: 10px;
}

.post .post-header {
    margin-bottom: 8px;
}

.post-box textarea {
    height: 60px;
    border: none;
    resize: none;
}

.post p {
    margin-bottom: 8px;
}

.post small {
    color: #606770;
}

.post-actions {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f2f5;
}

/* Profile Picture Styles - Java/Button phone compatible */
.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 6px;
    border: 1px solid #ccc;
}

.profile-pic-large {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    display: block;
    margin-bottom: 10px;
    border: 1px solid #ccc;
}

/* Comment Styling */
.comment-box, .comments-section {
    background-color: #fff;
    border: 1px solid #dddfe2;
    padding: 12px;
    margin-top: 10px;
}

.comment {
    border-bottom: 1px solid #f0f2f5;
    padding: 8px 0;
}

.comment:last-child {
    border-bottom: none;
}

.comment-content {
    margin-left: 8px;
    display: inline-block; /* Changed for older browsers */
}

.comment-content p {
    margin-bottom: 4px;
}

/* Header inner layout: logo + searchbar side by side */
.header-inner {
    overflow: hidden;
    margin-bottom: 5px;
}

.header-logo-link {
    float: left;
    display: inline;
    margin-right: 6px;
    text-decoration: none;
}

.header-logo-img {
    height: 30px;
    width: auto;
    border: none;
    vertical-align: middle;
}

.header-logo-fallback {
    color: #32c9a7;
    font-size: 22px;
}

.header-search-form {
    overflow: hidden;
}

.header-search-btn {
    float: right;
    padding: 7px 12px;
    margin: 0;
    border: none;
    border-radius: 0 4px 4px 0;
    background-color: #4a6491;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.header-search-input {
    display: block;
    width: 100%;
    padding: 7px 8px;
    margin: 0;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 13px;
    background: #fff;
    color: #1c1e21;
    box-sizing: border-box;
}

/* --- START: SIMPLIFIED FOOTER STYLES (Java/Button Phone Compatible) --- */

.page-footer {
    background-color: #364049;
    color: #fff;
    padding: 15px;
    clear: both;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.footer-column-left, .footer-column-right {
    width: 48%;
}

.footer-column-right {
    text-align: right;
}

.page-footer a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.page-footer a:hover {
    text-decoration: underline;
}

.page-footer .copyright {
    text-align: center;
    font-size: 13px;
    color: #ccc;
    margin-top: 15px;
    border-top: 1px solid #555;
    padding-top: 15px;
}
/* --- END: SIMPLIFIED FOOTER STYLES --- */

/* Other styles (notifications, messages, etc.) */
.notification-list, .conversation-list { background-color: #fff; border: 1px solid #dddfe2; }
.notification-item, .conversation-item { padding: 10px; border-bottom: 1px solid #f0f2f5; }
.chat-window { height: 300px; background: #fff; border: 1px solid #dddfe2; padding: 10px; overflow-y: scroll; margin-bottom: 10px; }
.message { margin-bottom: 10px; padding: 8px; border-radius: 10px; max-width: 80%; }
.message-sent { background-color: #0084ff; color: #fff; margin-left: 19%; /* Emulate margin-left: auto */ }
.message-received { background-color: #e4e6eb; color: #050505; }
.profile-actions a { display: inline-block; background-color: #42b72a; color: #fff; padding: 8px 12px; border-radius: 5px; text-decoration: none; margin-bottom: 10px; }

/* Styles for Shared Post Content */
.shared-post-content {
    border: 1px solid #dddfe2;
    padding: 10px;
    margin-top: 10px;
    border-radius: 3px;
    background-color: #f0f2f5;
}

.shared-post-content .post-header {
    margin-bottom: 5px;
}
/* ── Verified Badge (Gold, Facebook style octagon) ── */
.verified-badge {
    display: inline-block;
    vertical-align: middle;
    margin-left: 3px;
    width: 18px;
    height: 18px;
    line-height: 1;
}

/* ── Membership Badge (Blue, Facebook style octagon) ── */
.membership-badge {
    display: inline-block;
    vertical-align: middle;
    margin-left: 3px;
    width: 18px;
    height: 18px;
    line-height: 1;
}

/* ── Post Image — fixed display size ── */
.post-img-fixed {
    display: block;
    max-width: 100%;
    max-height: 160px;
    width: auto;
    height: auto;
    border-radius: 3px;
    margin-top: 6px;
    border: 1px solid #dddfe2;
}

/* ── Pagination ── */
.pagination {
    background-color: #fff;
    border: 1px solid #dddfe2;
    border-radius: 3px;
    padding: 10px 12px;
    margin-bottom: 10px;
    text-align: center;
}

.feed-end-message {
    background-color: #fff;
    border: 1px solid #dddfe2;
    border-radius: 3px;
    padding: 12px;
    margin-bottom: 10px;
    text-align: center;
    color: #65676b;
    font-size: 13px;
}