body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* navbar */
.navbar {
    background-color: #333;
    color: white;
    height: 70px;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 12px rgba(0,0,0,0.25);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 36px;
}

.logo a {
    font-size: 26px;
    font-weight: 600;
    color: white;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 22px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.nav-links a:hover {
    text-decoration: underline;
}

.nav-right {
    display: flex;
    gap: 12px;
}

.logout-link {
    color: #ddd;
    text-decoration: none;
    font-size: 14px;
}

.logout-link:hover {
    color: white;
    text-decoration: underline;
}

/* layout */
.main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* box */
.box {
    background: white;
    padding: 30px;
    width: 420px;
    height: 120px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

/* landing */
.landing {
    text-align: center;
    max-width: 600px;
}

.landing h1 {
    font-size: 32px;
}

/* button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 120px;
    height: 44px;

    padding: 0;
    border: none;
    border-radius: 12px;

    font-size: 16px;
    font-weight: 600;
    font-family: Arial, sans-serif;
    line-height: 1;

    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;

    appearance: none;
    -webkit-appearance: none;
}

.btn:hover {
    transform: translateY(-2px);
}

/* animation */
.fade-line {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}


.container {
    width: 820px;
    max-width: 90%;
    margin: 60px auto;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.count-text {
    font-size: 20px;
    color: #3e3c3c;
}

.search-area {
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 999px;
    font-size: 14px;
    box-sizing: border-box;
}

.search-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 999px;
    background: #6c757d;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

.clear-link {
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.post {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.content {
    margin: 0;
    font-size: 15px;
    
}


.post-header {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.post-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.private-label {
    margin-left: auto;
    opacity: 0.7;
    font-size: 12px;
    color: #999;
}

.username {
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.dot {
    margin: 0 6px;
}

.time {
    font-size: 12px;
    color: #999;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.delete-btn,
.comment-toggle {
    background: none;
    border: none;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}

.delete-btn:hover {
    color: #e74c3c;
}

.comment-toggle:hover {
    color: #1877f2;
}

.edit-link {
    text-decoration: none;
}

.comments {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.comment-box {
    display: none;
}

.comment {
    background: #f7f7f7;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.comment-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-username {
    font-size: 11px;
    color: #999;
    margin-left: 6px;
}

.comment-user-link {
    color: #999;
    text-decoration: none;
}

.comment-user-link:hover {
    text-decoration: underline;
    color: #555;
}

.comment-form {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.comment-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 13px;
}

.comment-btn {
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
}

.comment-btn:hover {
    background: #0f5ed7;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #ccc;
}

.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination a {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 4px;
    border-radius: 6px;
    background: #eee;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.pagination a:hover {
    background: #ddd;
}

.post-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.post-textarea {
    width: 100%;
    min-height: 100px;
    border-radius: 10px;
    border: 1px solid #ccc;
    padding: 12px;
    font-size: 14px;
    resize: none;
    box-sizing: border-box;
    overflow: hidden;
}

.post-options {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}

.post-submit {
    display: flex;
    justify-content: flex-end;
}

.section-title {
    margin-bottom: 10px;
}

.edit-textarea {
    width: 100%;
    min-height: 140px;
    border-radius: 10px;
    border: 1px solid #ccc;
    padding: 12px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}

.visibility {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.save-btn {
    background: #4CAF50;
    color: white;
}

.save-btn:hover {
    background: #45a049;
}

.cancel-btn {
    background: #ddd;
    color: #333;
}

.cancel-btn:hover {
    background: #ccc;
}

.auth-page {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;

    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 320px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.form-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

.auth-btn {
    width: 100%;
    padding: 10px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
}

.auth-btn:hover {
    background: #5a6268;
}

.extra {
    margin-top: 12px;
    font-size: 14px;
}

.extra a {
    color: #555;
    text-decoration: none;
}

.extra a:hover {
    text-decoration: underline;
}

.error {
    color: red;
    font-size: 13px;
    margin-bottom: 10px;
}

.profile-card {
    background: white;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 26px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
}

.avatar-preview,
.avatar-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    background: #d8d8d8;
    display: block;
}

.profile-basic h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: #222;
}

.profile-basic p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #444;
    font-weight: 600;
}

.form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 14px;
    background: white;
}

.profile-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: Arial, sans-serif;
}

.profile-save-btn {
    width: auto;
    padding: 0 22px;
}

.error-box {
    background: #fdecea;
    color: #b42318;
    border: 1px solid #f5c2c0;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
}

.hint {
    color: #777;
    font-size: 13px;
    margin-top: 6px;
}

.social-card {
    background: white;
    border-radius: 16px;
    padding: 30px 36px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 18px;
}

.social-block {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 20px;
}

.social-block h3 {
    margin: 0 0 14px 0;
    font-size: 18px;
    color: #222;
}

.user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.user-row:last-child {
    border-bottom: none;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #d8d8d8;
}

.user-name {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.user-name:hover {
    text-decoration: underline;
}

.empty-text {
    color: #777;
    font-size: 14px;
    margin: 0;
}

@media (max-width: 760px) {
    .social-grid {
        grid-template-columns: 1fr;
    }

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

.profile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.profile-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.avatar-large {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #ccc;
}

.avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #ccc;
}

.profile-text h2 {
    margin: 0;
    font-size: 28px;
    color: #222;
}

.profile-bio {
    margin-top: 20px;
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
}

.follow-btn,
.unfollow-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 14px;
}

.follow-btn {
    background: #79abec;
    color: white;
}

.follow-btn:hover {
    background: #367eea;
}

.unfollow-btn {
    background: #eeeeee;
    color: #333;
}

.unfollow-btn:hover {
    background: #dddddd;
}

.empty-box {
    background: white;
    padding: 24px;
    border-radius: 12px;
    color: #777;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

.user-profile-post-content {
    color: #222;
    line-height: 1.6;
}
