/* ═══════════════════════════════════════════════════════════
   PROFILE EXTRAS — CSS (v2.0 — Yeni İstatistik Dashboard)
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   📊 PE-DASHBOARD — İstatistik Sekmesi
   ═══════════════════════════════════════════════════════════ */
.pe-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 4px;
}

/* ═══ STATS GRID ═══ */
.pe-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.pe-stat-card {
    background: #fff;
    border: 1.5px solid #f0f0f0;
    border-radius: 14px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.pe-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    transition: width 0.3s;
}
.pe-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: transparent;
}
.pe-stat-card:hover::before { width: 100%; opacity: 0.05; }

.pe-stat-points::before { background: linear-gradient(180deg, #f59e0b, #d97706); }
.pe-stat-streak::before { background: linear-gradient(180deg, #ef4444, #dc2626); }
.pe-stat-visitors::before { background: linear-gradient(180deg, #8b5cf6, #7c3aed); }
.pe-stat-activity::before { background: linear-gradient(180deg, #22c55e, #16a34a); }

.pe-stat-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.pe-stat-points .pe-stat-icon { background: #fef3c7; }
.pe-stat-streak .pe-stat-icon { background: #fee2e2; }
.pe-stat-visitors .pe-stat-icon { background: #ede9fe; }
.pe-stat-activity .pe-stat-icon { background: #dcfce7; }

.pe-stat-content { display: flex; flex-direction: column; }
.pe-stat-label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.pe-stat-value {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}

/* ═══ DURUM KARTI ═══ */
.pe-status-card {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1.5px solid #86efac;
    border-radius: 14px;
    padding: 16px 20px;
}
.pe-status-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.pe-status-header strong {
    font-size: 12px;
    color: #166534;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pe-status-dot {
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
    animation: pe-pulse 2s infinite;
}
@keyframes pe-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
    50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}
.pe-status-card p {
    font-size: 15px;
    color: #14532d;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.4;
}
.pe-status-card small {
    font-size: 11px;
    color: #15803d;
    font-weight: 600;
}

/* ═══ BÖLÜMLER ═══ */
.pe-section {
    background: #fff;
    border: 1.5px solid #f0f0f0;
    border-radius: 16px;
    padding: 20px;
}
.pe-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1.5px dashed #f0f0f0;
    flex-wrap: wrap;
    gap: 10px;
}
.pe-section-head h3 {
    font-size: 15px;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pe-section-head h3 i { color: #c40023; font-size: 14px; }
.pe-section-badge {
    background: #f8f8f8;
    color: #6b7280;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #eee;
}

/* ═══ ROZETLER ═══ */
.pe-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.pe-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fafbfc;
    border: 1.5px solid #f0f0f0;
    border-radius: 12px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.pe-badge::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--badge-color);
}
.pe-badge:hover {
    background: #fff;
    border-color: var(--badge-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.pe-badge-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.pe-badge-text { flex: 1; min-width: 0; }
.pe-badge-text strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2px;
}
.pe-badge-text small {
    font-size: 10.5px;
    color: var(--badge-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ═══ HEATMAP ═══ */
.pe-heatmap-wrap {
    background: #fafbfc;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #f0f0f0;
}
.pe-heatmap {
    display: grid;
    grid-template-columns: repeat(30, 1fr);
    gap: 4px;
    margin-bottom: 12px;
}
.pe-heatmap-cell {
    aspect-ratio: 1;
    border-radius: 4px;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s;
}
.pe-heatmap-cell:hover { transform: scale(1.4); z-index: 10; }
.pe-heatmap-cell.level-0 { background: #ebedf0; }
.pe-heatmap-cell.level-1 { background: #bbf7d0; }
.pe-heatmap-cell.level-2 { background: #4ade80; }
.pe-heatmap-cell.level-3 { background: #22c55e; }
.pe-heatmap-cell.level-4 { background: #16a34a; }

.pe-heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
}
.pe-heatmap-legend .pe-heatmap-cell {
    width: 12px; height: 12px;
    aspect-ratio: auto;
}
.pe-legend-label {
    font-weight: 700;
    font-size: 10.5px;
    text-transform: uppercase;
    margin: 0 4px;
}

/* ═══ ZİYARETÇİLER ═══ */
.pe-visitors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}
.pe-visitor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: transform 0.25s;
}
.pe-visitor:hover { transform: translateY(-4px); }
.pe-visitor .cs-avatar-frame {
    width: 60px !important;
    height: 60px !important;
    border: 2px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.pe-visitor small {
    font-size: 11px;
    color: #4a4a57;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* ═══ ANONİM SORU ═══ */
.pe-question-section {
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    border-color: #e9d5ff;
}
.pe-question-section .pe-section-head { border-bottom-color: #e9d5ff; }
.pe-question-section .pe-section-head h3 i { color: #8b5cf6; }
.pe-question-section .pe-section-badge {
    background: #fff;
    color: #7c3aed;
    border-color: #e9d5ff;
}
.pe-question-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pe-question-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e9d5ff;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    background: #fff;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    color: #1f2937;
    line-height: 1.5;
}
.pe-question-form textarea:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139,92,246,0.1);
}
.pe-question-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.pe-question-footer small {
    font-size: 12px;
    color: #7c3aed;
    font-weight: 700;
}
.pe-question-form button {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 100px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
    box-shadow: 0 4px 12px rgba(139,92,246,0.3);
}
.pe-question-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139,92,246,0.5);
}
.pe-question-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ═══════════════════════════════════════════════════════════
   PROFİL ÖZELLEŞTİRME SAYFASI
   ═══════════════════════════════════════════════════════════ */
.cs-profile-customizer {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cs-customizer-section {
    background: #fff;
    border: 1.5px solid #f1f5f9;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.cs-customizer-section h3 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cs-customizer-section h3 i { color: #c40023; }
.cs-customizer-section p {
    margin: 0 0 14px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}
.cs-cover-preview {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a0018 0%, #8b0045 50%, #c40023 100%);
    background-size: cover;
    background-position: center;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
    border: 1.5px solid #fecaca;
}
.cs-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 100px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.25s;
}
.cs-btn-primary {
    background: linear-gradient(135deg, #c40023, #7a0012);
    color: #fff;
    box-shadow: 0 4px 12px rgba(196,0,35,0.3);
}
.cs-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(196,0,35,0.5);
    color: #fff;
}
.cs-btn-ghost {
    background: #fff;
    color: #c40023;
    border: 2px solid #fecaca;
}
.cs-btn-ghost:hover { background: #fff5f7; border-color: #c40023; }

.cs-input-group { display: flex; gap: 8px; margin-bottom: 10px; }
.cs-input-group input,
.cs-input-group select {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13.5px;
    background: #f8fafc;
    outline: none;
    transition: all 0.2s;
}
.cs-input-group input:focus {
    border-color: #c40023;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(196,0,35,0.1);
}

.cs-questions-list { display: flex; flex-direction: column; gap: 12px; }
.cs-question-item {
    background: #faf5ff;
    border-left: 4px solid #a855f7;
    border-radius: 10px;
    padding: 14px;
}
.cs-question-text {
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
    margin: 0 0 10px;
    font-style: italic;
}
.cs-answer-text {
    font-size: 13.5px;
    color: #166534;
    background: #f0fdf4;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 0;
    border-left: 3px solid #22c55e;
}
.cs-answer-form { display: flex; gap: 8px; margin-top: 10px; }
.cs-answer-form input {
    flex: 1;
    padding: 9px 12px;
    border: 1.5px solid #d8b4fe;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    background: #fff;
    outline: none;
}
.cs-answer-form input:focus { border-color: #a855f7; }
.cs-answer-form button {
    background: linear-gradient(135deg, #a855f7, #7e22ce);
    color: #fff;
    border: none;
    padding: 9px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
}

.cs-post-select-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}
.cs-post-select-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.cs-post-select-item:hover {
    background: #fff;
    border-color: #fecaca;
}
.cs-post-select-item input[type="radio"] {
    accent-color: #c40023;
    width: 18px;
    height: 18px;
}
.cs-post-select-item span {
    flex: 1;
    font-size: 13.5px;
    color: #1f2937;
    font-weight: 600;
}

.pro-x-empty {
    text-align: center;
    padding: 40px 20px;
}
.pro-x-empty i {
    font-size: 48px;
    color: #e5e7eb;
    margin-bottom: 12px;
    display: block;
}
.pro-x-empty h3 {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
}
.pro-x-empty p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   MOBİL
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 700px) {
    .pe-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .pe-stat-card { padding: 14px 12px; gap: 10px; }
    .pe-stat-icon { width: 38px; height: 38px; font-size: 18px; }
    .pe-stat-value { font-size: 17px; }
    .pe-section { padding: 16px; }
    .pe-section-head h3 { font-size: 14px; }
    .pe-badges-grid { grid-template-columns: 1fr; }
    .pe-visitors-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
    .pe-visitor .cs-avatar-frame { width: 54px !important; height: 54px !important; }
    .pe-heatmap { grid-template-columns: repeat(10, 1fr); }
    .pe-question-footer { justify-content: center; }
    .pe-question-form button { width: 100%; justify-content: center; }
    .cs-input-group { flex-direction: column; }
    .cs-answer-form { flex-direction: column; }
}