/* Enhanced Points - Green Theme CSS */
/* Created on 2025-07-16 */

/* Import Lato and Raleway fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;500&family=Raleway:wght@300;400;500&display=swap');

/* Color Variables - New Green Palette */
:root {
    --primary-color: #1a593b; /* Brunswick Green */
    --primary-hover: #2E865F; /* Performance Green */
    --secondary-color: #6fa961; /* Bud Green */
    --success-color: #2E865F; /* Performance Green */
    --warning-color: #f5a524; /* Orange */
    --danger-color: #FF0000; /* Alert Red */
    --info-color: #9db71a; /* Citron */
    
    --gray-50: #F5F5F5; /* Off-White */
    --gray-100: #F5F5F5; /* Off-White */
    --gray-200: #e8e8e8;
    --gray-300: #ccd3a7; /* Dark Vanilla */
    --gray-400: #b4b4b4;
    --gray-500: #999999;
    --gray-600: #666666;
    --gray-700: #444444;
    --gray-800: #333333; /* Carbon Black */
    --gray-900: #222222;
    
    /* Keep existing shadow variables */
}

/* Typography Updates */
body {
    font-family: 'Lato', sans-serif !important;
    font-size: 1rem; /* 16px */
    font-weight: 300 !important;
    background-color: var(--gray-100);
}

* {
    font-family: 'Lato', sans-serif !important;
    font-weight: 300 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', 'Lato', sans-serif !important;
    color: var(--gray-800);
    font-weight: 400 !important;
}

h1 {
    font-size: 2.5rem; /* 40px */
}

h2 {
    font-size: 1.5rem; /* 24px */
}

h3 {
    font-size: 1.25rem; /* 20px */
}

.small-text {
    font-size: 0.875rem; /* 14px */
}

strong, b {
    font-weight: 400 !important;
}

/* Header/Navigation Updates */
.header {
    background: white;
    color: var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-content {
    padding: 1rem 2rem;
}

.header h1, .header-logo a {
    color: var(--primary-color);
}

.header h1 i {
    color: var(--secondary-color);
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0 0.5rem;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s;
    display: block;
    background: none;
    border: none;
    border-radius: 0;
}

.nav-item.active .nav-link {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    font-weight: 400 !important;
    background: none;
}

.nav-link:hover {
    color: var(--secondary-color);
    background: none;
}

.nav-link:focus {
    outline: none;
    color: var(--secondary-color);
    background: none;
}

/* Navigation Dropdown - Engagement Menu */
.nav-item.dropdown {
    position: relative;
}

.nav-item.dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s;
    background: none;
    border: none;
    border-radius: 0;
}

.nav-item.dropdown .dropdown-toggle:hover {
    color: var(--secondary-color);
    background: none;
}

.nav-item.dropdown .dropdown-toggle:focus {
    outline: none;
    color: var(--secondary-color);
    background: none;
}

.nav-item.dropdown .dropdown-toggle.active {
    color: var(--secondary-color);
    background: none;
}

.nav-item.dropdown .dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

/* CSS-only chevron fallback if FontAwesome is not available */
.nav-item.dropdown .dropdown-toggle::after {
    content: '';
    border: solid var(--primary-color);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 2px;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-left: 0.25rem;
}

.nav-item.dropdown .dropdown-toggle.active::after {
    transform: rotate(225deg);
}

.nav-item.dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    display: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    margin-top: 2px;
}

.nav-item.dropdown .dropdown-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #333333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 400;
    border-bottom: 1px solid transparent;
}

.nav-item.dropdown .dropdown-link:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    border-bottom-color: var(--gray-200);
}

.nav-item.dropdown .dropdown-link.disabled {
    color: #999999;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

.nav-item.dropdown .dropdown-link .coming-soon {
    font-size: 0.75rem;
    color: #666666;
    font-weight: 300;
    margin-left: 0.5rem;
    font-style: italic;
}

/* Dropdown menu items styling */
.nav-item.dropdown .dropdown-menu li {
    margin: 0;
    padding: 0;
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    min-width: 150px;
    z-index: 1000;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
}

.dropdown-item:hover {
    background-color: var(--gray-100);
    color: var(--primary-color);
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    box-shadow: inset 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.welcome-section h1, .welcome-section h2, .welcome-section h3 {
    color: white !important;
    margin-bottom: 1rem;
}

.welcome-section p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: white;
}

.welcome-message p, .welcome-message span {
    color: white !important;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.welcome-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.user-name {
    font-weight: 400 !important;
    color: var(--primary-color) !important;
}

.dropdown-toggle .user-name {
    color: var(--primary-color) !important;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 400 !important;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--secondary-color); /* Bud Green */
    border-color: var(--secondary-color);
    color: white;
}

.welcome-section .btn-primary, .welcome-section .btn-get-started {
    background-color: white;
    border-color: white;
    color: var(--primary-color);
    font-weight: 400 !important;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.btn-primary:hover {
    background-color: var(--primary-hover); /* Performance Green */
    border-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--primary-color); /* Brunswick Green */
    border-color: var(--primary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--primary-hover); /* Performance Green */
    border-color: var(--primary-hover);
}

.btn-transparent {
    background-color: transparent;
    border-color: transparent;
    color: white;
}

.btn-transparent:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Application Cards */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 3rem;
}

.application-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 1px 6px rgba(26, 89, 59, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(26, 89, 59, 0.08);
}

.application-card h3 {
    color: var(--primary-color);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

/* Fund List Styling */
.fund-list {
    margin-top: 1rem;
}

/* Funds Grid Styling */
.funds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.fund-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 1px 6px rgba(26, 89, 59, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.fund-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(26, 89, 59, 0.08);
}

.fund-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.75rem;
    letter-spacing: 0.3px;
}

.fund-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.fund-details {
    background-color: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.fund-detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.fund-detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    color: var(--gray-600);
    font-weight: 400 !important;
}

.detail-value {
    color: var(--gray-800);
}

.fund-card .btn {
    margin-top: auto;
}

.fund-card.coming-soon {
    opacity: 0.8;
}

.fund-list h4 {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.fund-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fund-list li {
    margin-bottom: 0.5rem;
}

.fund-link {
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: all 0.2s;
    background-color: var(--gray-100);
}

.fund-link:hover {
    background-color: var(--gray-200);
    color: var(--secondary-color);
}

.application-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.application-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.coming-soon-badge {
    background-color: var(--info-color); /* Citron */
    color: var(--gray-800);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    display: inline-block;
    margin-top: auto;
}

/* Update Cards */
.updates-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.market-updates-section h2,
.company-updates-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 0.3px;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 0.5rem;
}

.update-card {
    background-color: white;
    box-shadow: 0 1px 6px rgba(26, 89, 59, 0.05);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.update-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(26, 89, 59, 0.08);
}

.update-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--gray-800);
    letter-spacing: 0.2px;
}

.update-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 400 !important;
}

.update-badge.product {
    background-color: var(--secondary-color); /* Bud Green */
    color: white;
}

.update-badge.event {
    background-color: var(--info-color); /* Citron */
    color: var(--gray-800);
}

.update-badge.case_study {
    background-color: var(--primary-color); /* Brunswick Green */
    color: white;
}

.read-more {
    color: var(--secondary-color); /* Bud Green */
    text-decoration: none;
    font-weight: 400 !important;
}

.read-more:hover {
    color: var(--primary-hover); /* Performance Green */
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: white;
    color: var(--gray-800);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--gray-200);
}

.footer-links a {
    color: var(--primary-color);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* Loading States & Microinteractions */
.spinner {
    border: 3px solid rgba(111, 169, 97, 0.3);
    border-radius: 50%;
    border-top: 3px solid var(--secondary-color);
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--gray-300) 25%,
        var(--gray-200) 50%,
        var(--gray-300) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--border-radius);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Accessibility */
:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(111, 169, 97, 0.5);
}

/* Simple fix: Remove only the green box background from active nav items */
.nav-item.active {
    background: none !important;
    background-color: transparent !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    .home-container {
        padding: 1.5rem;
    }
    
    .welcome-section h1 {
        font-size: 2rem;
    }
    
    .welcome-section p {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .header-nav {
        order: 3;
        width: 100%;
        margin-top: 0.5rem;
        justify-content: center;
    }
    
    .main-nav {
        margin: 0;
        width: 100%;
    }
    
    .nav-list {
        justify-content: center;
    }
    
    /* Mobile dropdown adjustments */
    .nav-item.dropdown .dropdown-menu {
        position: absolute;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        width: 250px;
    }
    
    .nav-item.dropdown:hover .dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
    
    .home-container {
        padding: 1rem;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .updates-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}
