.profile-container {
max-width: 600px;
margin: 0 auto;
padding: 15px;
padding-top: 20px;
padding-bottom: 80px;
position: relative;
z-index: 5;
}
.profile-header {
background: #252b3d;
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 16px;
overflow: hidden;
margin-bottom: 0;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}
.profile-banner {
width: 100%;
height: 140px;
background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
position: relative;
overflow: hidden;
}
.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.3) 100%);
pointer-events: none;
}
.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;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
transition: transform 0.3s ease;
}

.profile-avatar:hover {
transform: scale(1.05);
}
.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-btn.notification-bell {
padding: 8px 12px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.15);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: visible;
}

.profile-btn.notification-bell:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.25);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-btn.notification-bell.active {
background: linear-gradient(135deg, rgba(74, 158, 255, 0.2), rgba(59, 130, 246, 0.15));
border-color: rgba(74, 158, 255, 0.4);
color: #4a9eff;
box-shadow: 0 0 20px rgba(74, 158, 255, 0.3), inset 0 0 10px rgba(74, 158, 255, 0.1);
}

.profile-btn.notification-bell.active:hover {
background: linear-gradient(135deg, rgba(74, 158, 255, 0.3), rgba(59, 130, 246, 0.25));
border-color: rgba(74, 158, 255, 0.5);
box-shadow: 0 0 25px rgba(74, 158, 255, 0.4), inset 0 0 15px rgba(74, 158, 255, 0.15);
}

.profile-btn.notification-bell i {
font-size: 16px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
display: block;
}

.profile-btn.notification-bell:hover i {
transform: scale(1.15) rotate(10deg);
}

.profile-btn.notification-bell.active i {
filter: drop-shadow(0 0 8px rgba(74, 158, 255, 0.8));
}

.profile-btn.notification-bell:active {
transform: scale(0.95);
}

@keyframes bellRing {
0%, 100% { transform: rotate(0deg); }
10% { transform: rotate(-20deg); }
20% { transform: rotate(20deg); }
30% { transform: rotate(-20deg); }
40% { transform: rotate(20deg); }
50% { transform: rotate(-10deg); }
60% { transform: rotate(10deg); }
70% { transform: rotate(-5deg); }
80% { transform: rotate(5deg); }
90% { transform: rotate(0deg); }
}

@keyframes bellRipple {
0% {
width: 10px;
height: 10px;
opacity: 1;
}
100% {
width: 60px;
height: 60px;
opacity: 0;
}
}

@keyframes bellGlow {
0%, 100% {
box-shadow: 0 0 20px rgba(74, 158, 255, 0.3), inset 0 0 10px rgba(74, 158, 255, 0.1);
}
50% {
box-shadow: 0 0 30px rgba(74, 158, 255, 0.5), inset 0 0 15px rgba(74, 158, 255, 0.2);
}
}

.profile-btn.notification-bell.active {
animation: bellGlow 2s ease-in-out infinite;
}

.profile-details h1 {
font-size: 20px;
font-weight: 700;
color: white;
margin: 0 0 4px 0;
display: flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
}

.profile-name-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 4px;
flex-wrap: wrap;
}

.profile-streak-badge {
display: flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
border-radius: 20px;
font-size: 13px;
font-weight: 600;
white-space: nowrap;
transition: all 0.3s ease;
}

.profile-streak-badge.active {
background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(239, 68, 68, 0.15));
border: 1px solid rgba(251, 146, 60, 0.3);
color: #fb923c;
}

.profile-streak-badge.inactive {
background: rgba(107, 114, 128, 0.15);
border: 1px solid rgba(107, 114, 128, 0.3);
color: #9ca3af;
}

.profile-streak-badge i {
font-size: 16px;
}

.profile-streak-badge.active i {
animation: flicker 2s ease-in-out infinite;
}

@keyframes flicker {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.8; transform: scale(1.1); }
}

.profile-streak-badge .streak-number {
font-size: 16px;
font-weight: 700;
}

.profile-streak-badge .streak-label {
font-size: 12px;
opacity: 0.9;
}

.profile-name-row {
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;
flex-wrap: wrap;
gap: 8px;
max-width: 600px;
margin: 0 auto;
margin-top: 20px;
margin-bottom: 20px;
padding: 0 15px;
justify-content: center;
}
.profile-tab {
flex-shrink: 0;
padding: 10px 18px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
color: rgba(255, 255, 255, 0.6);
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
}
.profile-tab:hover {
color: rgba(255, 255, 255, 0.9);
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.2);
transform: translateY(-1px);
}
.profile-tab.active {
color: white;
background: #4a9eff;
border-color: #4a9eff;
box-shadow: 0 2px 8px rgba(74, 158, 255, 0.3);
}
.profile-tab i {
font-size: 14px;
}
.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: 20px;
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-tabs {
padding: 6px 10px;
gap: 6px;
}
.profile-tab {
padding: 8px 12px;
font-size: 12px;
}
.profile-tab span {
display: none;
}
.profile-tab i {
font-size: 16px;
}
}

.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;
}

.profile-comment-card {
background: #252b3d;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
overflow: hidden;
margin-bottom: 12px;
}
.profile-comment-post-preview {
display: block;
padding: 14px;
background: rgba(0, 0, 0, 0.2);
text-decoration: none;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
transition: background 0.2s ease;
}
.profile-comment-post-preview:hover {
background: rgba(0, 0, 0, 0.3);
}
.profile-comment-post-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 8px;
}
.profile-comment-post-avatar {
width: 24px;
height: 24px;
border-radius: 50%;
object-fit: cover;
background: #1a1f2e;
}
.profile-comment-post-username {
font-size: 13px;
font-weight: 600;
color: rgba(255, 255, 255, 0.7);
display: flex;
align-items: center;
gap: 4px;
}
.profile-comment-post-content {
font-size: 13px;
line-height: 1.4;
color: rgba(255, 255, 255, 0.5);
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.profile-comment-post-image {
margin-top: 10px;
border-radius: 8px;
overflow: hidden;
max-height: 120px;
}
.profile-comment-post-image img {
width: 100%;
height: 100%;
object-fit: cover;
max-height: 120px;
}
.profile-comment-reply {
display: flex;
padding: 14px;
gap: 12px;
}
.profile-comment-reply-line {
width: 2px;
background: linear-gradient(180deg, #4a9eff 0%, rgba(74, 158, 255, 0.2) 100%);
border-radius: 2px;
flex-shrink: 0;
}
.profile-comment-reply-content {
flex: 1;
min-width: 0;
}
.profile-comment-reply-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 8px;
}
.profile-comment-reply-avatar {
width: 28px;
height: 28px;
border-radius: 50%;
object-fit: cover;
background: #1a1f2e;
}
.profile-comment-reply-username {
font-size: 14px;
font-weight: 600;
color: white;
}
.profile-comment-reply-time {
font-size: 12px;
color: rgba(255, 255, 255, 0.4);
margin-left: auto;
}
.profile-comment-reply-text {
font-size: 14px;
line-height: 1.5;
color: rgba(255, 255, 255, 0.9);
word-wrap: break-word;
margin-bottom: 10px;
}
.profile-comment-reply-stats {
display: flex;
gap: 16px;
}
.profile-comment-reply-stats span {
font-size: 12px;
color: rgba(255, 255, 255, 0.4);
display: flex;
align-items: center;
gap: 4px;
}
.profile-comment-reply-stats i {
font-size: 14px;
}
.profile-load-more {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
padding: 20px;
color: rgba(255, 255, 255, 0.5);
font-size: 14px;
}
.profile-load-more-spinner {
width: 20px;
height: 20px;
border: 2px solid rgba(255, 255, 255, 0.1);
border-top: 2px solid #4a9eff;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
.profile-comments-header {
padding: 12px 16px;
background: rgba(74, 158, 255, 0.1);
border-radius: 8px;
margin-bottom: 12px;
font-size: 13px;
font-weight: 600;
color: #4a9eff;
display: flex;
align-items: center;
gap: 8px;
}
.profile-comments-header i {
font-size: 14px;
}
.profile-highlighted-comment {
background: rgba(74, 158, 255, 0.05);
border-left: 3px solid #4a9eff;
border-radius: 0 8px 8px 0;
padding-left: 12px !important;
margin-bottom: 8px;
}
.profile-comment-reply-indicator {
font-size: 11px;
color: rgba(255, 255, 255, 0.4);
background: rgba(255, 255, 255, 0.05);
padding: 2px 6px;
border-radius: 4px;
display: inline-flex;
align-items: center;
gap: 3px;
margin-left: 6px;
}
.profile-comment-reply-indicator i {
font-size: 10px;
}
.profile-view-all-comments {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 12px;
margin-top: 8px;
background: rgba(255, 255, 255, 0.03);
border-radius: 8px;
color: rgba(255, 255, 255, 0.6);
font-size: 13px;
text-decoration: none;
transition: all 0.2s ease;
}
.profile-view-all-comments:hover {
background: rgba(255, 255, 255, 0.06);
color: white;
}
.profile-view-all-comments i {
font-size: 14px;
}
@media (max-width: 640px) {
.profile-comments-header {
padding: 10px 12px;
font-size: 12px;
}
.profile-view-all-comments {
padding: 10px;
font-size: 12px;
}
.profile-tab span {
display: none;
}
.profile-tab i {
font-size: 16px;
}
}

.profile-mod-card, .profile-schematic-card, .profile-board-card {
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
overflow: hidden;
margin-bottom: 12px;
transition: all 0.2s ease;
cursor: pointer;
display: flex;
flex-direction: row;
align-items: stretch;
text-decoration: none;
}
.profile-mod-card:hover, .profile-schematic-card:hover, .profile-board-card:hover {
border-color: rgba(74, 158, 255, 0.4);
transform: translateX(4px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
background: rgba(255, 255, 255, 0.05);
}
.profile-card-image-wrapper {
width: 180px;
height: 180px;
background: rgba(0, 0, 0, 0.2);
overflow: hidden;
flex-shrink: 0;
line-height: 0;
font-size: 0;
}
.profile-card-image {
width: 100%;
height: 100%;
object-fit: contain;
transition: transform 0.3s ease;
}
.profile-mod-card:hover .profile-card-image,
.profile-schematic-card:hover .profile-card-image,
.profile-board-card:hover .profile-card-image {
transform: scale(1.05);
}
.profile-card-content {
padding: 14px 16px;
display: flex;
flex-direction: column;
gap: 8px;
flex: 1;
min-width: 0;
}
.profile-card-title {
font-size: 16px;
font-weight: 600;
color: white;
margin: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
transition: color 0.2s ease;
line-height: 1.2;
}
.profile-mod-card:hover .profile-card-title,
.profile-schematic-card:hover .profile-card-title,
.profile-board-card:hover .profile-card-title {
color: #4a9eff;
}
.profile-card-description {
font-size: 13px;
color: rgba(255, 255, 255, 0.7);
margin: 0;
line-height: 1.5;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.profile-card-meta {
display: flex;
align-items: center;
gap: 16px;
font-size: 12px;
color: rgba(255, 255, 255, 0.7);
padding-top: 8px;
border-top: 1px solid rgba(255, 255, 255, 0.08);
margin-top: auto;
}
.profile-card-stat {
display: flex;
align-items: center;
gap: 5px;
font-weight: 500;
}
.profile-card-stat i {
font-size: 12px;
}
.profile-schematic-like-btn,
.profile-schematic-download-btn {
display: inline-flex;
align-items: center;
gap: 5px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 6px;
padding: 6px 10px;
color: rgba(255, 255, 255, 0.7);
font-size: 12px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
}
.profile-schematic-like-btn:hover,
.profile-schematic-download-btn:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.2);
color: white;
transform: translateY(-1px);
}
.profile-schematic-like-btn i,
.profile-schematic-download-btn i {
font-size: 12px;
}
.profile-schematic-like-btn.liked {
background: rgba(239, 68, 68, 0.15);
border-color: rgba(239, 68, 68, 0.3);
color: #ef4444;
}
.profile-schematic-like-btn.liked:hover {
background: rgba(239, 68, 68, 0.25);
border-color: rgba(239, 68, 68, 0.4);
}
.profile-schematic-download-btn.downloaded {
background: rgba(16, 185, 129, 0.15);
border-color: rgba(16, 185, 129, 0.3);
color: #10b981;
}
@media (max-width: 640px) {
.profile-mod-card, .profile-schematic-card, .profile-board-card {
flex-direction: column;
}
.profile-card-image-wrapper {
width: 100%;
height: 160px;
}
.profile-card-content {
padding: 12px;
}
.profile-card-title {
font-size: 15px;
}
.profile-card-description {
font-size: 12px;
-webkit-line-clamp: 1;
line-clamp: 1;
}
}
