/*
 * HERO.CSS - Hero Section & Hot Topics
 * Techo Theme - NexusByte Design
 */

/* ========================================
   HERO SECTION
   ======================================== */
.section-hero {
    margin-top: 30px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    height: 500px;
}

/* ========================================
   MAIN HERO CARD
   ======================================== */
.hero-main-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-main-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 17, 1) 0%, rgba(5, 5, 17, 0.3) 50%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-title a {
    color: var(--text-main);
}

.hero-title a:hover {
    color: var(--primary);
}

/* ========================================
   SIDE CARDS
   ======================================== */
.hero-side-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-card {
    flex: 1;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 25px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.side-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 17, 1) 0%, rgba(5, 5, 17, 0.2) 100%);
    z-index: 1;
}

.side-content {
    position: relative;
    z-index: 2;
}

.side-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.side-title a {
    color: var(--text-main);
}

/* ========================================
   META STYLES
   ======================================== */
.meta,
.meta-sm {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.meta img,
.meta-sm img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* ========================================
   HOT TOPICS BAR
   ======================================== */
.hot-topics-bar {
    margin-top: 25px;
    background: var(--bg-card);
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hot-label {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-main);
    white-space: nowrap;
}

.hot-scroll {
    display: flex;
    gap: 30px;
    overflow: hidden;
    flex: 1;
    white-space: nowrap;
}

.topic-item {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.topic-item i {
    color: #f59e0b;
}

.nav-arrows {
    display: flex;
    gap: 5px;
}

.nav-arrows button {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.nav-arrows button:hover {
    background: var(--primary);
    border-color: var(--primary);
}
/* ========================================
   HERO FALLBACK BACKGROUNDS
   ======================================== */
.hero-main-card,
.side-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Ensure content is visible with fallback gradient */
.hero-main-card:not([style*="url"]),
.side-card:not([style*="url"]) {
    background: linear-gradient(135deg, #1a1a3a, #0d0d20);
}
