/* ========================================
   USER PROFILE STYLES
   Replica of Reddit profile design
   ======================================== */

/* Profile Container */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    background: var(--bg-secondary);
}

/* Profile Header */
.profile-header {
    position: relative;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.profile-banner {
    height: 160px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}

.profile-banner.has-image {
    background-size: cover;
    background-position: center;
}

.profile-info-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.profile-main-info {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding: 0 0 16px;
    position: relative;
    margin-top: -32px;
}

.profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    color: #64748b;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--bg-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.profile-user-info {
    flex: 1;
    padding-bottom: 4px;
}

.profile-display-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 -8px;
}

.profile-username {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.profile-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.profile-action-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s;
}

.profile-action-btn:hover {
    background: var(--hover-bg);
}

.profile-action-btn:active {
    background: var(--hover-bg);
    transform: scale(0.98);
}

.profile-action-btn.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.profile-action-btn.primary:hover {
    background: #2563eb;
}

.profile-action-btn.primary:active {
    background: #2563eb;
    transform: scale(0.98);
}

.profile-action-btn.following {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.profile-action-btn.following:hover {
    background: #fee;
    color: #dc2626;
    border-color: #dc2626;
}

.profile-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.profile-share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    cursor: pointer;
}

.profile-menu-wrapper {
    position: relative;
}

.profile-menu-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s;
}

.profile-menu-btn:hover {
    background: var(--hover-bg);
}

.profile-dropdown-menu {
    position: fixed;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 200px;
    z-index: 10000;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.profile-dropdown-item:hover {
    background: var(--hover-bg);
}

.profile-dropdown-item.danger {
    color: #dc2626;
}

.profile-dropdown-item.danger:hover {
    background: #fee;
}

.profile-dropdown-item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Profile Stats */
.profile-stats {
    display: flex;
    gap: 24px;
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
}

.profile-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-stat-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-stat-clickable:hover {
    transform: translateY(-2px);
}

.profile-stat-clickable:hover .profile-stat-value {
    color: var(--primary);
}

.profile-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Profile Navigation Tabs */
.profile-nav {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 64px;
    z-index: 50;
}

.profile-nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.profile-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.profile-tabs::-webkit-scrollbar {
    display: none;
}

.profile-tab {
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.profile-tab:hover {
    color: var(--text-primary);
    border-bottom-color: var(--border-color);
}

.profile-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Profile Content */
.profile-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
    display: grid;
    gap: 20px;
}

.profile-main-content {
    min-width: 0;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Profile sidebar for mobile - hidden on desktop */
.profile-sidebar-mobile {
    display: none;
}

/* Show profile widgets in right sidebar on desktop */
#profile-sidebar-widgets {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

#profile-sidebar-widgets .profile-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}

/* Profile Card */
.profile-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}

.profile-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px;
}

/* About Section */
.profile-about-content {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
}

.profile-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.profile-info-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.profile-info-link {
    color: var(--primary-color);
    text-decoration: none;
}

.profile-info-link:hover {
    text-decoration: underline;
}

/* Social Links */
.profile-social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.profile-social-link:hover {
    background: var(--border-color);
}

.profile-social-icon {
    width: 18px;
    height: 18px;
}

/* Achievements/Badges */
.profile-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.profile-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px;
    border-radius: 8px;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.profile-badge-item:hover {
    background: var(--border-color);
}

.profile-badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.profile-badge-name {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
}

/* Circles Section */
.profile-circles-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-circle-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-circle-item:hover {
    background: var(--bg-secondary);
}

.profile-circle-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-circle-info {
    flex: 1;
}

.profile-circle-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.profile-circle-members {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Content Items */
.profile-content-item {
    cursor: pointer;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.profile-content-item:hover {
    border-color: var(--text-secondary);
}

.profile-content-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.profile-content-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.profile-content-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.profile-content-body {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.profile-content-footer {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Empty State */
.profile-empty-state {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
}

.profile-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.profile-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.profile-empty-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Edit Profile Modal */
.profile-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.profile-edit-content {
    background: var(--bg-primary);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.profile-edit-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-edit-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.profile-edit-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.profile-edit-close:hover {
    background: var(--bg-secondary);
}

.profile-edit-body {
    padding: 20px;
}

.profile-edit-section {
    margin-bottom: 24px;
}

.profile-edit-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.profile-edit-field {
    margin-bottom: 16px;
}

.profile-edit-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.profile-edit-input,
.profile-edit-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.profile-edit-input:focus,
.profile-edit-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.profile-edit-textarea {
    resize: vertical;
    min-height: 100px;
}

.profile-edit-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Loading State */
.profile-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.profile-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 968px) {
    .profile-content {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        order: -1;
    }
    
    /* Show mobile sidebar on tablet/mobile */
    .profile-sidebar-mobile {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 16px;
    }
    
    /* Hide right sidebar profile widgets on tablet/mobile */
    #profile-sidebar-widgets {
        display: none;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .profile-banner {
        height: 120px;
    }
    
    .profile-main-info {
        flex-direction: column;
        align-items: flex-start;
        margin-top: -40px;
        position: relative;
    }
    
    .profile-avatar {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }
    
    .profile-display-name {
        font-size: 20px;
    }
    
    .profile-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .profile-action-btn {
        flex: 0 0 auto;
        justify-content: center;
        display: flex;
    }
    
    /* Position menu button in top right corner on mobile */
    .profile-menu-wrapper {
        position: absolute;
        top: 50px;
        right: 0;
    }
    
    .profile-menu-btn {
        background: var(--bg-primary);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .profile-stats {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .profile-stat-item {
        min-width: 80px;
    }
    
    .profile-tabs {
        gap: 0;
    }
    
    .profile-tab {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .profile-content {
        padding: 12px;
        gap: 12px;
    }
    
    .profile-card {
        padding: 12px;
    }
    
    .profile-badges-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
    
    .profile-nav {
        top: 56px;
    }
}

/* ========================================
   SAVED ITEMS STYLES
   ======================================== */

.saved-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.saved-item:hover {
    border-color: var(--border-hover);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.saved-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.saved-item-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.saved-item-badge.comment-badge {
    background: #10b981;
}

.saved-badge-icon {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
}

.saved-badge-text {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.saved-item-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.saved-date-icon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.saved-item-content {
    padding: 16px;
    cursor: pointer;
}

.saved-item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.saved-item-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.saved-item-content:hover .saved-item-title {
    color: var(--primary-color);
}

.saved-item-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.saved-item-media {
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
    max-height: 400px;
}

.saved-media-preview {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.saved-comment-context {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.saved-comment-author {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
}

.saved-comment-author:hover {
    text-decoration: none;
}

.saved-comment-context-text {
    color: var(--text-secondary);
}

.saved-comment-thread {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    max-width: 700px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.saved-comment-thread:hover {
    text-decoration: none;
}

.saved-comment-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.saved-comment-body {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    padding: 12px;
    background: var(--bg-secondary);
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.saved-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    gap: 12px;
    flex-wrap: wrap;
}

.saved-item-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.saved-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.saved-stat-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.saved-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.saved-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.saved-action-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.saved-action-btn img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.saved-action-btn.active-upvote img,
.saved-action-btn.active-upvote {
    color: var(--upvote-color);
}

.saved-action-btn.active-upvote img {
    filter: brightness(0) saturate(100%) invert(35%) sepia(89%) saturate(1742%) hue-rotate(359deg) brightness(97%) contrast(96%);
    opacity: 1;
}

.saved-action-btn.active-downvote img,
.saved-action-btn.active-downvote {
    color: var(--downvote-color);
}

.saved-action-btn.active-downvote img {
    filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(1352%) hue-rotate(202deg) brightness(97%) contrast(96%);
    opacity: 1;
}

.saved-action-unsave {
    color: var(--primary-color);
    font-weight: 600;
}

.saved-action-unsave img {
    filter: brightness(0) saturate(100%) invert(35%) sepia(89%) saturate(1742%) hue-rotate(359deg) brightness(97%) contrast(96%);
    opacity: 1;
}

.saved-action-unsave:hover {
    background: rgba(255, 69, 0, 0.1);
    border-color: var(--primary-color);
}

.saved-action-view {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
}

.saved-action-view img {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.saved-action-view:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Responsive adjustments for saved items */
@media (max-width: 768px) {
    .saved-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .saved-item-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .saved-item-stats {
        justify-content: space-around;
    }
    
    .saved-item-actions {
        flex-wrap: wrap;
        justify-content: stretch;
    }
    
    .saved-action-btn {
        flex: 1;
        justify-content: center;
        min-width: 100px;
    }
    
    .saved-comment-thread {
        max-width: 250px;
    }
}

/* ========================================
   PROFILE TAB CONTENT STYLES
   ======================================== */

/* Overview Tab */
.overview-content {
    min-height: 200px;
}

/* Posts, Hidden, Upvoted, Downvoted Tabs */
.posts-content,
.hidden-content,
.upvoted-content,
.downvoted-content {
    min-height: 300px;
}

/* Comments Tab */
.comments-content {
    min-height: 300px;
}

/* Profile Tab Content General Styles */
.profile-tab-content {
    padding: 1rem 0;
}

/* ========================================
   FOLLOWING/FOLLOWERS PAGE
   ======================================== */

.following-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    background: var(--bg-secondary);
}

.following-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
}

.following-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.following-tabs {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    padding: 0 20px;
}

.following-content {
    padding: 20px;
    min-height: 400px;
}

/* User List */
.user-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-card-avatar {
    flex-shrink: 0;
}

.user-card-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.user-card-info {
    flex: 1;
    min-width: 0;
}

.user-card-username {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.user-card-about {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.user-card-stats {
    font-size: 12px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-card-actions {
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .following-header {
        padding: 16px;
    }
    
    .following-header h2 {
        font-size: 20px;
    }
    
    .following-content {
        padding: 16px;
    }
    
    .user-card {
        padding: 12px;
    }
    
    .user-card-avatar img {
        width: 40px;
        height: 40px;
    }
}

/* ========================================
   REPORT USER MODAL
   ======================================== */
.report-user-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
    padding: 20px;
}

.report-user-modal.closing {
    animation: fadeOut 0.2s ease forwards;
}

.report-user-modal .modal-content {
    background: var(--bg-primary);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.report-user-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.report-user-modal .modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.report-user-modal .modal-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.report-user-modal .modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.report-user-modal .modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.report-user-modal .report-intro {
    margin: 0 0 20px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.report-user-modal .report-reasons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report-user-modal .report-reason-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-user-modal .report-reason-option:hover {
    border-color: var(--primary-color);
    background: var(--bg-hover);
}

.report-user-modal .report-reason-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.report-user-modal .report-reason-option input[type="radio"]:checked + .reason-label {
    color: var(--primary-color);
    font-weight: 500;
}

.report-user-modal .reason-label {
    font-size: 0.9375rem;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.report-user-modal .report-description-wrapper {
    margin-top: 20px;
    animation: fadeIn 0.3s ease;
}

.report-user-modal .report-description-wrapper label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.report-user-modal .report-description-wrapper textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.9375rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.report-user-modal .report-description-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.report-user-modal .modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.report-user-modal .btn {
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.report-user-modal .btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.report-user-modal .btn-secondary:hover {
    background: var(--bg-hover);
}

.report-user-modal .btn-danger {
    background: var(--error-color, #ff4444);
    color: #ffffff;
}

.report-user-modal .btn-danger:hover:not(:disabled) {
    background: #e03e3e;
}

.report-user-modal .btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.report-user-modal .spinner-small {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 6px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Dark mode adjustments */
[data-theme="dark"] .report-user-modal .modal-content {
    background: var(--bg-primary, #1a1a1b);
}

[data-theme="dark"] .report-user-modal .report-reason-option {
    background: var(--bg-secondary, #272729);
}

@media (max-width: 480px) {
    .report-user-modal .modal-content {
        max-height: 100vh;
        border-radius: 12px 12px 0 0;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }
    
    .report-user-modal .modal-footer {
        flex-direction: column;
    }
    
    .report-user-modal .btn {
        width: 100%;
    }
}