body{display:flex;justify-content:center;align-items:center;flex-direction:column;padding:0;margin:0;font-family:Arial,sans-serif;background-color:#ffffff;background-attachment:fixed}
p{padding: 8px; 0}
.corner-button{z-index:2;position:fixed;top:0;left:0;width:140px;height:140px;background-color: #ffd7b8;
opacity: 1;
background-image: radial-gradient(circle at center center, #f59c07, #ffd7b8), repeating-radial-gradient(circle at center center, #f59c07, #f59c07, 14px, transparent 28px, transparent 14px);
background-blend-mode: multiply;border-radius:0 0 100% 0;display:flex;align-items:center;justify-content:center;text-decoration:none;color:black;font-size:14px;font-weight:bold;box-shadow:0 4px 6px rgba(0,0,0,0.44);transition:background 0.3s,transform 0.9s}
.corner-button:hover{opacity: 0.9;transform:scale(1.2)}
.corner-button:active{opacity: 0.7;transform:scale(0.96)}
.container{display:flex;justify-content:center;align-items:center;width:100%;padding-top:220px;padding-bottom:40px}
.profile-card{background:white;border-radius:15px;box-shadow:0 4px 6px rgba(0,0,0,0.1);text-align:center;max-width:1050px; min-width:300px; position:relative; margin: 0 20px;}
.profile-header{position:relative;margin-top:-140px}
.avatar{width:240px;height:240px;border-radius:50%;border:5px solid white;object-fit:cover}
.profile-body h2{margin:10px 0;font-size:22px}
.location{color:gray;font-size:14px}
.stats{display:flex;justify-content:space-around;margin:20px 0;padding-bottom:1em;padding-top:1em;background-color:#eee}
.stats div{text-align:center}
.stats strong {    display: block;    font-size: 18px;    color: #000;}
.stats span {    color: #000;}
.stats a {text-decoration: none;}
.stats a span {    text-decoration: underline;    text-decoration-style: dotted;    text-underline-offset: 4px;}
.stats a:hover strong, .stats a:hover span {    color: #444;}
.show-more{background:#ff758c;color:white;border:none;padding:10px 20px;border-radius:20px;cursor:pointer;transition:0.3s}
.show-more:hover{background:#ff5c7a}
.gallery{display:flex;flex-wrap:wrap;justify-content:space-around;gap:0;text-align:left}
.gallery p{padding: 0; margin: 0}
.icon-eye{display:inline-block;width:16px;height:16px;margin-left:0.3rem;background:url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fff"><path d="M12 4.5C7.305 4.5 3.135 7.81 1.5 12c1.635 4.19 5.805 7.5 10.5 7.5s8.865-3.31 10.5-7.5c-1.635-4.19-5.805-7.5-10.5-7.5zm0 12c-2.48 0-4.5-2.02-4.5-4.5S9.52 7.5 12 7.5 16.5 9.52 16.5 12 14.48 16.5 12 16.5zm0-7.5c-1.655 0-3 1.345-3 3s1.345 3 3 3 3-1.345 3-3-1.345-3-3-3z"/></svg>') no-repeat center;background-size:contain}
.icon-star{display:inline-block;width:16px;height:16px;margin-right:0.3rem;background:url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fff"><path d="M13.849 4.22c-.684-1.626-3.014-1.626-3.698 0L8.397 8.387l-4.552.361c-1.775.14-2.495 2.331-1.142 3.477l3.468 2.937-1.06 4.392c-.413 1.713 1.472 3.067 2.992 2.149L12 19.35l3.897 2.354c1.52.918 3.405-.436 2.992-2.15l-1.06-4.39 3.468-2.938c1.353-1.146.633-3.336-1.142-3.477l-4.552-.36-1.754-4.17Z"/></svg>') no-repeat center;background-size:contain}
.comment-card{display:flex;flex-direction:row;width:calc(100%);max-width:500px;aspect-ratio:2.5/1;border:1px solid #eee;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,0.3);overflow:hidden;border-radius:24px 4px 4px 4px;margin:0 0.5rem 1rem 0.5rem}
.comment-photo{flex:1;overflow:hidden;position:relative}
.comment-photo img{width:100%;height:100%;object-fit:cover}
.comment-info{flex:1;display:flex;flex-direction:column;justify-content:space-between;padding:0.6rem;background-color:rgba(164,119,100,0.01);color:#222}
.comment-text{margin:0 0 0.5rem;font-size:0.7rem;line-height:1.4;color:#333}
.comment-text a{color:#444;text-decoration:none}
.comment-meta{font-size:0.9rem;color:#444}
.comment-user{font-weight:bold}
.comment-city{color:#555}
.comment-date{font-size:0.8rem;color:#666;text-align:right}
.photo-info{position:absolute;bottom:0;left:0;right:0;padding:0.5rem;background-color:rgba(164,119,100,0.3);color:#fff;font-size:0.9rem;transition:background-color 0.3s ease}
.photo-info:hover {background-color:rgba(164,119,100,0.8)}
.photo-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;font-weight:bold}
.photo-title a{color:#fff;text-decoration:underline;text-decoration-style:dotted;text-decoration-color:#ccc}
.photo-title a:hover{color:#eee;text-decoration:none}
.photo-meta{display:flex;justify-content:space-between;align-items:center;margin-top:0.3rem}
.photo-date{font-size:0.8rem;align-items:center;display:flex;color:#eee}
.photo-views{display:flex;align-items:center;font-size:0.8rem}
.footer{width:100%; opacity: 0.9; color:#fff; text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9); text-align:center;display:flex;justify-content:space-between;align-items:center;box-shadow:4px 0 6px rgba(0,0,0,0.44)}
.footer .copy{display:flex;align-items:center;padding:1rem}
.footer .views{display:flex;align-items:center;padding:1rem}

 
.about-me {font-style: italic; color: #555; margin-bottom: 10px; font-size: 15px; word-wrap: break-word; padding: 0 15px;}
.edit-bio-btn {background: none; border: 1px dashed #ccc; color: #777; padding: 4px 8px; font-size: 12px; cursor: pointer; border-radius: 4px; margin-bottom: 15px;}
.edit-bio-btn:hover {border-color: #999; color: #333;}
.bio-form-container {margin-bottom: 15px; padding: 0 15px;}
.bio-form-container textarea {width: 100%; height: 60px; padding: 8px; box-sizing: border-box; border: 1px solid #ccc; border-radius: 4px; resize: none; font-family: inherit; font-size: 13px;}
.bio-form-container button {margin-top: 5px; padding: 5px 12px; background-color: #444; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 12px;}

 
.tabs-nav {display: flex; justify-content: center; border-bottom: 2px solid #eee; margin: 20px 0;}
.tab-btn {background: none; border: none; font-size: 16px; padding: 10px 20px; cursor: pointer; color: #777; font-weight: bold; border-bottom: 3px solid transparent; transition: 0.3s;}
.tab-btn:hover {color: #333;}
 
.tab-btn.active {color: #000; border-bottom-color: #333;}
.tab-content {display: none;}
.tab-content.active {display: block; animation: fadeIn 0.4s;}
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }

 
.wall-form {background: #f9f9f9; border: 1px solid #ddd; padding: 15px; border-radius: 8px; margin: 0 auto 20px auto; max-width: 600px; text-align: left; box-sizing: border-box;}
.wall-form textarea {width: 100%; height: 80px; padding: 10px; box-sizing: border-box; border: 1px solid #ccc; border-radius: 6px; resize: none; margin-bottom: 10px; font-family: inherit;}
.wall-form-actions {display: flex; justify-content: space-between; align-items: center;}
.wall-file-input {font-size: 13px; color: #555;}
.wall-submit {background: #333; color: #fff; border: none; padding: 8px 16px; border-radius: 20px; font-weight: bold; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.2);}
.wall-submit:hover {filter: brightness(1.2);}

 
.wall-feed {display: flex; flex-direction: column; align-items: center; gap: 15px;}
.wall-post {background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 15px; max-width: 600px; width: 100%; text-align: left; box-shadow: 0 1px 3px rgba(0,0,0,0.1); box-sizing: border-box;}
.wall-post-date {font-size: 12px; color: #999; margin-bottom: 10px; display: block;}
.wall-post-text {font-size: 15px; color: #222; margin-bottom: 10px; line-height: 1.5; word-wrap: break-word;}
.wall-post-img {max-width: 100%; border-radius: 6px; margin-bottom: 10px; max-height: 400px; object-fit: contain; background: #f0f0f0;}
.wall-post-footer {display: flex; justify-content: flex-end; align-items: center; border-top: 1px solid #f0f0f0; padding-top: 10px;}
.btn-like {background: none; border: none; display: flex; align-items: center; gap: 5px; color: #ff5c7a; font-weight: bold; cursor: pointer; font-size: 14px; transition: 0.2s;}
.btn-like:hover {transform: scale(1.05);}
.btn-like.liked {color: #d12c4b;}
.like-icon {font-size: 18px;}


.chat-btn-container {    margin: 15px 0 20px 0;    text-align: center;    padding: 0 15px;}
.btn-chat {    display: inline-block;    background: #ff758c;    color: white;    border: none;    padding: 10px 24px;    border-radius: 20px;    font-size: 14px;    font-weight: bold;    text-decoration: none;    cursor: pointer;    box-shadow: 0 4px 10px rgba(255, 117, 140, 0.3);    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;}
.btn-chat:hover {    background: #ff5c7a;    transform: translateY(-2px);    box-shadow: 0 6px 15px rgba(255, 92, 122, 0.4);}
.btn-chat:active { transform: translateY(0);}
.btn-chat.disabled, 
.btn-chat:disabled {    background: #e0e0e0 !important;    color: #a0a0a0 !important;    border: 1px solid #d5d5d5;    box-shadow: none !important;    cursor: not-allowed !important;    transform: none !important;}
.hint {    display: block;    font-size: 12px;    color: #777;    margin-top: 8px;    font-style: italic;    line-height: 1.4;    max-width: 400px;    margin-left: auto;    margin-right: auto;}


 
.avatar-container {
    position: relative;
    display: inline-block;
    margin-top: 20px;  
}
 
.avatar-container img.avatar {
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

 
.edit-avatar-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    color: #a47764; 
    opacity: 0; 
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

 
.avatar-container:hover .edit-avatar-icon,
.edit-avatar-icon:hover {
    opacity: 1;
    transform: scale(1.1);  
}


.avatar-form-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.avatar-form-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    text-align: center;
    max-width: 400px;
}

.avatar-form-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}


.custom-file-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
}

.file-label {
    background-color: #f2f2f2;
    padding: 12px 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1em;
    transition: background-color 0.3s;
}

.file-label:hover {
    background-color: #e0e0e0;
}

.custom-file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-name-display {
    display: block;
    margin-top: 10px;
    color: #777;
    font-size: 0.9em;
}


.form-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.submit-btn {
    background-color: #a47764; 
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cancel-btn {
    background-color: #888;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .wall-form-actions {        flex-direction: column;          align-items: stretch;      }    
    .wall-submit {         width: 100%;         margin-top: 5px;     }
    .profile-card{margin: 0; }
}