/**
 * profile-card.css — Profile & Info Display Components
 * ============================================================
 * Reusable profile display used in HR, employees, students.
 * For profile.php-specific styles → 5-modules/profile.css
 * Depends on: 1-tokens.css
 * ============================================================
 */

/* --------------------------------------------------------
 * PROFILE CARD (.profile-card)
 * -------------------------------------------------------- */
.profile-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.profile-card .profile-header {
    padding: var(--space-8);
    margin-bottom: 0;
    border-radius: 0;
}

/* --------------------------------------------------------
 * PROFILE HEADER (.profile-header) — gradient banner
 * -------------------------------------------------------- */
.profile-header {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-5);
    box-shadow: var(--shadow-xl);
}

/* --------------------------------------------------------
 * PROFILE PHOTO (.profile-photo, .profile-photo-placeholder)
 * -------------------------------------------------------- */
.profile-photo {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    border: 3px solid rgba(255,255,255,0.3);
    object-fit: cover;
    margin-bottom: var(--space-5);
}

.profile-photo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--color-white);
    margin: 0 auto var(--space-5);
    border: 3px solid rgba(255,255,255,0.3);
}

/* --------------------------------------------------------
 * PROFILE META (.profile-name, .profile-position, .profile-badges)
 * -------------------------------------------------------- */
.profile-name {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-1);
}

.profile-position {
    font-size: var(--text-base);
    opacity: 0.9;
    margin-bottom: var(--space-4);
}

.profile-badges {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    flex-wrap: wrap;
}

.profile-badge {
    background: rgba(255,255,255,0.2);
    color: var(--color-white);
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
}

/* --------------------------------------------------------
 * PROFILE BODY (.profile-body)
 * -------------------------------------------------------- */
.profile-body {
    padding: var(--space-6);
}

/* --------------------------------------------------------
 * PROFILE SECTION (.profile-section)
 * -------------------------------------------------------- */
.profile-section {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-5);
    box-shadow: var(--shadow-sm);
}

.profile-section h5 {
    font-size: var(--text-md);
    font-weight: var(--font-bold);
    color: var(--brand-ink);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: var(--border-width) solid var(--border-color-light);
}

/* --------------------------------------------------------
 * INFO SECTION (.info-section, .info-section-title)
 * -------------------------------------------------------- */
.info-section {
    margin-bottom: var(--space-6);
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section-title {
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: var(--border-width) solid var(--border-color);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* --------------------------------------------------------
 * INFO GRID (.info-grid, .info-item)
 * -------------------------------------------------------- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-4);
}

.info-item {
    background: var(--color-surface-alt);
    padding: var(--space-4);
    border-radius: var(--radius-md);
}

.info-item .info-label {
    font-size: var(--text-2xs);
    color: var(--color-text-faint);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
    min-width: auto;
}

.info-item .info-value {
    font-size: var(--text-base);
    color: var(--color-gray-900);
    font-weight: var(--font-semibold);
}

.info-item .info-value.empty {
    color: var(--color-gray-300);
    font-style: italic;
    font-weight: var(--font-normal);
}

/* --------------------------------------------------------
 * PHOTO UPLOAD (.photo-upload-area, .photo-preview, .photo-placeholder)
 * -------------------------------------------------------- */
.photo-upload-area {
    border: 2px dashed var(--color-gray-300);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.photo-upload-area:hover {
    border-color: var(--color-secondary);
    background: var(--color-surface-alt);
}

.photo-preview {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--border-color);
    margin-bottom: var(--space-4);
}

.photo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: var(--color-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    font-size: 2rem;
    color: var(--color-text-faint);
}

/* --------------------------------------------------------
 * RESPONSIVE
 * -------------------------------------------------------- */
@media (max-width: 768px) {
    .info-grid { grid-template-columns: 1fr; }
}
