/* ========================================
   PROFILE.CSS - Profile Pages
   ======================================== */

.profile-page {
    padding: 24px 0 60px;
}

.profile-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
}

/* ----- SIDEBAR ----- */
.profile-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.profile-avatar-section {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-d);
    font-weight: 700;
    font-size: 32px;
    color: var(--accent);
    margin: 0 auto 12px;
    border: 3px solid var(--accent2);
}

.profile-avatar-section h2 {
    font-family: var(--font-d);
    font-size: 18px;
}

.profile-handle {
    color: var(--text-muted);
    font-size: 14px;
}

.profile-email {
    color: var(--text-faint);
    font-size: 13px;
    margin-top: 4px;
}

.profile-avatar-section .btn {
    margin-top: 12px;
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 16px;
}

.profile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
}

.profile-nav a i {
    width: 18px;
    font-size: 15px;
}

.profile-nav a:hover {
    background: var(--surface-2);
    color: var(--text);
}

.profile-nav a.active {
    background: var(--accent-dim);
    color: var(--accent);
}

/* ----- PROFILE CONTENT ----- */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-header {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.profile-header h1 {
    font-family: var(--font-d);
    font-size: 26px;
}

.profile-header h1 i {
    color: var(--accent2);
    margin-right: 8px;
}

.profile-header p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ----- PROFILE SETTINGS ----- */
.profile-settings {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
}

.profile-settings h3 {
    font-family: var(--font-d);
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-settings h3 i {
    color: var(--accent2);
}

.profile-settings .form-group {
    margin-bottom: 16px;
}

.profile-settings .form-group label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.profile-settings .form-group input,
.profile-settings .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-b);
    font-size: 14px;
    transition: all var(--transition);
}

.profile-settings .form-group input:focus,
.profile-settings .form-group textarea:focus {
    border-color: var(--accent2);
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 217, 138, 0.1);
}

/* ----- PROFILE STATS ----- */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition);
}

.stat-card:hover {
    border-color: var(--accent2);
    transform: translateY(-2px);
}

.stat-card i {
    font-size: 24px;
    color: var(--accent2);
}

.stat-card div {
    flex: 1;
}

.stat-number {
    display: block;
    font-family: var(--font-m);
    font-size: 24px;
    font-weight: 500;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* ----- DASHBOARD STATS ----- */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.dashboard-stats .stat-card {
    flex-direction: column;
    align-items: flex-start;
}

.dashboard-stats .stat-card i {
    font-size: 20px;
}

.stat-change {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 100px;
    margin-top: 4px;
}

.stat-change.positive {
    background: var(--accent2-dim);
    color: var(--accent2);
}

.stat-change.negative {
    background: var(--accent-dim);
    color: var(--accent);
}

/* ----- DASHBOARD CHARTS ----- */
.dashboard-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.chart-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
}

.chart-card h3 {
    font-family: var(--font-d);
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-card h3 i {
    color: var(--accent2);
}

.chart-card canvas {
    max-height: 200px;
    max-width: 100%;
}

/* ----- RECENT ACTIVITY ----- */
.recent-activity {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
}

.recent-activity h3 {
    font-family: var(--font-d);
    font-size: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recent-activity h3 i {
    color: var(--accent2);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.activity-item i {
    font-size: 18px;
}

.activity-item div {
    flex: 1;
}

.activity-item strong {
    display: block;
    font-size: 14px;
}

.activity-item p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* ----- MY LAUNCHES ----- */
.launches-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.launch-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition);
}

.launch-item:hover {
    border-color: var(--accent2);
    transform: translateX(4px);
}

.launch-item .launch-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.launch-item .launch-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-d);
    font-weight: 600;
    font-size: 18px;
    color: #1a0a04;
}

.launch-item .launch-details .launch-name {
    font-weight: 600;
    font-size: 16px;
}

.launch-item .launch-details .launch-tag {
    font-size: 13px;
    color: var(--text-muted);
}

.launch-item .launch-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-badge {
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.live {
    background: var(--accent2-dim);
    color: var(--accent2);
}

.status-badge.pending {
    background: #4A2717;
    color: #EF9F27;
}

.status-badge.approved {
    background: var(--accent2-dim);
    color: var(--accent2);
}

.status-badge.rejected {
    background: var(--accent-dim);
    color: var(--accent);
}

.launch-item .launch-actions {
    display: flex;
    gap: 8px;
}

.launch-item .launch-actions button {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-b);
    font-size: 13px;
}

.launch-item .launch-actions button:hover {
    border-color: var(--text-faint);
    color: var(--text);
}

.launch-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.launch-empty i {
    font-size: 48px;
    color: var(--text-faint);
    display: block;
    margin-bottom: 12px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        position: static;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profile-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .profile-settings {
        padding: 20px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .launch-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .launch-item .launch-status {
        width: 100%;
        justify-content: space-between;
    }
    
    .recent-activity {
        padding: 20px;
    }
    
    .chart-card {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .profile-header h1 {
        font-size: 22px;
    }
}