@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Times+New+Roman:wght@400;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    background-color: #f8f9fa;
    color: #333333;
    font-size: 14px;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
    body { font-size: 13px; }
    .mobile-compact { padding: 0.5rem !important; }
    .mobile-text-xs { font-size: 11px !important; }
    .mobile-hidden { display: none !important; }
    .mobile-stack { flex-direction: column !important; }
    .mobile-full { width: 100% !important; }
    .mobile-text-center { text-align: center !important; }
    .mobile-p-2 { padding: 0.5rem !important; }
    .mobile-mb-2 { margin-bottom: 0.5rem !important; }
    .mobile-gap-2 { gap: 0.5rem !important; }
}

/* Tablet responsive design */
@media (min-width: 769px) and (max-width: 1024px) {
    .tablet-hidden { display: none !important; }
    .tablet-text-sm { font-size: 0.875rem !important; }
    .tablet-p-3 { padding: 0.75rem !important; }
}

/* Additional responsive utilities */
@media (max-width: 640px) {
    .xs-hidden { display: none !important; }
    .xs-text-xs { font-size: 0.75rem !important; }
    .xs-p-1 { padding: 0.25rem !important; }
    .xs-mb-1 { margin-bottom: 0.25rem !important; }
}

@media (min-width: 1025px) {
    .desktop-only { display: block !important; }
    .desktop-text-lg { font-size: 1.125rem !important; }
    .desktop-p-4 { padding: 1rem !important; }
}

/* Color-coded categories */
.category-investing { background-color: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.category-banking { background-color: #dcfce7; color: #166534; border-color: #86efac; }
.category-credit-cards { background-color: #fef3c7; color: #92400e; border-color: #fcd34d; }
.category-retirement { background-color: #ede9fe; color: #6b21a8; border-color: #c4b5fd; }
.category-savings { background-color: #ecfdf5; color: #14532d; border-color: #6ee7b7; }
.category-income { background-color: #fef2f2; color: #991b1b; border-color: #fca5a5; }
.category-crypto { background-color: #fff7ed; color: #c2410c; border-color: #fdba74; }
.category-loans { background-color: #f1f5f9; color: #334155; border-color: #cbd5e1; }
.category-debt { background-color: #fdf2f8; color: #be185d; border-color: #f9a8d4; }

/* Improved hover states */
.content-area {
    background: white;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.content-area:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.sidebar-widget {
    background: white;
    border: 1px solid #dee2e6;
    margin-bottom: 0.75rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.sidebar-widget:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* Article sidebar specific styles */
aside .sidebar-widget:last-child {
    margin-bottom: 0;
}

/* Sticky sidebar for better UX */
@media (min-width: 1024px) {
    aside {
        position: sticky;
        top: 1rem;
        height: fit-content;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }
}

/* Enhanced button hover states */
.cta-button {
    background: #3498db;
    color: white;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    border-radius: 4px;
}

.cta-button:hover { 
    background: #2980b9; 
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Card hover improvements */
.hover-card {
    transition: all 0.2s ease;
}

.hover-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.top-nav {
    background: #2c3e50;
    color: white;
    font-size: 0.8rem;
    border-bottom: 1px solid #34495e;
}

@media (max-width: 768px) {
    .top-nav { font-size: 0.7rem; padding: 0.25rem 0; }
}

.main-header {
    background: white;
    border-bottom: 2px solid #dee2e6;
    padding: 1rem 0;
}

@media (max-width: 768px) {
    .main-header { padding: 0.75rem 0; }
}

/* Traditional Logo Styles */
.logo-container {
    display: inline-block;
}

.logo-container a {
    display: block;
    text-decoration: none;
}

.logo-traditional-short {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 2.2rem;
    letter-spacing: 0.05em;
    color: #1a365d;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.logo-i-traditional {
    color: #2c3e50;
}

.logo-ampersand-traditional {
    color: #b8860b;
    font-size: 0.9em;
    margin: 0 0.1em;
    font-weight: 400;
}

.logo-r-traditional {
    color: #2c3e50;
}

.logo-traditional-full {
    text-align: left;
}

.logo-main-text {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.02em;
    color: #1a365d;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.1;
}

.logo-investing-traditional {
    color: #2c3e50;
}

.logo-ampersand-full-traditional {
    color: #b8860b;
    font-weight: 400;
    font-size: 0.9em;
}

.logo-retirement-traditional {
    color: #2c3e50;
}

.logo-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6c757d;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .logo-traditional-short { 
        font-size: 1.8rem; 
    }
    
    .logo-main-text { 
        font-size: 1.4rem; 
    }
    
    .logo-tagline { 
        font-size: 0.65rem; 
        margin-top: 0.15rem;
    }
}

.breadcrumb {
    background: #e9ecef;
    padding: 0.5rem 0;
    font-size: 0.8rem;
    border-bottom: 1px solid #dee2e6;
}

@media (max-width: 768px) {
    .breadcrumb { padding: 0.25rem 0; font-size: 0.7rem; }
}

.article-header {
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

.article-title {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.3;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .article-title { font-size: 0.9rem; line-height: 1.2; }
}

.article-title:hover {
    color: #3498db;
    text-decoration: underline;
}

.article-meta {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .article-meta { font-size: 0.7rem; }
}

.widget-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .widget-header { padding: 0.4rem 0.5rem; font-size: 0.8rem; }
}

.sidebar-widget a {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f8f9fa;
    padding: 0.4rem 0.75rem;
    display: block;
}

@media (max-width: 768px) {
    .sidebar-widget a { padding: 0.3rem 0.5rem; }
}

.sidebar-widget a:last-child {
    border-bottom: none;
}

.sidebar-widget a:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
}

@media (max-width: 768px) {
    .cta-button { 
        font-size: 0.8rem; 
        padding: 0.5rem 0.75rem; 
        font-weight: 600;
    }
}

.featured-article { border-left: 4px solid #3498db; }

@media (max-width: 768px) {
    .featured-article { border-left: 2px solid #3498db; }
}
