/* ============================================
   PROFILE PAGE STYLES - P&A ACADEMY
   ============================================ */

/* ============================================
   PROFILE HEADER
   ============================================ */
.profile-header {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.profile-cover {
    height: 180px;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.profile-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 40%);
}

.cover-shapes {
    position: absolute;
    inset: 0;
}

.cover-shape {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.6;
    animation: float 4s ease-in-out infinite;
}

.cover-shape.s1 { top: 20%; left: 10%; animation-delay: 0s; }
.cover-shape.s2 { top: 30%; right: 20%; animation-delay: 0.5s; }
.cover-shape.s3 { bottom: 25%; left: 30%; animation-delay: 1s; }
.cover-shape.s4 { bottom: 20%; right: 10%; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

.profile-info {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    padding: 0 2rem 2rem;
    margin-top: -60px;
    position: relative;
}

.profile-avatar {
    width: 130px;
    height: 130px;
    border-radius: var(--radius-xl);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}

.profile-avatar span {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
}

.profile-details {
    flex: 1;
    padding-top: 70px;
}

.profile-details h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.matric-number {
    font-size: 1rem;
    color: var(--gray-500);
    font-family: monospace;
    margin-bottom: 1rem;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.profile-badges .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-faculty {
    background: var(--primary-100);
    color: var(--primary);
}

.badge-program {
    background: #dbeafe;
    color: var(--blue);
}

.badge-status {
    background: #fef3c7;
    color: #d97706;
}

.badge-status.active {
    background: #d1fae5;
    color: #059669;
}

.badge-status i {
    font-size: 0.5rem;
}

.profile-actions {
    padding-top: 70px;
}

/* ============================================
   PROFILE STATS
   ============================================ */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-stat {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.profile-stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.profile-stat .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.stat-icon.xp {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.stat-icon.streak {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.stat-icon.courses {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.stat-icon.certs {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.profile-stat .stat-content {
    display: flex;
    flex-direction: column;
}

.profile-stat .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.profile-stat .stat-label {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* ============================================
   PROFILE GRID
   ============================================ */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.profile-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.profile-card.full-width {
    grid-column: 1 / -1;
}

.profile-card .card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.profile-card .card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-card .card-header h3 i {
    color: var(--primary);
}

.profile-card .card-body {
    padding: 1.5rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.info-item label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-item span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
}

/* ============================================
   BADGES GRID
   ============================================ */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.achievement-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    opacity: 0.5;
    filter: grayscale(100%);
    transition: var(--transition);
}

.achievement-badge.earned {
    opacity: 1;
    filter: none;
    border-color: var(--primary-light);
    background: var(--primary-50);
}

.achievement-badge .badge-icon {
    font-size: 2rem;
}

.achievement-badge span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-600);
    text-align: center;
}

.achievement-badge.earned span {
    color: var(--primary);
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--gray-700);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .badges-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 1rem 1.5rem;
        margin-top: -50px;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-avatar span {
        font-size: 2.5rem;
    }
    
    .profile-details {
        padding-top: 0;
    }
    
    .profile-details h2 {
        font-size: 1.5rem;
    }
    
    .profile-badges {
        justify-content: center;
    }
    
    .profile-actions {
        padding-top: 1rem;
    }
    
    .profile-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .profile-cover {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .profile-stat {
        flex-direction: column;
        text-align: center;
    }
    
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .achievement-badge {
        padding: 1rem 0.5rem;
    }
    
    .achievement-badge .badge-icon {
        font-size: 1.75rem;
    }
}
