/* Modern Profile Page Styles */

/* Profile Header Section */
.profile-header {
    background: #c2412f; /* beyaz yazıyla 4.5:1 üstü kontrast */
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(255, 115, 97, 0.2);
    position: relative;
    overflow: hidden;
}

/* Dark Theme */
body.dark .profile-header {
    background: #b23a2e;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, -50px); }
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

/* Name Avatar */
.name-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #ff7361;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

body.dark .name-avatar {
    background: #3a3a3a;
    color: #ff8a7f;
    border-color: rgba(255, 255, 255, 0.2);
}

.name-avatar::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #667eea);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-details {
    flex: 1;
}

.profile-name {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.profile-meta-item {
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-meta-item i {
    font-size: 16px;
    color: #fff;
}

/* Stats Cards */
.stats-section {
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body.dark .stat-card {
    background: #2a2a2a;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #3a3a3a;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

body.dark .stat-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}

.stat-icon.questions {
    background: rgba(255, 115, 97, 0.1);
    color: #ff7361;
}

.stat-icon.answers {
    background: rgba(229, 90, 78, 0.1);
    color: #e55a4e;
}

.stat-icon.best-answers {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.stat-icon.reputation {
    background: rgba(255, 138, 127, 0.1);
    color: #ff8a7f;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 4px;
}

body.dark .stat-value {
    color: #e0e0e0;
}

.stat-label {
    font-size: 13px;
    color: #636e72;
    font-weight: 500;
}

body.dark .stat-label {
    color: #9a9a9a;
}

/* Content Section */
.content-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

body.dark .content-section {
    background: #2a2a2a;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #3a3a3a;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f3f4;
}

body.dark .section-header {
    border-bottom-color: #3a3a3a;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3436;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.dark .section-title {
    color: #e0e0e0;
}

.section-title i {
    color: #ff7361;
}

.view-all-link {
    color: #ff7361;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: #e55a4e;
}

/* Recent Activity */
.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    padding: 15px;
    border-bottom: 1px solid #f1f3f4;
    transition: background 0.3s ease;
}

body.dark .activity-item {
    border-bottom-color: #3a3a3a;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: #f8f9fa;
}

body.dark .activity-item:hover {
    background: #333333;
}

.activity-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.activity-type.question {
    background: rgba(255, 115, 97, 0.1);
    color: #ff7361;
}

.activity-type.answer {
    background: rgba(229, 90, 78, 0.1);
    color: #e55a4e;
}

.activity-title {
    font-size: 15px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 5px;
}

body.dark .activity-title {
    color: #e0e0e0;
}

.activity-title a {
    color: inherit;
    text-decoration: none;
}

.activity-title a:hover {
    color: #ff7361;
}

body.dark .activity-title a:hover {
    color: #ff8a7f;
}

.activity-meta {
    font-size: 12px;
    color: #636e72;
}

body.dark .activity-meta {
    color: #9a9a9a;
}

/* Admin Section */
.admin-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
}

.admin-section h3 {
    color: #856404;
    font-size: 18px;
    margin-bottom: 15px;
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.admin-btn.ban {
    background: #dc3545;
    color: #fff;
}

.admin-btn.ban:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Banned User Badge */
.banned-badge {
    background: #dc3545;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-left: 10px;
}

/* Activity Excerpt */
.activity-excerpt {
    color: #636e72;
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0;
    padding-left: 20px;
    border-left: 3px solid #f1f3f4;
}

body.dark .activity-excerpt {
    color: #9a9a9a;
    border-left-color: #3a3a3a;
}

.answer-activity .activity-excerpt {
    border-left-color: #ff7361;
    opacity: 0.9;
}

body.dark .answer-activity .activity-excerpt {
    border-left-color: #ff8a7f;
}

.question-activity .activity-excerpt {
    border-left-color: #e55a4e;
    opacity: 0.9;
}

body.dark .question-activity .activity-excerpt {
    border-left-color: #ff9a8f;
}

/* Content Sections Spacing */
.content-section.mt-4 {
    margin-top: 30px !important;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #636e72;
}

body.dark .empty-state {
    color: #9a9a9a;
}

.empty-state i {
    font-size: 40px;
    color: #dfe6e9;
    margin-bottom: 15px;
}

body.dark .empty-state i {
    color: #4a4a4a;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-header {
        padding: 20px 15px;
    }
    
    .profile-info {
        flex-direction: column;
        text-align: center;
    }
    
    .name-avatar {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .profile-name {
        font-size: 20px;
    }
    
    .profile-meta {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .content-section {
        padding: 15px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .activity-item {
        padding: 12px;
    }
}
/* "Son etkinlik" kutusunda metin (ör. "2 saat önce") sayıdan küçük yazılır */
.stat-value.stat-value-metin { font-size: 18px !important; line-height: 1.3; }
@media (max-width: 768px) {
    .stats-grid { gap: 10px !important; }
    .stat-card { padding: 14px !important; }
    .stat-card .stat-icon { width: 34px !important; height: 34px !important; font-size: 15px !important; margin-bottom: 8px !important; }
    .stat-card .stat-value { font-size: 24px !important; }
}
