/* ============================================
   EDITORIAL LAYOUT - Magazine Style
   ============================================ */

/* Prevent layout shift on image load */
img {
    display: block;
}

.ed-hero-lead-image,
.ed-hero-secondary-image,
.ed-latest-image,
.ed-lead-image,
.ed-horizontal-image,
.ed-compact-image {
    position: relative;
    contain: layout;
}

.ed-hero-secondary-image img,
.ed-latest-image img,
.ed-lead-image img,
.ed-horizontal-image img,
.ed-compact-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Shared Elements */
.ed-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.4);
    letter-spacing: -0.02em;
}

.ed-placeholder-sm {
    font-size: 1.25rem;
}

.ed-label {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: white;
}

.ed-label-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
}

.ed-cat-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ed-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.ed-topic-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.ed-topic-pill {
    display: inline-flex;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text-secondary);
    background: color-mix(in srgb, var(--color-text) 6%, var(--color-bg));
    border: 1px solid var(--color-border);
    transition: border-color 180ms ease, background 180ms ease;
    position: relative;
    z-index: 2;
}

.ed-topic-pill:hover {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 8%, var(--color-bg));
    color: var(--color-text);
}

.ed-meta-light {
    color: rgba(255,255,255,0.7);
}

.ed-meta-dot {
    opacity: 0.4;
}

/* ============================================
   HERO SECTION - Featured + Latest Sidebar
   ============================================ */
.ed-hero-row {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1000px) {
    .ed-hero-row {
        grid-template-columns: 1fr;
    }
}

/* Main Featured Article - Card Style (image above, text below) */
.ed-hero-featured {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-secondary);
    display: flex;
    flex-direction: column;
}

.ed-hero-featured:hover {
    box-shadow: none;
}

.ed-hero-featured-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    height: 100%;
}

.ed-hero-featured-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-bg-tertiary);
    flex-shrink: 0;
}

.ed-hero-featured-image::after {
    display: none;
}

.ed-hero-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ed-hero-featured:hover .ed-hero-featured-image img {
    transform: scale(1.03);
}

.ed-hero-featured-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ed-hero-featured-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ed-hero-featured-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 0.625rem;
    color: var(--color-text);
}

.ed-hero-featured-excerpt {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin: 0 0 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ed-hero-featured .ed-meta {
    color: var(--color-text-muted);
}

@media (max-width: 640px) {
    .ed-hero-featured-content {
        padding: 1rem;
    }
    .ed-hero-featured-excerpt {
        display: none;
    }
}

/* Latest Sidebar */
.ed-latest-sidebar {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ed-latest-sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.ed-latest-sidebar-header h2 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text);
    margin: 0;
}

.ed-latest-sidebar-header svg {
    width: 14px;
    height: 14px;
    color: var(--color-primary);
}

.ed-latest-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.ed-latest-sidebar-item {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.2s ease;
}

.ed-latest-sidebar-item:last-child {
    border-bottom: none;
}

.ed-latest-sidebar-item:hover {
    background: transparent;
}

.ed-latest-sidebar-link {
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    position: relative;
    align-items: center;
}

/* Inline action buttons for sidebar items */
.ed-sidebar-action,
.ed-sidebar-bookmark {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    padding: 0;
    background: var(--color-bg-tertiary);
    border: none;
    border-radius: 50%;
    color: var(--color-text-secondary);
    cursor: pointer;
    opacity: 0;
    transform: scale(1);
    transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ed-sidebar-action {
    margin-left: auto;
}

.ed-latest-sidebar-item:hover .ed-sidebar-action,
.ed-latest-sidebar-item:hover .ed-sidebar-bookmark {
    opacity: 1;
}

.ed-sidebar-action:hover {
    color: var(--color-primary);
}

.ed-sidebar-action svg {
    width: 14px;
    height: 14px;
}

.ed-sidebar-action.preview-btn {
    width: 24px;
    height: 24px;
    background: var(--color-bg-tertiary);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 50%;
}

.ed-sidebar-action.preview-btn:hover {
    background: var(--color-primary);
    color: white;
}

.ed-sidebar-action.preview-btn svg {
    width: 14px;
    height: 14px;
}

.ed-sidebar-bookmark.bookmark-btn {
    width: 24px;
    height: 24px;
    background: var(--color-bg-tertiary);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 50%;
    color: var(--color-text-secondary);
    transform: scale(1);
}

.ed-sidebar-bookmark.bookmark-btn:hover {
    background: var(--color-primary);
    color: white;
}

.ed-sidebar-bookmark.bookmark-btn.bookmarked {
    opacity: 1;
    background: var(--color-primary);
    color: white;
    transform: scale(1);
}

.ed-sidebar-bookmark.bookmark-btn.bookmarked svg {
    fill: white;
}

.ed-sidebar-bookmark.bookmark-btn svg {
    width: 14px;
    height: 14px;
}

.ed-latest-sidebar-image {
    flex: 0 0 80px;
    aspect-ratio: 16/10;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-bg-tertiary);
}

.ed-latest-sidebar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ed-latest-sidebar-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ed-latest-sidebar-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ed-latest-sidebar-time {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

@media (max-width: 1920px) {
    .gr-trending-item:nth-child(n+6) {
        display: none;
    }
}

@media (max-width: 1000px) {
    .ed-latest-sidebar {
        display: none;
    }
}

/* Secondary Row - 4 cards below hero */
.ed-secondary-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

@media (max-width: 900px) {
    .ed-secondary-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .ed-secondary-row {
        grid-template-columns: 1fr;
    }
}

.ed-secondary-card {
    background: var(--color-bg-secondary);
    border-radius: 0;
    overflow: hidden;
    border-bottom: 3px solid #e53935;
    transition: transform 0.2s ease;
}

.ed-secondary-card:hover {
    transform: none;
}

.ed-secondary-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.ed-secondary-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-bg-tertiary);
}

.ed-secondary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.ed-secondary-card:hover .ed-secondary-image img {
    transform: scale(1.04);
}

.ed-secondary-content {
    padding: 1rem;
}

.ed-secondary-cat {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.375rem;
    color: #e53935;
}

.ed-secondary-title {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ed-latest-card:hover .ed-latest-image img {
    transform: scale(1.04);
}

.ed-latest-content {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.ed-latest-content .ed-category-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: white;
    background: var(--tag-color, var(--color-primary));
    border-radius: 100px;
    align-self: flex-start;
}

.ed-latest-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ed-latest-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.ed-section {
    margin-bottom: 3.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-border);
    scroll-margin-top: 100px;
}

.ed-section:last-of-type {
    border-bottom: none;
}

.ed-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #e53935;
}

.ed-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ed-section-indicator {
    width: 4px;
    height: 1.75rem;
    border-radius: 2px;
}

.ed-section-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--color-text);
    margin: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ed-section-count {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ============================================
   EDITORIAL LAYOUT (Lead + Sidebar)
   ============================================ */
.ed-editorial {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}

/* Reversed layout disabled for GameRant-style consistent layout */
.ed-editorial-reverse {
    grid-template-columns: 1fr 340px;
}

.ed-editorial-reverse .ed-lead {
    order: unset;
}

.ed-editorial-reverse .ed-sidebar {
    order: unset;
}

.ed-editorial-single {
    grid-template-columns: 1fr;
}

@media (max-width: 900px) {
    .ed-editorial,
    .ed-editorial-reverse {
        grid-template-columns: 1fr;
    }
    .ed-editorial-reverse .ed-lead,
    .ed-editorial-reverse .ed-sidebar {
        order: unset;
    }
}

/* Lead Article */
.ed-lead {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg);
    box-shadow: none;
    transition: transform 0.3s ease;
}

.ed-lead:hover {
    transform: none;
    box-shadow: none;
}

.ed-lead-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.ed-lead-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-bg-tertiary);
}

.ed-lead-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ed-lead:hover .ed-lead-image img {
    transform: scale(1.04);
}

.ed-lead-body {
    padding: 1.25rem;
}

.ed-lead-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--color-text);
    margin: 0 0 0.625rem;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ed-lead-excerpt {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--color-text-secondary);
    margin: 0 0 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar (Stacked Horizontal Cards) */
.ed-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 900px) {
    .ed-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .ed-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Horizontal Card */
.ed-horizontal {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: background 0.2s;
}

.ed-horizontal:hover {
    background: var(--color-bg-secondary);
}

.ed-horizontal-link {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.ed-horizontal-image {
    flex: 0 0 120px;
    aspect-ratio: 4/3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-bg-tertiary);
}

.ed-horizontal-image img {
    transition: transform 0.3s ease;
}

.ed-horizontal:hover .ed-horizontal-image img {
    transform: scale(1.05);
}

.ed-horizontal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.ed-horizontal-title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text);
    margin: 0 0 0.375rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ed-horizontal-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ============================================
   COMPACT GRID (More Articles)
   ============================================ */
.ed-more {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.ed-compact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .ed-compact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .ed-compact-grid {
        grid-template-columns: 1fr;
    }
}

.ed-compact {
    transition: transform 0.2s ease;
}

.ed-compact:hover {
    transform: translateY(-2px);
}

.ed-compact-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.ed-compact-image {
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-tertiary);
    margin-bottom: 0.625rem;
}

.ed-compact-image img {
    transition: transform 0.3s ease;
}

.ed-compact:hover .ed-compact-image img {
    transform: scale(1.04);
}

.ed-compact-title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   SHOW MORE BUTTON
   ============================================ */
.ed-show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem auto 0;
    padding: 0.75rem 1.75rem;
    background: transparent;
    border: 2px solid #e53935;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 700;
    color: #e53935;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ed-show-more:hover {
    background: #e53935;
    color: white;
    border-color: #e53935;
}

.ed-show-more svg {
    transition: transform 0.25s ease;
}

.ed-show-more.expanded .ed-show-more-icon {
    transform: rotate(180deg);
}

.ed-show-more-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ed-show-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ed-more {
    display: none;
}

.ed-more.has-content {
    display: block;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.ed-newsletter {
    margin-top: 3rem;
    padding: 3rem 2rem;
    background: #181818;
    border: none;
    border-radius: 0;
    text-align: center;
}

.ed-newsletter h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: #f0f0f0;
    letter-spacing: -0.02em;
}

.ed-newsletter p {
    color: #cccccc;
    margin: 0 0 1.5rem;
    font-size: 1rem;
}

.ed-newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 400px;
    margin: 0 auto;
}

.ed-newsletter-form input {
    flex: 1;
    padding: 0.875rem 1.125rem;
    border: 1px solid #333;
    border-radius: var(--radius-sm);
    background: #222222;
    color: #f0f0f0;
    font-size: 0.9375rem;
}

.ed-newsletter-form input:focus {
    outline: none;
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15);
}

.ed-newsletter-form button {
    padding: 0.875rem 1.5rem;
    background: #e53935;
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.ed-newsletter-form button:hover {
    background: #c62828;
}

@media (max-width: 480px) {
    .ed-newsletter-form {
        flex-direction: column;
    }
    .ed-newsletter-form input,
    .ed-newsletter-form button {
        border-radius: var(--radius-md);
    }
}

/* ============================================
   VISUAL ENHANCEMENTS
   ============================================ */

/* 1. Card Hover Effects - Minimal for GameRant style (no glow) */
.ed-hero-lead,
.ed-hero-secondary-card,
.ed-lead,
.ed-horizontal,
.ed-compact,
.ed-latest-card {
    transition: transform 0.3s ease;
}

.ed-lead:hover {
    box-shadow: none;
}

.ed-horizontal:hover {
    box-shadow: none;
}

.ed-compact:hover {
    box-shadow: none;
    transform: none;
}

.ed-hero-secondary:hover {
    box-shadow: none;
}

.ed-latest-card:hover {
    transform: none;
    box-shadow: none;
}

/* 2. Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

.scroll-reveal-delay-1 { transition-delay: 0.1s; }
.scroll-reveal-delay-2 { transition-delay: 0.2s; }
.scroll-reveal-delay-3 { transition-delay: 0.3s; }
.scroll-reveal-delay-4 { transition-delay: 0.4s; }

/* Stagger children */
.scroll-reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scroll-reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.15s; }
.scroll-reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.2s; }
.scroll-reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.25s; }
.scroll-reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.3s; }

.scroll-reveal-stagger.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Ken Burns Image Effect - Disabled for GameRant style */
.ken-burns {
    overflow: hidden;
}

.ken-burns img,
.ken-burns .ed-placeholder {
    animation: none;
}

/* 4. Gradient Accents on Section Headers */
.ed-section-title-wrap::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), transparent);
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ed-section-title-wrap {
    position: relative;
}

.ed-section:hover .ed-section-title-wrap::after {
    opacity: 1;
    transform: scaleX(1);
}

/* 5. Hero Card Action Buttons */
.ed-hero-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ed-lead:hover .ed-card-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Tags - Clean inline tags */
.ed-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}

.ed-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: white;
}

.ed-tag[style*="--tag-color"] {
    background: var(--tag-color);
    border-color: transparent;
}

.ed-tag-featured {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: transparent;
}

.ed-tag-featured svg {
    width: 10px;
    height: 10px;
}

.ed-tag-new {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: transparent;
    animation: tagPulse 2s ease-in-out infinite;
}

@keyframes tagPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
}

/* 6. Skeleton Loading Shimmer */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--color-bg-tertiary) 0%,
        var(--color-bg-secondary) 50%,
        var(--color-bg-tertiary) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.skeleton-image {
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
}

.skeleton-title {
    height: 1rem;
    width: 80%;
    border-radius: var(--radius-sm);
}

.skeleton-text {
    height: 0.75rem;
    width: 60%;
    border-radius: var(--radius-sm);
}

/* 7. Glassmorphism Enhancements (applied via header.php) */

/* 8. Category Icons in Labels */
.ed-label-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.ed-label-icon svg {
    width: 12px;
    height: 12px;
    opacity: 0.9;
}

/* 9. Animated Background Pattern - Hidden for GameRant style */
.ed-bg-pattern {
    display: none;
}

/* patternFloat animation removed - bg pattern hidden */

/* 10. Enhanced Hover States for Images - Disabled for GameRant style */
.ed-image-overlay {
    position: relative;
    overflow: hidden;
}

.ed-image-overlay::after {
    display: none;
}

/* ============================================
   ADDITIONAL ENHANCEMENTS
   ============================================ */

/* 1. Image Blur-Up Loading */
.blur-up {
    filter: blur(10px);
    transition: filter 0.5s ease-out;
}

.blur-up.loaded {
    filter: blur(0);
}

.blur-up-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--color-bg-tertiary);
}

.blur-up-placeholder {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.1);
    transition: opacity 0.5s ease-out;
}

.blur-up-wrapper.loaded .blur-up-placeholder {
    opacity: 0;
}

/* 2. 3D Card Tilt Effect - Disabled for GameRant style */
.tilt-card {
    transform-style: flat;
    perspective: none;
}

.tilt-card-shine {
    display: none;
}

/* 3. Animated Section Dividers - Hidden for GameRant style */
.ed-section::before {
    display: none;
}

.ed-section {
    position: relative;
}

/* 4. Gradient Text Headlines - Disabled for GameRant style */
.gradient-text {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: var(--color-text);
}

/* 5. Floating Decorative Shapes - Hidden for GameRant style */
.floating-shapes {
    display: none;
}


/* 7. Article Preview Tooltip */
.article-tooltip {
    position: fixed;
    z-index: 1001;
    width: 340px;
    max-height: 420px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.article-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.article-tooltip.dragging {
    transition: none;
    user-select: none;
}

.article-tooltip.pinned {
    box-shadow: 0 0 0 2px var(--color-primary), 0 20px 50px -12px rgba(0, 0, 0, 0.25);
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    flex-shrink: 0;
    cursor: move;
}

.tooltip-header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.tooltip-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.tooltip-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.tooltip-btn {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.tooltip-btn:hover {
    background: var(--color-bg-secondary);
    color: var(--color-text);
}

.tooltip-btn svg {
    width: 14px;
    height: 14px;
}

.tooltip-btn.tooltip-pin.active {
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb, 99, 102, 241), 0.1);
}

.tooltip-btn.tooltip-fullscreen:hover {
    color: var(--color-primary);
}

.article-tooltip-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: var(--color-bg-tertiary);
    flex-shrink: 0;
}

.article-tooltip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-tooltip-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text);
    padding: 0.75rem 1rem 0.5rem;
    line-height: 1.3;
    flex-shrink: 0;
}

.article-tooltip-excerpt {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
    padding: 0 1rem 1rem;
    overflow-y: auto;
    flex: 1;
}

.article-tooltip-excerpt p {
    margin: 0 0 0.5rem;
}

.article-tooltip-excerpt p:last-of-type {
    margin-bottom: 0;
}

/* Loading state */
.tooltip-loading {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0;
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}

.tooltip-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: tooltipSpin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes tooltipSpin {
    to { transform: rotate(360deg); }
}

/* Cached indicator */
.tooltip-cached {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.125rem 0.375rem;
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-sm);
}

/* Error state */
.tooltip-error {
    color: #ef4444;
}

/* 9. Bookmark Button */
.bookmark-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

/* For cards without badge container, position absolutely */
.ed-hero-secondary > a > .bookmark-btn,
.ed-latest-card > a > .bookmark-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
}

.ed-lead:hover .bookmark-btn,
.ed-compact:hover .bookmark-btn,
.ed-horizontal:hover .bookmark-btn,
.ed-latest-card:hover .bookmark-btn,
.ed-hero-featured:hover .bookmark-btn,
.ed-secondary-card:hover .bookmark-btn {
    opacity: 1;
    transform: scale(1);
}

.bookmark-btn:hover {
    background: var(--color-primary);
}

.bookmark-btn.bookmarked {
    background: var(--color-primary);
    opacity: 1;
    transform: scale(1);
}

.bookmark-btn.bookmarked svg {
    fill: white;
}

.bookmark-btn svg {
    width: 18px;
    height: 18px;
}

/* Card Actions Container */
.ed-card-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ed-card-actions-sm {
    top: 0.5rem;
    right: 0.5rem;
    gap: 0.25rem;
}

.ed-lead:hover .ed-card-actions,
.ed-horizontal:hover .ed-card-actions,
.ed-compact:hover .ed-card-actions,
.ed-latest-card:hover .ed-card-actions,
.ed-hero-secondary:hover .ed-card-actions,
.ed-hero-featured:hover .ed-card-actions,
.ed-secondary-card:hover .ed-card-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Card actions buttons don't need separate opacity */
.ed-card-actions .bookmark-btn,
.ed-card-actions .preview-btn {
    opacity: 1;
    transform: scale(1);
}

/* Preview Button */
.preview-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.preview-btn:hover {
    background: var(--color-primary);
    transform: scale(1.1);
}

.preview-btn svg {
    width: 18px;
    height: 18px;
}

/* Small variants */
.preview-btn-sm,
.bookmark-btn-sm {
    width: 28px;
    height: 28px;
}

.preview-btn-sm svg,
.bookmark-btn-sm svg {
    width: 14px;
    height: 14px;
}

/* Mobile: Always show action buttons (no hover on touch devices) */
@media (max-width: 768px) {
    .ed-card-actions {
        opacity: 1;
        transform: translateY(0);
    }

    .ed-hero-actions {
        opacity: 1;
        transform: translateY(0);
    }

    .bookmark-btn:not(.ed-sidebar-bookmark) {
        opacity: 1;
        transform: scale(1);
        width: 32px;
        height: 32px;
    }

    .bookmark-btn:not(.ed-sidebar-bookmark) svg {
        width: 16px;
        height: 16px;
    }

    .ed-sidebar-bookmark {
        opacity: 1;
    }

    /* Hide preview button on mobile since tooltip is disabled */
    .preview-btn,
    .preview-btn-sm {
        display: none !important;
    }
}

/* Touch device detection via hover media query */
@media (hover: none) {
    .ed-card-actions {
        opacity: 1;
        transform: translateY(0);
    }

    .ed-hero-actions {
        opacity: 1;
        transform: translateY(0);
    }

    .bookmark-btn {
        opacity: 1;
        transform: scale(1);
    }

    .preview-btn,
    .preview-btn-sm {
        display: none !important;
    }
}

/* 10. Recently Viewed Section */
.recently-viewed {
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.recently-viewed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.recently-viewed-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text);
}

.recently-viewed-title svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

.recently-viewed-clear {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.recently-viewed-clear:hover {
    color: var(--color-primary);
}

.recently-viewed-list {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
}

.recently-viewed-item {
    flex: 0 0 140px;
    scroll-snap-align: start;
}

.recently-viewed-link {
    display: block;
    text-decoration: none;
}

.recently-viewed-image {
    aspect-ratio: 16/9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-bg-tertiary);
    margin-bottom: 0.5rem;
}

.recently-viewed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recently-viewed-item-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 11. Floating Share Button */
.floating-share {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.floating-share.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-share-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
}

.floating-share-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.floating-share-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.floating-share.open .floating-share-toggle svg {
    transform: rotate(45deg);
}

.floating-share-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.floating-share.open .floating-share-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease;
}

.floating-share-btn:hover {
    transform: scale(1.1);
}

.floating-share-btn.twitter { background: #1da1f2; }
.floating-share-btn.facebook { background: #1877f2; }
.floating-share-btn.linkedin { background: #0a66c2; }
.floating-share-btn.bluesky { background: #0085ff; }
.floating-share-btn.copy { background: var(--color-text-secondary); }

.floating-share-btn svg {
    width: 18px;
    height: 18px;
}

/* 12. Reading Preferences Panel */
.reading-prefs-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-secondary);
    z-index: 98;
    transition: all 0.2s ease;
}

.reading-prefs-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.reading-prefs-toggle svg {
    width: 20px;
    height: 20px;
}

.reading-prefs-panel {
    position: fixed;
    bottom: 5rem;
    left: 2rem;
    width: 280px;
    padding: 1.25rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.reading-prefs-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.reading-prefs-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reading-prefs-title svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

.reading-prefs-group {
    margin-bottom: 1rem;
}

.reading-prefs-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.reading-prefs-options {
    display: flex;
    gap: 0.5rem;
}

.reading-prefs-option {
    flex: 1;
    padding: 0.5rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.reading-prefs-option:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.reading-prefs-option.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Font size preview */
.font-size-sm { font-size: 14px; }
.font-size-md { font-size: 16px; }
.font-size-lg { font-size: 18px; }
.font-size-xl { font-size: 20px; }

/* Mobile adjustments for floating UI elements */
@media (max-width: 768px) {
    /* Adjust floating share button position */
    .floating-share {
        bottom: 1.5rem;
        right: 1rem;
    }

    .floating-share-toggle {
        width: 44px;
        height: 44px;
    }

    .floating-share-menu {
        right: 0;
        flex-direction: column;
        gap: 0.5rem;
    }

    .floating-share-btn {
        width: 40px;
        height: 40px;
    }

    /* Hide reading preferences on mobile - less useful on small screens */
    .reading-prefs-toggle,
    .reading-prefs-panel {
        display: none;
    }
}

@media (max-width: 480px) {
    /* Further adjustments for very small screens */
    .floating-share {
        bottom: 1rem;
        right: 0.75rem;
    }

    .floating-share-toggle {
        width: 40px;
        height: 40px;
    }

    .floating-share-toggle svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   CONTENT + TRENDING SIDEBAR WRAPPER
   ============================================ */
.gr-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1000px) {
    .gr-content-wrapper {
        grid-template-columns: 1fr;
    }
}

.gr-main-column {
    min-width: 0;
}

.gr-trending-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}

.gr-trending-sidebar::-webkit-scrollbar {
    width: 4px;
}
.gr-trending-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.gr-trending-sidebar::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 2px;
}

@media (max-width: 1000px) {
    .gr-trending-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}

.gr-trending-widget {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.gr-trending-widget h3 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #e53935;
}

.gr-trending-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: trending;
}

.gr-trending-item {
    counter-increment: trending;
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    align-items: flex-start;
}

.gr-trending-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gr-trending-item::before {
    content: counter(trending);
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 800;
    color: #e53935;
}

.gr-trending-link {
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
}

.gr-trending-thumb {
    flex: 0 0 60px;
    aspect-ratio: 16/10;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-bg-tertiary);
}

.gr-trending-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gr-trending-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gr-trending-title {
    font-family: var(--font-serif);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gr-trending-date {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* ============================================
   HOT RIGHT NOW - Trending Topics Section
   ============================================ */
.gr-hot-section {
    margin-bottom: 2.5rem;
}

.gr-hot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #e53935;
}

.gr-hot-viewall {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: #e53935;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
    white-space: nowrap;
}
.gr-hot-viewall:hover {
    background: #c62828;
    transform: translateY(-1px);
}

/* Scrollable carousel wrapper */
.gr-hot-carousel {
    position: relative;
}
.gr-hot-grid {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 2px 6px;
    margin: -6px -2px -6px;
}
.gr-hot-grid::-webkit-scrollbar { display: none; }
.gr-hot-grid > .gr-hot-card {
    flex: 0 0 calc(25% - 0.5625rem);
    scroll-snap-align: start;
    min-width: 220px;
}
@media (max-width: 1200px) {
    .gr-hot-grid > .gr-hot-card { flex: 0 0 calc(33.333% - 0.5rem); }
}
@media (max-width: 768px) {
    .gr-hot-grid > .gr-hot-card { flex: 0 0 calc(50% - 0.375rem); }
}
@media (max-width: 480px) {
    .gr-hot-grid > .gr-hot-card { flex: 0 0 85%; }
}

/* Arrow buttons */
.gr-hot-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-bg-secondary);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 200ms, border-color 200ms, opacity 200ms;
    opacity: 0.9;
}
.gr-hot-arrow:hover {
    background: var(--color-bg-tertiary);
    border-color: var(--color-primary);
    opacity: 1;
}
.gr-hot-arrow.hidden { opacity: 0; pointer-events: none; }
.gr-hot-arrow--left { left: -12px; }
.gr-hot-arrow--right { right: -12px; }
@media (max-width: 768px) {
    .gr-hot-arrow--left { left: 4px; }
    .gr-hot-arrow--right { right: 4px; }
}

.gr-hot-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.gr-hot-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.gr-hot-card-top {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.gr-hot-rank {
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 800;
    color: #e53935;
}

.gr-hot-name {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gr-hot-buzz {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-left: 0.6rem;
    border-left: 2px solid var(--color-border);
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.gr-hot-buzz-line {
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--color-text-secondary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gr-hot-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.4rem;
    border-top: 1px solid var(--color-border);
}

.gr-hot-stat {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-text-muted);
    white-space: nowrap;
}
.gr-hot-stat-new {
    color: #e53935;
}
.gr-hot-card-community {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0.35rem 0;
    margin-top: 0.25rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.15s;
}
.gr-hot-card-community:hover {
    color: var(--color-primary);
}
.gr-hot-stat-since {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--color-text-muted);
    opacity: 0.7;
}

/* Momentum indicators */
.gr-hot-momentum {
    flex-shrink: 0;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.gr-hot-momentum--rising {
    color: #10b981;
    animation: gr-hot-bounce 1.5s ease infinite;
}
.gr-hot-momentum--falling {
    color: #94a3b8;
    opacity: 0.6;
}
.gr-hot-momentum--new {
    font-size: 0.55rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    background: #e53935;
    color: white;
    letter-spacing: 0.3px;
}
@keyframes gr-hot-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* Trending-only cards (no topic hub yet) */
.gr-hot-card.gr-hot-card--trending {
    border-style: dashed;
    border-color: color-mix(in srgb, #e53935 35%, var(--color-border));
    background: linear-gradient(160deg, color-mix(in srgb, #e53935 4%, var(--color-bg-secondary)), var(--color-bg-secondary));
}
.gr-hot-card--trending .gr-hot-rank {
    background: color-mix(in srgb, #e53935 15%, var(--color-bg-tertiary));
}
.gr-hot-card--trending .gr-hot-buzz {
    border-left-color: color-mix(in srgb, #e53935 30%, var(--color-border));
}

/* Hot cards — just started trending, boosted to top */
.gr-hot-card.gr-hot-card--hot {
    border-color: #e53935;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, #e53935 10%, transparent), transparent),
        linear-gradient(160deg, color-mix(in srgb, #e53935 6%, var(--color-bg-secondary)), var(--color-bg-secondary));
    box-shadow: 0 0 0 1px rgba(229, 57, 53, 0.1), 0 4px 12px rgba(229, 57, 53, 0.08);
}
.gr-hot-card--hot .gr-hot-rank {
    background: #e53935;
    color: white;
}
.gr-hot-card--hot .gr-hot-name {
    color: var(--color-text);
}
.gr-hot-card--hot .gr-hot-buzz {
    border-left-color: #e53935;
}
.gr-hot-card--hot .gr-hot-card-footer {
    border-top-color: color-mix(in srgb, #e53935 20%, var(--color-border));
}
/* Subtle pulse animation on the hot card border */
.gr-hot-card--hot {
    animation: gr-hot-glow 3s ease-in-out infinite;
}
@keyframes gr-hot-glow {
    0%, 100% { box-shadow: 0 0 0 1px rgba(229,57,53,0.1), 0 4px 12px rgba(229,57,53,0.08); }
    50% { box-shadow: 0 0 0 1px rgba(229,57,53,0.25), 0 4px 16px rgba(229,57,53,0.15); }
}

.gr-hot-stat-sources {
    font-size: 0.6rem;
    color: var(--color-text-muted);
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1200px) {
    .gr-hot-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gr-hot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gr-hot-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .gr-hot-grid {
        grid-template-columns: 1fr;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .scroll-reveal-stagger > * {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ken-burns img,
    .ken-burns .ed-placeholder {
        animation: none;
    }

    @keyframes shimmer {
        0%, 100% { background-position: 0 0; }
    }
}
