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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: white;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: #13c3ba;
}

.nav {
    display: flex;
    gap: 25px;
}

.nav button {
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 15px;
    color: #666;
    transition: all 0.2s;
    font-weight: 500;
}

.nav button:hover {
    color: #13c3ba;
}

.nav button.active {
    color: #13c3ba;
    border-bottom: 2px solid #13c3ba;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-primary {
    background: #13c3ba;
    color: white;
}

.btn-primary:hover {
    background: #10a79f;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 2px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.full-page {
    max-width: 900px;
}

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

.modal-header h2 {
    font-size: 22px;
    font-weight: 600;
}

.close {
    font-size: 26px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

input, textarea {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #13c3ba;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* Posts */
.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btns {
    display: flex;
    gap: 10px;
}

.filter-btns button {
    padding: 8px 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    background: white;
    color: #666;
    font-size: 14px;
    transition: all 0.2s;
}

.filter-btns button:hover {
    border-color: #13c3ba;
    color: #13c3ba;
}

.filter-btns button.active {
    background: #13c3ba;
    color: white;
    border-color: #13c3ba;
}

.posts {
    display: grid;
    gap: 20px;
}

.post {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.post:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.post-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #222;
}

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

.post-content {
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-actions {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.post-action {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: color 0.2s;
}

.post-action:hover {
    color: #13c3ba;
}

.post-action.liked {
    color: #ff5e5b;
}

.post-action.no-click {
    pointer-events: none;
}

/* Profile */
.profile-header {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.profile-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #13c3ba;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: 600;
}

.profile-info h2 {
    font-size: 22px;
    margin-bottom: 5px;
}

.profile-info p {
    color: #888;
    font-size: 14px;
}

/* About */
.about-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.about-content h2 {
    color: #13c3ba;
    font-size: 28px;
    margin-bottom: 25px;
}

.about-content h3 {
    font-size: 20px;
    margin: 25px 0 12px;
    color: #222;
}

.about-content p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

/* Comments */
.comments-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.comments-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.comment {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.comment-author {
    font-weight: 600;
    color: #13c3ba;
    margin-bottom: 5px;
    font-size: 14px;
}

.comment-content {
    color: #444;
    line-height: 1.5;
    font-size: 14px;
}

.comment-input {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.hidden {
    display: none !important;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #888;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.image-upload {
    margin: 10px 0;
}

.image-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.image-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.post-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.post-images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.post-images img:hover {
    transform: scale(1.05);
}

.dream-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 25px 0;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.dream-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.dream-images img:hover {
    transform: scale(1.02);
}

.dream-content-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav.active {
        display: flex;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }
}
