* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f0e8;
    color: #333;
    position: relative;
    min-height: 100vh;
}

.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 240, 232, 0.5);
    z-index: -1;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

.header {
    background-color: #e8dcc8;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    cursor: pointer;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.header h1 {
    font-size: 24px;
    color: #5a4a3a;
}

.main {
    padding: 20px;
}

.post-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.post-form h2 {
    font-size: 18px;
    color: #5a4a3a;
    margin-bottom: 10px;
}

.links {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.links a {
    color: #7a6a5a;
    text-decoration: none;
    font-size: 14px;
}

.links a:hover {
    color: #5a4a3a;
    text-decoration: underline;
}

.post-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e8dcc8;
    border-radius: 8px;
    font-size: 15px;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 15px;
}

.post-form textarea:focus {
    outline: none;
    border-color: #d4c4a8;
}

.image-upload {
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-label {
    padding: 6px 12px;
    background-color: transparent;
    color: #888;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    white-space: nowrap;
}

.image-label:hover {
    color: #5a4a3a;
    border-color: #5a4a3a;
}

.image-input {
    display: none;
}

.image-preview {
    margin-top: 10px;
    margin-bottom: 10px;
    position: relative;
}

.image-preview img {
    max-width: 100%;
    border-radius: 8px;
    border: 2px solid #e8dcc8;
}

.image-preview .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.image-preview .remove-image:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.modal .image-upload {
    margin-bottom: 15px;
}

.fab {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #d4c4a8;
    color: #5a4a3a;
    border: none;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.2s, background-color 0.3s;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (max-width: 768px) {
    .post-form {
        display: none;
    }

    .fab {
        display: flex;
    }
}

.fab:hover {
    background-color: #c4b498;
    transform: scale(1.1);
}

.fab:active {
    transform: scale(0.95);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modal-header h2 {
    font-size: 18px;
    color: #5a4a3a;
    margin: 0;
}

.modal-content .links {
    margin-bottom: 15px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #888;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e8dcc8;
    border-radius: 8px;
    font-size: 15px;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 15px;
}

.modal textarea:focus {
    outline: none;
    border-color: #d4c4a8;
}

.post-button {
    background-color: #d4c4a8;
    color: #5a4a3a;
    border: none;
    padding: 12px 30px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: auto;
}

.post-button:hover {
    background-color: #c4b498;
}

.timeline {
    margin-top: 20px;
}

.timeline h2 {
    font-size: 18px;
    color: #5a4a3a;
    margin-bottom: 15px;
}

.post {
    background-color: #ffffffde;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.post-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-info {
    flex: 1;
}

.post-date {
    color: #888;
    font-size: 14px;
}

.post-menu-container {
    position: relative;
}

.post-menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1;
}

.post-menu-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

.post-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    z-index: 100;
}

.post-menu.active {
    display: block;
}

.post-menu .delete-btn {
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    color: #d32f2f;
    font-size: 14px;
}

.post-menu .delete-btn:hover {
    background-color: #fff5f5;
}

.post-content {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
}

.post-image {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.post-image img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}
