/**
 * Capitol Academy - Component Styles (Optimized)
 * Extracted from base template for better performance and maintainability
 * Version: 1.1.0 - Performance optimized with GPU acceleration
 */

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6, .heading-font {
    font-family: 'Montserrat', sans-serif !important;
}

body, p, .body-font {
    font-family: 'Calibri', Arial, sans-serif !important;
}

/* ===== NAVIGATION STYLES ===== */
.nav-link-hover {
    transition: all 0.3s ease;
    position: relative;
}

/* Navigation hover styles moved to base template for consistency */
/* This ensures all pages have identical navigation behavior */

/* ===== BUTTON STYLES ===== */
.btn-hover-effect {
    transition: all 0.3s ease;
}

.btn-hover-effect:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(169, 4, 24, 0.3);
}

.btn-professional {
    background: linear-gradient(135deg, var(--ca-primary-navy) 0%, var(--ca-primary-navy-light) 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-professional:hover {
    background: linear-gradient(135deg, var(--ca-primary-navy-light) 0%, var(--ca-primary-navy) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 26, 45, 0.3);
    color: white;
}

/* ===== SOCIAL MEDIA BUTTONS ===== */
.social-btn {
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    background: transparent;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: white !important;
    color: white !important;
}

.social-btn i {
    font-size: 1rem;
    color: inherit;
}

.footer-social-btn {
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ca-accent-red) !important;
    color: var(--ca-accent-red) !important;
    background: transparent;
}

.footer-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(169, 4, 24, 0.3);
    background: var(--ca-accent-red) !important;
    border-color: var(--ca-accent-red) !important;
    color: white !important;
}

.footer-social-btn i {
    font-size: 1rem;
    color: inherit;
}

/* ===== DROPDOWN STYLES ===== */
.dropdown-menu {
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
}

.dropdown-item {
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    color: var(--ca-primary-navy) !important;
}

.dropdown-item:hover {
    background-color: var(--ca-light-gray) !important;
    color: var(--ca-primary-navy) !important;
    transform: translateX(5px);
}

/* ===== USER PROFILE DROPDOWN ===== */
.user-profile-dropdown .btn-my-account,
body .user-profile-dropdown .btn-my-account,
main .user-profile-dropdown .btn-my-account,
section .user-profile-dropdown .btn-my-account {
    background: transparent !important;
    border: none !important;
    color: var(--ca-primary-navy) !important;
    padding: 8px 14px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
}

.user-profile-dropdown .btn-my-account:hover,
body .user-profile-dropdown .btn-my-account:hover,
main .user-profile-dropdown .btn-my-account:hover,
section .user-profile-dropdown .btn-my-account:hover {
    color: var(--ca-primary-navy) !important;
    background: rgba(1, 26, 45, 0.1) !important;
    transform: none !important;
    box-shadow: none !important;
}

.my-account-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--ca-primary-navy);
}

.dropdown-icon {
    font-size: 12px;
    color: var(--ca-primary-navy);
    transition: transform 0.3s ease;
}

.user-profile-dropdown .btn-my-account[aria-expanded="true"] .dropdown-icon {
    transform: rotate(180deg);
}

.user-profile-dropdown .btn-my-account::after {
    display: none;
}

/* ===== USER DROPDOWN MENU ===== */
.user-dropdown-menu-new,
body .user-dropdown-menu-new,
main .user-dropdown-menu-new,
section .user-dropdown-menu-new {
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    border: 2px solid var(--ca-primary-navy) !important;
    border-radius: 10px !important;
    padding: 0 !important;
    margin-top: 2px !important;
    background: white !important;
    box-shadow: 0 8px 25px rgba(1, 26, 45, 0.2) !important;
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    overflow: hidden !important;
    z-index: 1060 !important;
}

.user-dropdown-header-new,
body .user-dropdown-header-new,
main .user-dropdown-header-new,
section .user-dropdown-header-new {
    background: white !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 20px 16px 12px 16px !important;
    border-bottom: 1px solid rgba(1, 26, 45, 0.1) !important;
    margin: 0 !important;
    text-align: center !important;
}

.user-initials-centered {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--ca-primary-navy) 0%, var(--ca-primary-navy-light) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 12px auto;
}

/* ===== TEXT COLORS ===== */
.text-on-white { color: var(--ca-primary-navy) !important; }
.text-on-dark { color: white !important; }
.text-on-red { color: white !important; }

/* ===== ACCESSIBILITY COLORS ===== */
.bg-white, .bg-light { color: var(--ca-primary-navy); }
.bg-dark, .bg-primary { color: white; }
.bg-danger, .bg-warning { color: white; }

/* ===== FOOTER STYLES ===== */
.footer-link {
    transition: all 0.3s ease;
    opacity: 0.8;
    color: #2c3e50 !important;
}

.footer-link:hover {
    opacity: 1;
    color: var(--ca-accent-red) !important;
    transform: translateX(3px);
}
