/* ========================================
   MODERN PROFILE PAGE STYLES
   ======================================== */

/* Profile Container */
.profile-modern {
    min-height: 100vh;
    padding-bottom: 60px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Hero Banner */
.profile-hero {
    position: relative;
    height: 280px;
    background: #1a1a2e;
    overflow: hidden;
}

.profile-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.03"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.profile-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: var(--bg-primary);
    opacity: 0.9;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.02);
}

/* Profile Card */
.profile-card {
    position: relative;
    max-width: 1200px;
    margin: -120px auto 0;
    padding: 0 20px;
    z-index: 10;
    box-sizing: border-box;
}

.profile-card-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    box-sizing: border-box;
}

/* Profile Header */
.profile-header-modern {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    padding: 30px;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .profile-header-modern {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
}

/* Avatar Section */
.profile-avatar-wrapper {
    position: relative;
}

.profile-avatar-modern {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-avatar-modern:hover {
    transform: scale(1.05);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-edit-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.avatar-role-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Profile Info */
.profile-info-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .profile-name-row {
        justify-content: center;
    }
}

.profile-username-modern {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.profile-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-role {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-role.admin {
    background: #dc2626;
    color: white;
}

.badge-role.vip {
    background: #d97706;
    color: white;
}

.badge-role.editor {
    background: #7c3aed;
    color: white;
}

.badge-role.member {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 500px;
}

.profile-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-meta-item i {
    color: var(--primary-color);
}

/* Profile Actions */
.profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .profile-actions {
        justify-content: center;
        width: 100%;
    }
}

.profile-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.profile-action-btn.primary {
    background: var(--primary-color);
    color: white;
}

.profile-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.profile-action-btn.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.profile-action-btn.secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
}

.profile-action-btn.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.profile-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Stats Bar */
.profile-stats-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .profile-stats-bar {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .profile-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    border-right: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: var(--bg-hover);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Profile Content */
.profile-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 0;
    width: 100%;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .profile-content {
        grid-template-columns: 1fr;
    }
}

/* Main Content */
.profile-main {
    padding: 30px;
    border-right: 1px solid var(--border-color);
    overflow: hidden;
    min-width: 0;
}

@media (max-width: 1024px) {
    .profile-main {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

/* Sidebar */
.profile-sidebar {
    padding: 30px;
    background: var(--bg-secondary);
    overflow: hidden;
    min-width: 0;
}

/* Section Styles */
.profile-section {
    margin-bottom: 30px;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.section-title i {
    color: var(--primary-color);
}

.section-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-link:hover {
    text-decoration: underline;
}

/* Reading Activity */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.activity-item:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.activity-cover {
    width: 50px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.activity-info {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-title a {
    overflow: hidden;
    text-overflow: ellipsis;
}

.content-type-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.content-type-tag.webtoon {
    background: #3b82f6;
    color: white;
}

.content-type-tag.novel {
    background: #f59e0b;
    color: white;
}

.activity-chapter {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Favorites Grid */
.favorites-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 480px) {
    .favorites-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

.favorite-card-modern {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.favorite-card-modern:hover {
    transform: scale(1.05);
}

.favorite-card-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-card-modern .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 12px;
}

.favorite-card-modern:hover .overlay {
    opacity: 1;
}

.favorite-card-modern .title {
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
}

/* Achievements */
.achievements-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.achievement-badge-modern {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.achievement-badge-modern:hover {
    transform: scale(1.1);
}

.achievement-badge-modern.locked {
    opacity: 0.3;
    filter: grayscale(1);
}

/* Comments List */
.comments-list-modern {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item-modern {
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 12px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.comment-manga {
    color: var(--primary-color);
    font-weight: 500;
}

.comment-chapter {
    color: var(--text-muted);
}

.comment-time {
    color: var(--text-muted);
    margin-left: auto;
}

.comment-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Reading Stats Chart */
.stats-chart {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 20px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chart-title {
    font-weight: 600;
    color: var(--text-primary);
}

.chart-period {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100px;
}

.chart-bar {
    flex: 1;
    background: var(--primary-color);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height 0.5s ease;
}

.chart-labels {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.chart-label {
    flex: 1;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Genre Distribution */
.genre-distribution {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.genre-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.genre-name {
    width: 80px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.genre-bar-wrapper {
    flex: 1;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.genre-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.genre-count {
    width: 40px;
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Empty State */
.empty-state-modern {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state-modern i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 16px;
}

.empty-state-modern p {
    margin: 0;
}

/* Edit Profile Modal */
.edit-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.edit-modal-overlay.active {
    display: flex;
}

.edit-modal {
    background: var(--bg-card);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.edit-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.edit-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.edit-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.edit-modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.edit-modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.edit-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}

.edit-modal-footer .btn {
    flex: 1;
}

/* Online Status */
.online-indicator {
    width: 14px;
    height: 14px;
    background: #10b981;
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.online-indicator.offline {
    background: #6b7280;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Discord Card */
.discord-card {
    background: rgba(88, 101, 242, 0.08);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.discord-card.has-banner {
    padding-top: 100px;
}

.discord-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.discord-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: rgba(88, 101, 242, 0.05);
}

.discord-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #5865F2;
}

.discord-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.discord-icon {
    width: 44px;
    height: 44px;
    background: #5865F2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.discord-connected {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.discord-avatar-placeholder {
    width: 40px;
    height: 40px;
    background: #5865F2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.discord-info {
    flex: 1;
}

.discord-username {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.discord-id {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.discord-not-connected {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 14px;
}

.discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.discord-btn:hover {
    background: var(--bg-secondary);
    border-color: #5865F2;
}

.discord-btn-connect {
    background: #5865F2;
    border-color: transparent;
    color: white;
}

.discord-btn-connect:hover {
    background: #4752C4;
    transform: translateY(-2px);
}

/* Discord Badge */
.discord-badge {
    animation: discordPulse 2s ease-in-out infinite;
}

@keyframes discordPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(88, 101, 242, 0); }
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .profile-hero {
        height: 200px;
    }
    
    .profile-card {
        margin-top: -80px;
    }
    
    .profile-card-inner {
        border-radius: 20px;
    }
    
    .profile-main {
        padding: 24px;
    }
    
    .profile-sidebar {
        padding: 24px;
    }
}

/* Mobile Large (481px - 768px) */
@media (max-width: 768px) {
    /* Hero - Daha Kompakt */
    .profile-hero {
        height: 120px;
    }
    
    .profile-card {
        margin-top: -40px;
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .profile-card-inner {
        border-radius: 12px;
        width: 100%;
        overflow: hidden;
    }
    
    /* Header - Minimal ve Temiz */
    .profile-header-modern {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px 12px;
        gap: 10px;
    }
    
    .profile-avatar-wrapper {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    .profile-avatar-modern {
        width: 80px;
        height: 80px;
    }
    
    .avatar-role-badge {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
    }
    
    .avatar-edit-btn {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }
    
    .online-indicator {
        width: 10px;
        height: 10px;
        bottom: 3px;
        right: 3px;
    }
    
    .profile-info-modern {
        width: 100%;
        align-items: center;
    }
    
    .profile-username-modern {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }
    
    .profile-name-row {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .profile-badges {
        justify-content: center;
        gap: 4px;
        flex-wrap: wrap;
    }
    
    .badge-role {
        padding: 2px 8px;
        font-size: 0.65rem;
    }
    
    .profile-bio {
        font-size: 0.85rem;
        max-width: 100%;
        line-height: 1.4;
        margin: 8px 0;
    }
    
    .profile-meta {
        justify-content: center;
        gap: 8px;
        font-size: 0.75rem;
        flex-wrap: wrap;
    }
    
    .profile-meta-item {
        gap: 3px;
        font-size: 0.75rem;
    }
    
    .profile-actions {
        justify-content: center;
        width: 100%;
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .profile-action-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        flex: 1;
        min-width: 100px;
    }
    
    /* Stats Bar - Kompakt Grid */
    .profile-stats-bar {
        padding: 12px 8px;
        gap: 8px;
    }
    
    .stat-item {
        padding: 10px 6px;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    /* Content - Daha Rahat Layout */
    .profile-content {
        width: 100%;
        overflow: hidden;
        padding: 0;
    }
    
    .profile-main {
        padding: 12px 10px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .profile-sidebar {
        padding: 12px 10px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .profile-section {
        width: 100%;
        overflow: hidden;
        margin-bottom: 16px;
        background: var(--bg-card);
        border-radius: 10px;
        padding: 12px;
    }
    
    .section-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .section-title {
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .section-title i {
        font-size: 0.9rem;
    }
    
    .section-link {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    /* Activity List - Kompakt ve Temiz */
    .activity-list {
        width: 100%;
        gap: 8px;
    }
    
    .activity-item {
        padding: 10px;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
        background: var(--bg-secondary);
        border-radius: 8px;
        border: none;
    }
    
    .activity-info {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .activity-cover {
        width: 40px;
        height: 55px;
        flex-shrink: 0;
        border-radius: 6px;
    }
    
    .activity-title {
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 600;
    }
    
    .activity-chapter {
        font-size: 0.75rem;
        margin: 2px 0;
    }
    
    .activity-time {
        font-size: 0.7rem;
    }
    
    .empty-state-modern {
        padding: 24px 12px;
    }
    
    .empty-state-modern i {
        font-size: 2rem;
    }
    
    .empty-state-modern p {
        font-size: 0.85rem;
    }
    
    /* Favorites Grid - Kompakt */
    .favorites-grid-modern {
        width: 100%;
        box-sizing: border-box;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .favorite-card-modern {
        border-radius: 8px;
    }
    
    .favorite-card-modern img {
        border-radius: 8px;
    }
    
    /* Comments - Kompakt */
    .comments-list-modern {
        width: 100%;
        gap: 8px;
    }
    
    .comment-item-modern {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
        background: var(--bg-secondary);
        border-radius: 8px;
    }
    
    .comment-header {
        flex-wrap: wrap;
        gap: 4px;
        margin-bottom: 6px;
    }
    
    .comment-manga {
        font-size: 0.8rem;
        font-weight: 600;
    }
    
    .comment-chapter {
        font-size: 0.7rem;
    }
    
    .comment-time {
        margin-left: 0;
        font-size: 0.7rem;
    }
    
    .comment-text {
        font-size: 0.8rem;
        word-wrap: break-word;
        line-height: 1.4;
    }
    
    /* Stats & Charts - Kompakt */
    .stats-chart {
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .chart-bars {
        height: 70px;
        gap: 4px;
    }
    
    .chart-label {
        font-size: 0.65rem;
    }
    
    .genre-distribution {
        width: 100%;
        gap: 6px;
    }
    
    .genre-item {
        gap: 8px;
    }
    
    .genre-name {
        width: 60px;
        font-size: 0.75rem;
    }
    
    .genre-bar-wrapper {
        height: 6px;
    }
    
    .genre-count {
        width: 25px;
        font-size: 0.7rem;
    }
    
    /* Achievements - Kompakt */
    .achievements-preview {
        gap: 8px;
    }
    
    .achievement-badge-modern {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    /* Discord - Kompakt */
    .discord-card {
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
        border-radius: 10px;
    }
    
    .discord-card.has-banner {
        padding-top: 80px;
    }
    
    .discord-card-header {
        margin-bottom: 10px;
    }
    
    .discord-card-header h3 {
        font-size: 0.9rem;
    }
    
    .discord-card-header p {
        font-size: 0.75rem;
    }
    
    .discord-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .discord-connected {
        padding: 8px;
        gap: 8px;
        border-radius: 8px;
    }
    
    .discord-avatar-img,
    .discord-avatar-placeholder {
        width: 32px !important;
        height: 32px !important;
    }
    
    .discord-username {
        font-size: 0.85rem;
    }
    
    .discord-id {
        font-size: 0.7rem;
    }
    
    .discord-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    /* Edit Modal Mobile */
    .edit-modal {
        border-radius: 16px;
        max-height: 85vh;
    }
    
    .edit-modal-header {
        padding: 16px 20px;
    }
    
    .edit-modal-title {
        font-size: 1.1rem;
    }
    
    .edit-modal-body {
        padding: 20px;
    }
    
    .edit-modal-footer {
        padding: 16px 20px;
        flex-direction: column;
    }
    
    .edit-modal-footer .btn {
        width: 100%;
    }
}

/* Mobile Small (max-width: 480px) - Extra Kompakt */
@media (max-width: 480px) {
    .profile-modern {
        padding-bottom: 40px;
        overflow-x: hidden !important;
    }
    
    .profile-hero {
        height: 100px;
    }
    
    .profile-card {
        margin-top: -35px;
        padding: 0 8px;
        width: 100%;
        max-width: 100%;
    }
    
    .profile-card-inner {
        border-radius: 10px;
        overflow: hidden;
        width: 100%;
    }
    
    .profile-header-modern {
        padding: 14px 10px;
        gap: 8px;
        overflow: hidden;
    }
    
    /* Avatar - Kompakt */
    .profile-avatar-wrapper {
        width: 70px !important;
        height: 70px !important;
        margin: 0 auto !important;
    }
    
    .profile-avatar-modern {
        width: 70px !important;
        height: 70px !important;
        border-width: 2px;
    }
    
    .avatar-role-badge {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .avatar-edit-btn {
        width: 24px;
        height: 24px;
        border-width: 2px;
    }
    
    .avatar-edit-btn i {
        font-size: 0.65rem;
    }
    
    .online-indicator {
        width: 9px;
        height: 9px;
        border-width: 2px;
        bottom: 2px;
        right: 2px;
    }
    
    .profile-info-modern {
        width: 100%;
        overflow: hidden;
        word-wrap: break-word;
    }
    
    .profile-username-modern {
        font-size: 1.1rem;
        word-break: break-word;
        margin-bottom: 4px;
    }
    
    .profile-badges {
        gap: 4px;
        flex-wrap: wrap;
    }
    
    .badge-role {
        padding: 2px 6px;
        font-size: 0.6rem;
    }
    
    .profile-bio {
        font-size: 0.8rem;
        line-height: 1.4;
        word-wrap: break-word;
        margin: 6px 0;
    }
    
    .profile-meta {
        flex-direction: column;
        gap: 6px;
        font-size: 0.7rem;
    }
    
    .profile-meta-item {
        font-size: 0.7rem;
    }
    
    .profile-actions {
        flex-direction: column;
        gap: 6px;
        width: 100%;
    }
    
    .profile-action-btn {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .profile-stats-bar {
        grid-template-columns: repeat(3, 1fr);
        overflow: hidden;
        padding: 10px 6px;
        gap: 6px;
    }
    
    .stat-item {
        padding: 8px 4px;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
    
    /* Hide last 2 stats on very small screens */
    .stat-item:nth-child(4),
    .stat-item:nth-child(5) {
        display: none;
    }
    
    .profile-content {
        overflow: hidden !important;
    }
    
    .profile-main {
        padding: 8px;
        overflow: hidden;
        width: 100%;
    }
    
    .profile-sidebar {
        padding: 8px;
        overflow: hidden;
        width: 100%;
    }
    
    .profile-section {
        margin-bottom: 12px;
        overflow: hidden;
        width: 100%;
        padding: 10px;
        border-radius: 8px;
    }
    
    .section-header {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .section-title {
        font-size: 0.9rem;
        gap: 6px;
    }
    
    .section-title i {
        font-size: 0.85rem;
    }
    
    .section-link {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .activity-list {
        gap: 6px;
        width: 100%;
    }
    
    .activity-item {
        padding: 8px;
        gap: 8px;
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .activity-info {
        overflow: hidden;
        min-width: 0;
        flex: 1;
    }
    
    .activity-cover {
        width: 35px;
        height: 48px;
        border-radius: 5px;
        flex-shrink: 0;
    }
    
    .activity-title {
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .activity-chapter {
        font-size: 0.7rem;
    }
    
    .activity-time {
        font-size: 0.65rem;
    }
    
    .favorites-grid-modern {
        gap: 6px;
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .favorite-card-modern {
        border-radius: 6px;
    }
    
    .favorite-card-modern .title {
        font-size: 0.65rem;
    }
    
    .comments-list-modern {
        gap: 8px;
    }
    
    .comment-item-modern {
        padding: 8px;
        border-radius: 8px;
    }
    
    .comment-manga {
        font-size: 0.75rem;
    }
    
    .comment-chapter {
        font-size: 0.65rem;
    }
    
    .comment-text {
        font-size: 0.75rem;
    }
    
    .empty-state-modern {
        padding: 20px 10px;
    }
    
    .empty-state-modern i {
        font-size: 1.8rem;
    }
    
    .empty-state-modern p {
        font-size: 0.8rem;
    }
    
    .comment-header {
        font-size: 0.8rem;
    }
    
    .comment-text {
        font-size: 0.8rem;
    }
    
    .stats-chart {
        padding: 14px;
        border-radius: 10px;
    }
    
    .chart-header {
        margin-bottom: 12px;
    }
    
    .chart-title {
        font-size: 0.9rem;
    }
    
    .chart-period {
        font-size: 0.7rem;
    }
    
    .chart-bars {
        height: 60px;
        gap: 4px;
    }
    
    .chart-labels {
        gap: 4px;
        margin-top: 6px;
    }
    
    .chart-label {
        font-size: 0.6rem;
    }
    
    .genre-distribution {
        gap: 10px;
    }
    
    .genre-item {
        gap: 8px;
    }
    
    .genre-name {
        width: 60px;
        font-size: 0.75rem;
    }
    
    .genre-bar-wrapper {
        height: 6px;
    }
    
    .genre-count {
        width: 25px;
        font-size: 0.7rem;
    }
    
    .achievements-preview {
        gap: 6px;
    }
    
    .achievement-badge-modern {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 1.1rem;
    }
    
    .empty-state-modern {
        padding: 30px 16px;
    }
    
    .empty-state-modern i {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .empty-state-modern p {
        font-size: 0.9rem;
    }
    
    /* Discord Card Mobile */
    .discord-card {
        padding: 14px;
        border-radius: 12px;
    }
    
    .discord-card.has-banner {
        padding-top: 80px;
    }
    
    .discord-banner {
        height: 60px;
    }
    
    .discord-card-header {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .discord-card-header h3 {
        font-size: 14px !important;
    }
    
    .discord-card-header p {
        font-size: 11px !important;
    }
    
    .discord-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 16px;
    }
    
    .discord-connected {
        padding: 8px;
        gap: 8px;
        border-radius: 8px;
    }
    
    .discord-avatar-img,
    .discord-avatar-placeholder {
        width: 32px !important;
        height: 32px !important;
    }
    
    .discord-username {
        font-size: 0.85rem;
    }
    
    .discord-id {
        font-size: 10px;
    }
    
    .discord-not-connected {
        padding: 10px;
        font-size: 12px;
        gap: 6px;
    }
    
    .discord-btn {
        padding: 8px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    /* Edit Modal Mobile Small */
    .edit-modal-overlay {
        padding: 12px;
    }
    
    .edit-modal {
        border-radius: 12px;
    }
    
    .edit-modal-header {
        padding: 14px 16px;
    }
    
    .edit-modal-title {
        font-size: 1rem;
    }
    
    .edit-modal-close {
        width: 32px;
        height: 32px;
    }
    
    .edit-modal-body {
        padding: 16px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-label {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    
    .form-input {
        padding: 10px 14px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .form-textarea {
        min-height: 80px;
    }
    
    .edit-modal-footer {
        padding: 14px 16px;
        gap: 10px;
    }
}

/* Extra Small Devices (max-width: 360px) */
@media (max-width: 360px) {
    .profile-hero {
        height: 100px;
    }
    
    .profile-card {
        margin-top: -40px;
        padding: 0 6px;
    }
    
    .profile-header-modern {
        padding: 12px;
    }
    
    .profile-avatar-modern {
        width: 70px;
        height: 70px;
    }
    
    .profile-username-modern {
        font-size: 1.1rem;
    }
    
    .profile-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item:nth-child(3) {
        display: none;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
    
    .favorites-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .activity-cover {
        width: 35px;
        height: 48px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .profile-hero {
        height: 100px;
    }
    
    .profile-card {
        margin-top: -40px;
    }
    
    .profile-header-modern {
        grid-template-columns: auto 1fr auto;
        text-align: left;
    }
    
    .profile-name-row {
        justify-content: flex-start;
    }
    
    .profile-badges {
        justify-content: flex-start;
    }
    
    .profile-meta {
        justify-content: flex-start;
    }
    
    .profile-actions {
        justify-content: flex-start;
        flex-direction: row;
    }
    
    .profile-action-btn {
        width: auto;
    }
    
    .profile-stats-bar {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .stat-item:nth-child(4),
    .stat-item:nth-child(5) {
        display: flex;
    }
}

/* Private Profile Notice - Minimal Modern Design */
.private-profile-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
    margin: 32px 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.private-notice-icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.private-notice-icon i {
    font-size: 1.75rem;
    color: var(--text-muted);
}

.private-notice-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.private-notice-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 400px;
}

@media (max-width: 576px) {
    .private-profile-notice {
        padding: 48px 24px;
        margin: 24px 0;
    }
    
    .private-notice-icon {
        width: 60px;
        height: 60px;
    }
    
    .private-notice-icon i {
        font-size: 1.5rem;
    }
    
    .private-notice-content h3 {
        font-size: 1.1rem;
    }
    
    .private-notice-content p {
        font-size: 0.9rem;
    }
}
