/*
 * Home — 2026 Magazine Layout
 * Mega hero + topic bar + card grid
 */

/* ============================================
   GLOBAL
   ============================================ */
body {
    background: #f7f8fa;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   NAVIGATION
   ============================================ */
.mediumnavigation {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: none !important;
}

.mediumnavigation .nav-link {
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 0.84rem !important;
    font-weight: 500 !important;
    color: #475569 !important;
    letter-spacing: 0.01em;
    transition: color 0.12s;
}

.mediumnavigation .nav-link:hover { color: #d97706 !important; }

.mediumnavigation .form-control {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.82rem;
    border: 1px solid #e8ecf1;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.15s;
}

.mediumnavigation .form-control:focus {
    border-color: #fde68a;
    box-shadow: 0 0 0 3px rgba(253, 230, 138, 0.3);
    background: #fff;
}

/* ============================================
   HOME HERO
   ============================================ */
.home-hero {
    padding: 3rem 0 1.5rem;
    text-align: center;
}

.home-hero-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.home-hero-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #d97706;
    margin: 0 0 0.6rem;
    display: inline-block;
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 3px 14px;
    border-radius: 100px;
}

.home-hero-title {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #0c1220;
    margin: 0 0 0.5rem;
    line-height: 1.1;
}

.home-hero-desc {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   MEGA HERO POST
   ============================================ */
.home-mega {
    margin-bottom: 1.5rem;
}

.home-mega-link {
    display: block;
    text-decoration: none;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.home-mega-link:hover { text-decoration: none; }

.home-mega-img-wrap {
    position: relative;
    width: 100%;
    min-height: 420px;
    overflow: hidden;
    border-radius: 20px;
}

.home-mega-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    transition: transform 0.5s ease;
}

.home-mega-link:hover .home-mega-img {
    transform: scale(1.03);
}

.home-mega-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(12, 18, 32, 0.85) 0%, rgba(12, 18, 32, 0.3) 50%, rgba(12, 18, 32, 0.1) 100%);
    border-radius: 20px;
}

.home-mega-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    z-index: 1;
}

.home-mega-cat {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #fbbf24;
    padding: 4px 14px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-block;
    margin-bottom: 0.75rem;
}

.home-mega-title {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 0.6rem;
    max-width: 600px;
    text-wrap: balance;
}

.home-mega-link:hover .home-mega-title {
    color: #fef3c7;
}

.home-mega-excerpt {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
    margin: 0 0 1rem;
    max-width: 520px;
}

.home-mega-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 450;
}

.home-mega-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.home-mega-author { color: rgba(255, 255, 255, 0.75); font-weight: 550; }
.home-mega-sep { color: rgba(255, 255, 255, 0.3); }

/* ============================================
   TOPIC BAR
   ============================================ */
.home-topics {
    margin-bottom: 2rem;
    padding: 0;
}

.home-topics-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.home-topics-inner::-webkit-scrollbar { display: none; }

.home-topics-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
    flex-shrink: 0;
}

.home-topics-list {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.home-topic-pill {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: #475569;
    background: #fff;
    border: 1px solid #e8ecf1;
    padding: 5px 14px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.12s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.home-topic-pill:hover {
    background: #fffbeb;
    border-color: #fde68a;
    color: #d97706;
    text-decoration: none;
}

.home-topic-count {
    font-size: 0.65rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #94a3b8;
    padding: 1px 7px;
    border-radius: 100px;
    min-width: 20px;
    text-align: center;
}

.home-topic-pill:hover .home-topic-count {
    background: #fef3c7;
    color: #d97706;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.home-section {
    margin-bottom: 1.5rem;
}

.home-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0;
}

.home-section-title {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
    margin: 0;
}

.home-section-count {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    color: #cbd5e1;
    margin: 0;
    font-weight: 450;
}

/* Hide old section titles */
.section-title { display: none; }

/* ============================================
   FEATURED CARDS
   ============================================ */
.home-featured-card {
    display: block;
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s;
    height: 100%;
}

.home-featured-card:hover {
    text-decoration: none;
    border-color: #fde68a;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.home-featured-img-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}

.home-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.home-featured-card:hover .home-featured-img { transform: scale(1.04); }

.home-featured-badge {
    position: absolute;
    top: 14px; left: 14px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #fff;
    color: #d97706;
    padding: 4px 12px;
    border-radius: 100px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.home-featured-body { padding: 1.5rem 1.5rem 1.25rem; }

.home-featured-title {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #0c1220;
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin: 0.4rem 0 0.6rem;
}

.home-featured-card:hover .home-featured-title { color: #b45309; }

.home-featured-excerpt {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 1rem;
}

/* ============================================
   POST CARDS
   ============================================ */
.home-post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s;
    height: 100%;
}

.home-post-card:hover {
    text-decoration: none;
    border-color: #fde68a;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}

.home-post-img-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
}

.home-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.home-post-card:hover .home-post-img { transform: scale(1.04); }

.home-post-body {
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-post-title {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 1.12rem;
    font-weight: 600;
    color: #0c1220;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0.35rem 0 0.5rem;
}

.home-post-card:hover .home-post-title { color: #b45309; }

.home-post-excerpt {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 auto;
    padding-bottom: 0.75rem;
}

/* ============================================
   SHARED CARD ELEMENTS
   ============================================ */
.home-card-cat {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #d97706;
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 2px 10px;
    border-radius: 6px;
    display: inline-block;
}

.home-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 450;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.home-card-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e8ecf1;
}

.home-card-author { color: #475569; font-weight: 550; }
.home-card-sep { color: #d4d8e0; }

/* ============================================
   PAGINATION
   ============================================ */
.bottompagination {
    padding: 1rem 0 2rem;
}

.pointerup { display: none; }

.bottompagination span.navigation {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    border-top: 1px solid #edf0f4;
    padding-top: 1.5rem;
    color: #64748b;
}

.bottompagination span.navigation a {
    color: #d97706;
    font-weight: 600;
    text-decoration: none;
}

.bottompagination span.navigation a:hover { color: #92400e; }

/* ============================================
   CATEGORIES JUMBOTRON — hide (replaced by topic bar)
   ============================================ */
.jumbotron.fortags { display: none !important; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    font-family: 'Inter', system-ui, sans-serif;
    background: #f7f8fa !important;
    border-top: 1px solid #edf0f4 !important;
    font-size: 0.78rem;
    color: #94a3b8;
    padding: 1.25rem 0 !important;
    margin: 0 !important;
}

.footer a { color: #64748b !important; transition: color 0.12s; }
.footer a:hover { color: #d97706 !important; }

/* ============================================
   NEWSLETTER BAR
   ============================================ */
.alertbar {
    font-family: 'Inter', system-ui, sans-serif;
    background: #fff !important;
    border-top: 1px solid #edf0f4;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.03) !important;
}

.alertbar span { font-size: 0.85rem; color: #475569; }

.alertbar input[type="email"] {
    font-family: 'Inter', system-ui, sans-serif;
    border: 1px solid #e8ecf1 !important;
    border-radius: 10px 0 0 10px !important;
    font-size: 0.85rem;
    background: #f8fafc;
}

.alertbar input[type="submit"] {
    font-family: 'Inter', system-ui, sans-serif;
    background: #d97706 !important;
    border-color: #d97706 !important;
    border-radius: 0 10px 10px 0 !important;
    font-weight: 700;
    font-size: 0.82rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .home-hero { padding: 2rem 0 1rem; }
    .home-hero-title { font-size: 2rem; }

    .home-mega-img-wrap { min-height: 300px; }
    .home-mega-content { padding: 1.5rem; }
    .home-mega-title { font-size: 1.5rem; }
    .home-mega-excerpt { display: none; }

    .home-topics-inner { gap: 0.75rem; }

    .home-featured-body { padding: 1.25rem; }
    .home-featured-title { font-size: 1.12rem; }

    .home-post-body { padding: 1rem; }
    .home-post-title { font-size: 1rem; }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .home-mega-title { font-size: 1.8rem; }
    .home-mega-img-wrap { min-height: 360px; }
}

/* ============================================
   SELECTION
   ============================================ */
::selection { background: #fef3c7; color: #78350f; }
