/* 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: #385898;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout */
.header {
    background-color: #3b5998;
    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: #4267b2;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

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

/* 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 */
.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 8px;
}

.profile-pic-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    margin-bottom: 10px;
}

/* 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;
}

/* Search Form Styles */
.header-search {
    padding: 5px 12px;
    background-color: #f0f2f5;
}

.header-search .search-input {
    width: 150px;
    padding: 6px;
    margin: 0;
}

.header-search .search-button {
    padding: 6px 8px;
    margin: 0;
}

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

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

.footer-columns {
    /* Flexbox removed, using simple block layout */
    margin-bottom: 20px;
}

.footer-column-left, .footer-column-right {
    /* No width or float needed, they will stack */
}
.footer-column-right {
    margin-top: 10px; /* Add some space between the columns */
}

.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;
}