/* assets/css/style.css */
/* Core Layout */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.hero-section {
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(180deg, var(--bg-canvas) 0%, #ffffff 100%);
    margin: 0 -24px 40px;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}
.hero-content h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--primary-brand);
    line-height: 1.2;
    margin-bottom: 16px;
}
.hero-content p {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--accent-blue);
    color: #ffffff;
}
.btn-primary:hover {
    background: var(--accent-hover);
}
.btn-secondary {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-light);
}
.btn-secondary:hover {
    background: var(--bg-canvas);
}
.w-full { width: 100%; }

/* Ad Units */
.ad-container {
    background: var(--bg-canvas);
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 40px;
}
.ad-leaderboard {
    width: 100%;
    height: 90px;
}
.ad-sidebar {
    width: 100%;
    height: 250px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    margin-bottom: 80px;
}

/* Editorial Feed */
.section-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-brand);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
}
.feed-card {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-light);
}
.feed-card:last-child {
    border-bottom: none;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.badge {
    background: #dbeafe;
    color: var(--accent-blue);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}
.date {
    font-size: 13px;
    color: var(--text-muted);
}
.feed-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}
.feed-card h3 a {
    color: var(--primary-brand);
    text-decoration: none;
    transition: color 0.2s;
}
.feed-card h3 a:hover {
    color: var(--accent-blue);
}
.feed-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

/* Sidebar Widgets */
.widget-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.widget-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-brand);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.trending-list {
    list-style: none;
}
.trending-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}
.trending-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.trending-list a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s;
}
.trending-list a:hover {
    color: var(--accent-blue);
}

/* Calculator Widget Specifics */
.widget-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.calc-group {
    margin-bottom: 16px;
}
.calc-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}
.calc-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
}
.calc-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.calc-results {
    margin-top: 24px;
    background: var(--bg-canvas);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}
.calc-results.hidden {
    display: none;
}
.result-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}
.result-divider {
    height: 1px;
    background: var(--border-light);
    margin: 12px 0;
}
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.text-lg { font-size: 18px; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .ad-leaderboard {
        height: auto;
        padding: 24px;
    }
}
