/* ============================================================
   EduConnect AI - profile.css
   Styles for User Profile, Charts and Timeline
   ============================================================ */

.profile-cover {
    height: 280px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    z-index: 1;
}

.profile-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.4), transparent);
    pointer-events: none;
}

.profile-header-main {
    margin-top: -60px;
    padding: 0 40px 24px;
    display: flex;
    align-items: flex-end;
    gap: 24px;
    position: relative;
    z-index: 10; /* Ensure it floats above the cover photo */
}

.profile-avatar-large {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px solid var(--card-bg);
    background: var(--bg-color);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}
.profile-avatar-large:hover {
    transform: scale(1.03);
}

.profile-header-info {
    flex-grow: 1;
    padding-bottom: 10px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.profile-username-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.profile-username-row h2 {
    font-size: 26px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
}

.rank-badge-large {
    background: var(--primary-gradient);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

/* Stats Row Dashboard style */
#stats-row {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--accent-color) !important;
    margin: 20px 30px;
}

#stats-row div {
    flex: 1;
}

#stats-row b {
    font-size: 24px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--primary-color);
}

#stats-row small {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Streak Calendar Grid */
.streak-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.streak-day {
    aspect-ratio: 1;
    background: var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.streak-day.completed { 
    background: var(--success); 
    color: white; 
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}
.streak-day.missed { 
    background: var(--bg-color); 
    color: var(--text-muted); 
    opacity: 0.6;
}
.streak-day.shield { 
    background: var(--info); 
    color: white; 
    box-shadow: 0 2px 6px rgba(6, 182, 212, 0.2);
}

/* Achievement Badges */
.achievement-badge {
    text-align: center;
    padding: 16px 10px;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.achievement-badge:hover {
    transform: translateY(-3px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.achievement-icon {
    font-size: 34px;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.achievement-name {
    font-size: 12px;
    font-weight: bold;
    display: block;
    line-height: 1.3;
    color: var(--text-color);
}

