/* Fixed styles for Outlier Alpha website */

/* Fix for profile section */
.profile-section {
    text-align: center;
    padding: 20px 0;
}

.profile-avatar img {
    width: 120px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-title {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 15px;
}

.education-credentials {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
}

.credential-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: #1a202c;
    font-weight: 600;
}

.credential-group:last-child {
    margin-bottom: 0;
}

.credential-group i {
    color: #2563eb;
    font-size: 0.875rem;
    width: 16px;
    flex-shrink: 0;
}

.profile-stats {
    margin-top: 15px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-weight: 700;
    color: #2563eb;
    font-size: 1.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
}

/* Fix for main heading */
.hero-section {
    text-align: center;
    padding: 3rem 0;
}

.site-heading, 
.hero-heading {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #1a202c;
}

.hero-subheading {
    font-size: 1.5rem;
    color: #4b5563;
    font-weight: 500;
    margin-top: 1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Fix for research section */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-preview {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.post-preview:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.post-date {
    font-size: 0.875rem;
    color: #64748b;
}

.category-tag {
    background: #2563eb;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-title a:hover {
    color: #2563eb;
}

.post-summary {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: #2563eb;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.read-more:hover {
    color: #1d4ed8;
}

.read-more::after {
    content: '→';
}

/* Latest Articles section */
.latest-articles {
    margin: 3rem 0;
}

.latest-articles h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.latest-articles h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Navigation menu fix */
.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-item {
    margin-bottom: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.5rem;
    color: #475569;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: #f1f5f9;
    color: #1a202c;
    transform: translateX(4px);
}

.nav-link.active {
    background: #f1f5f9;
    color: #2563eb;
    font-weight: 600;
}

.nav-link i {
    width: 18px;
    font-size: 1rem;
    text-align: center;
}

.nav-counter {
    margin-left: auto;
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    color: #475569;
}

/* Market data widget fix */
.market-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.market-indicators {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s ease;
}

.indicator:hover {
    background: #f8fafc;
}

.indicator-label {
    color: #475569;
    font-weight: 500;
    font-size: 0.875rem;
}

.indicator-value {
    color: #1a202c;
    font-weight: 600;
    font-size: 0.875rem;
}

.indicator-change {
    font-weight: 600;
    font-size: 0.75rem;
}

.indicator-change.positive {
    color: #059669;
}

.indicator-change.negative {
    color: #dc2626;
}

.market-footer {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.market-footer small {
    color: #64748b;
    font-size: 0.7rem;
}

.live-indicator {
    width: 8px;
    height: 8px;
    background: #059669;
    border-radius: 50%;
    display: inline-block;
    margin-left: 0.5rem;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Fix for sidebar layout */
.sidebar {
    width: 320px;
    background: #f9fafb;
    border-right: 1px solid #e2e8f0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
    padding: 2rem 0;
}

.sidebar-content {
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.main-wrapper {
    flex: 1;
    margin-left: 320px;
    display: flex;
    flex-direction: column;
}

/* Media queries for responsive design */
@media (max-width: 1024px) {
    .main-wrapper {
        margin-left: 0;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .site-heading, 
    .hero-heading {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .site-heading, 
    .hero-heading {
        font-size: 2rem;
    }
    
    .hero-subheading {
        font-size: 1.25rem;
    }
    
    .post-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .site-heading, 
    .hero-heading {
        font-size: 1.75rem;
    }
    
    .hero-subheading {
        font-size: 1rem;
    }
    
    .post-preview {
        padding: 1rem;
    }
}
