/* Link Component Styles */
/* Standardized link styles for navigation, sections, support, and logout */
/* Global <a> hover (brown): modules/design-tokens.css — --color-link-hover + Bootstrap --bs-link-* */

/* Base Link Styles */
.nav-link,
.section-link,
.nav-sub-link,
.support-link-alt,
.account-link,
.logout-link {
    font-family: SF Pro Display, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: -0.4px;
    color: #434343;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
}

/* Top-level items (Welcome, Resources) - less padding, Figma: 10px left radius */
.nav-link {
    padding: 6px 12px;
    border-radius: 10px 0 0 10px;
}

/* Navigation Links */
.nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    vertical-align: middle;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    font-family: SF Pro Display, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0;
}

.nav-link:hover {
    background-color: #d7d7d7;
    color: #111827;
    box-shadow: 0 0 20px rgba(215, 215, 215, 0.6);
    transform: translateX(4px);
}

.nav-item.active .nav-link {
    background-color: #d7d7d7;
    margin-left: 4px;
    color: #111827;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(215, 215, 215, 0.4);
}

/* Section Links + Live Webinars (Recordings, Schedule) - Figma: 13px, 500, x=20 */
.section-link,
.nav-sub-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    vertical-align: middle;
    box-sizing: border-box;
    width: 100%;
    border-radius: 10px 0 0 10px;
    font-family: SF Pro Display, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0;
}

.section-link .lesson-number {
    font-weight: 600;
    color: #434343;
    flex-shrink: 0;
}

.section-link:hover,
.nav-sub-link:hover {
    background-color: #d7d7d7;
    color: #111827;
    box-shadow: 0 0 20px rgba(215, 215, 215, 0.6);
    transform: translateX(4px);
}

/* Active state - Figma Rectangle 2: #d7d7d7, radius 10px left only */
.section-item.active .section-link,
.nav-sub-item.active .nav-sub-link {
    background-color: #d7d7d7;
    color: #000;
    font-weight: 600;
    border-radius: 10px 0 0 10px;
    margin-left: 4px;
}

.section-item.active .section-link:hover,
.nav-sub-item.active .nav-sub-link:hover {
    background-color: #d7d7d7;
    color: #111827;
}

.section-link.current-lesson {
    font-weight: 600;
    color: #111827;
    background-color: #d7d7d7;
}

.section-link.current-lesson:hover {
    background-color: #e5e7eb;
    color: #111827;
}

/* Support, Account, Logout Links - bottom fixed links */
.support-link-alt,
.account-link,
.logout-link {
    letter-spacing: 2%;
    color: #374151;
    padding: 4px 0;
    display: block;
}

.support-link-alt:hover,
.account-link:hover,
.logout-link:hover {
    background-color: #d7d7d7;
    color: #111827;
    box-shadow: 0 0 20px rgba(215, 215, 215, 0.6);
    transform: translateX(4px);
    padding: 4px 12px;
    border-radius: 8px;
}

.support-link-alt img {
    margin-left: 4px;
    vertical-align: middle;
    margin-right: 12px;
}

/* Topic Links */
.topic-link {
    display: block;
    padding: 8px 12px 8px 20px;
    color: #434343;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    font-style: normal;
    line-height: 15px;
    letter-spacing: -0.4px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 8px;
    margin: 0;
    box-sizing: border-box;
    position: relative;
    padding-left: 24px;
}

.topic-link::before {
    content: "-";
    position: absolute;
    left: 12px;
    color: #434343;
    font-weight: 500;
    font-size: 15px;
    line-height: 15px;
}

.topic-link:hover {
    background-color: #d7d7d7;
    color: #111827;
    box-shadow: 0 0 20px rgba(215, 215, 215, 0.6);
    transform: translateX(4px);
}

.topic-link:hover::before {
    color: #111827;
}

.topic-item.active .topic-link,
.topic-link.active {
    background-color: #d7d7d7;
    color: #111827;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(215, 215, 215, 0.4);
}

.topic-item.active .topic-link::before,
.topic-link.active::before {
    color: #111827;
}

.topic-item.active .topic-link:hover,
.topic-link.active:hover {
    background-color: #CFCFCF;
    color: #111827;
}

/* Mobile Link Styles */
@media (max-width: 989.98px) {
    .mobile-user-profile .logout-link {
        font-size: 16px;
        font-weight: 500;
        color: #374151;
    }
}
