.profile-container {
max-width: 600px;
margin: 0 auto;
padding: 15px;
padding-top: 100px;
padding-bottom: 80px;
position: relative;
z-index: 5;
}
.profile-header {
background: #252b3d;
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 12px;
overflow: hidden;
margin-bottom: 0;
}
.profile-banner {
width: 100%;
height: 140px;
background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
position: relative;
}
.profile-banner::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(180deg, transparent 0%, rgba(26, 31, 46, 0.2) 100%);
}
.profile-banner img {
width: 100%;
height: 100%;
object-fit: cover;
position: relative;
z-index: 1;
}
.profile-info {
padding: 16px 20px 20px;
position: relative;
}
.profile-top {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 16px;
}
.profile-avatar {
width: 80px;
height: 80px;
border-radius: 50%;
border: 4px solid #252b3d;
object-fit: cover;
background: #1a1f2e;
margin-top: -50px;
}
.profile-actions {
display: flex;
gap: 8px;
}
.profile-btn {
padding: 8px 16px;
border-radius: 8px;
border: 1px solid rgba(255, 255, 255, 0.15);
background: rgba(255, 255, 255, 0.05);
color: white;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 6px;
}
.profile-btn:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.25);
}
.profile-btn.primary {
background: #4a9eff;
color: white;
border: none;
font-weight: 600;
position: relative;
overflow: hidden;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.profile-btn.primary:hover {
background: #3b8eef;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}
.profile-btn.primary:active {
transform: scale(0.98);
}
.profile-btn.primary.following {
background: rgba(74, 158, 255, 0.15);
color: #4a9eff;
border: 1px solid rgba(74, 158, 255, 0.3);
}
.profile-btn.primary.following:hover {
background: rgba(239, 68, 68, 0.15);
color: #ef4444;
border-color: rgba(239, 68, 68, 0.3);
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}
.profile-btn.primary.following:hover #follow-text {
display: none;
}
.profile-btn.primary.following:hover #follow-hover-text {
display: inline;
}
.profile-btn.primary.following:hover i {
animation: shake 0.4s ease;
}
.follow-hover-text {
display: none;
}
@keyframes shake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-3px); }
75% { transform: translateX(3px); }
}
.profile-btn.primary::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 80%, transparent 100%);
transform: translateX(-100%);
transition: transform 0.6s ease;
border-radius: 8px;
}
.profile-btn.primary:hover::after {
transform: translateX(100%);
}
.profile-btn.primary:active {
transform: scale(0.96);
box-shadow: 0 2px 8px rgba(74, 158, 255, 0.4);
}
.profile-btn.primary.following:active {
box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}
.profile-details h1 {
font-size: 20px;
font-weight: 700;
color: white;
margin: 0 0 4px 0;
display: flex;
align-items: center;
gap: 6px;
}
.profile-badge {
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 16px;
}
.profile-username {
color: rgba(255, 255, 255, 0.5);
font-size: 14px;
margin: 0 0 12px 0;
}
.profile-bio {
color: rgba(255, 255, 255, 0.8);
font-size: 15px;
line-height: 1.5;
margin: 0 0 16px 0;
}
.profile-stats {
display: flex;
gap: 20px;
padding-top: 16px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.profile-stat {
display: flex;
align-items: baseline;
gap: 4px;
}
.profile-stat-value {
font-size: 16px;
font-weight: 700;
color: white;
}
.profile-stat-label {
font-size: 14px;
color: rgba(255, 255, 255, 0.5);
}
.profile-tabs {
display: flex;
gap: 0;
max-width: 600px;
margin: 0 auto;
margin-bottom: 15px;
padding: 0 15px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
position: relative;
}
.profile-tab {
flex: 1;
padding: 14px 16px;
background: transparent;
border: none;
color: rgba(255, 255, 255, 0.5);
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: color 0.3s ease;
text-align: center;
position: relative;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
}
.profile-tab:hover {
color: rgba(255, 255, 255, 0.8);
}
.profile-tab.active {
color: white;
}
.profile-tabs::after {
content: '';
position: absolute;
bottom: -1px;
left: 0;
height: 2px;
background: white;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
width: 50%;
}
.profile-tabs:has(.profile-tab:nth-child(1).active)::after {
transform: translateX(0%);
}
.profile-tabs:has(.profile-tab:nth-child(2).active)::after {
transform: translateX(100%);
}
.loading-spinner {
display: flex;
justify-content: center;
align-items: center;
padding: 40px;
color: #ffffff;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.profile-empty {
text-align: center;
padding: 60px 20px;
color: rgba(255, 255, 255, 0.5);
}
.profile-empty i {
font-size: 48px;
margin-bottom: 16px;
opacity: 0.5;
}
.profile-empty p {
font-size: 16px;
margin: 0;
}
@media (max-width: 640px) {
.profile-container {
padding: 10px;
padding-top: 90px;
padding-bottom: 100px;
}
.profile-banner {
height: 120px;
}
.profile-info {
padding: 12px 16px 16px;
}
.profile-top {
flex-direction: column;
gap: 12px;
}
.profile-avatar {
width: 70px;
height: 70px;
margin-top: -40px;
}
.profile-actions {
width: 100%;
}
.profile-btn {
flex: 1;
justify-content: center;
}
.profile-details h1 {
font-size: 18px;
}
.profile-stats {
gap: 16px;
flex-wrap: wrap;
}
.profile-tab {
padding: 12px;
font-size: 13px;
}
}

.profile-container .posts-container {
padding-top: 0 !important;
margin-top: 0 !important;
padding: 0 15px !important;
}
.profile-container .posts-feed {
margin-top: 0;
padding-top: 0;
}

.profile-loading {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px 20px;
gap: 16px;
}
.profile-loading-spinner {
width: 40px;
height: 40px;
border: 3px solid rgba(255, 255, 255, 0.1);
border-top: 3px solid #4a9eff;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
.profile-loading-text {
color: rgba(255, 255, 255, 0.6);
font-size: 14px;
font-weight: 500;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

.profile-end {
text-align: center;
padding: 30px 20px 20px;
color: rgba(255, 255, 255, 0.5);
font-size: 14px;
font-weight: 500;
}
.profile-end-emoji {
font-size: 32px;
margin-bottom: 12px;
display: block;
animation: float 3s ease-in-out infinite;
}
