/* Custom Styles for User Profile Page */

:root {
    --primary-gold: #FFC107;
    /* Materialize Amber */
    --hover-gold: #FFB300;
    --dark-bg: #212121;
    --light-bg: #F9F9F9;
    --text-primary: #333;
    --text-secondary: #757575;
}

body {
    background-color: var(--light-bg);
    padding-top: 64px;
    /* Compensate for fixed nav */
}

/* Scroll-to-hide Navigation Refinement - moved to styles.css */

/* Navigation Bar Branding */
.nav-wrapper .brand-logo {
    font-weight: 700;
    color: var(--text-primary) !important;
}

.nav-wrapper ul li a {
    color: var(--text-primary) !important;
}

.nav-wrapper ul li a:hover {
    color: var(--primary-gold) !important;
}

/* Profile Header Section */
.profile-header-card {
    padding: 30px;
    border-radius: 12px;
    background: #fff;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.profile-header-row {
    display: flex;
    align-items: center;
    margin-bottom: 0 !important;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.class-badge {
    background-color: var(--primary-gold);
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

.profile-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 10px 0 5px 0;
}

.profile-title {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.profile-actions .btn {
    border-radius: 25px;
    text-transform: none;
    font-weight: 600;
    margin-right: 10px;
    box-shadow: none;
}

.btn-connect {
    background-color: var(--primary-gold) !important;
}

.btn-resume {
    background-color: #fff !important;
    color: var(--primary-gold) !important;
    border: 2px solid var(--primary-gold);
}

.btn-resume:hover {
    background-color: #fff9e6 !important;
}

/* Timeline / Professional Journey */
.timeline-section {
    position: relative;
    padding-left: 40px;
    margin-top: 30px;
}

.timeline-section::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    bottom: 0;
    width: 2px;
    background-color: #e0e0e0;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 6px;
    width: 12px;
    height: 12px;
    background-color: var(--primary-gold);
    border-radius: 50%;
    z-index: 1;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-role {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.timeline-company {
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-desc {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

/* Sidebar Styling */
.sidebar-card {
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.industry-card {
    background-color: var(--dark-bg);
    color: #fff;
}

.industry-card h6 {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.industry-card p {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 10px 0;
}

.sidebar-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.sidebar-title i {
    margin-right: 8px;
    color: var(--primary-gold);
}

.education-item,
.contact-item {
    margin-bottom: 15px;
}

.education-school {
    font-weight: 700;
    margin: 0;
}

.education-degree {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.endorsement-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-custom {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Testimonial Section */
.testimonial-card {
    background-color: #333;
    color: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.testimonial-quote {
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
    z-index: 1;
    position: relative;
}

.testimonial-card i.quote-icon {
    position: absolute;
    right: 30px;
    bottom: 20px;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.1);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
}

.author-info {
    font-size: 0.9rem;
}

.author-name {
    font-weight: 700;
    color: var(--primary-gold);
}

/* Responsive Splits */
@media only screen and (max-width: 600px) {
    .profile-header-row {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar {
        margin-bottom: 15px;
    }

    .profile-name {
        font-size: 1.8rem;
    }

    .class-badge {
        display: block;
        margin: 10px auto;
        width: fit-content;
    }

    .profile-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .profile-actions .btn {
        margin-right: 0;
        width: 100%;
        max-width: 250px;
    }

    .sidenav-user-cover {
        padding: 0;
        height: auto;
        position: relative;
    }

    .sidenav .user-view {
        padding: 32px 32px 16px;
        margin-bottom: 8px;
        height: 180px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .sidenav .user-view .background {
        overflow: hidden;
        background-color: var(--primary-gold);
    }

    .sidenav-close-floating {
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 2005;
        color: #fff !important;
        background: rgba(0, 0, 0, 0.2) !important;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        transition: background 0.3s;
    }

    .sidenav-close-floating:hover {
        background: rgba(0, 0, 0, 0.4) !important;
    }

    .sidenav-close-floating i {
        font-size: 1.8rem !important;
        margin: 0 !important;
    }

    .sidenav-close i {
        color: #fff;
    }
}

@media only screen and (min-width: 993px) {
    .main-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 30px;
    }
}

/* Health Card Styles */
.health-card {
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
    color: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(255, 152, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.health-card::after {
    content: 'directions_run';
    font-family: 'Material Icons';
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.health-card-title {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.health-card-title i {
    margin-right: 10px;
}

.health-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

@media only screen and (min-width: 601px) {
    .health-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.9;
    margin-top: 5px;
    display: block;
}