/* =============================================
   RaiderKing — Homepage Styles
   ============================================= */

.rk-homepage { width: 100%; }
.rk-homepage-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

/* ── Shared: section head ─────────────────────────────────────────────────── */
.rk-hp-section { margin-bottom: 52px; }
.rk-hp-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(162,76,201,.15);
    padding-bottom: 12px;
}
.rk-hp-section-title {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 800;
    color: #fef7ff;
    margin: 0;
    letter-spacing: -.01em;
}
.rk-hp-more {
    font-size: 13px;
    color: rgba(254,247,255,.45);
    text-decoration: none;
    padding: 5px 12px;
    border: 1px solid rgba(162,76,201,.25);
    border-radius: 20px;
    transition: all .2s;
    white-space: nowrap;
}
.rk-hp-more:hover {
    color: #fef7ff;
    border-color: rgba(162,76,201,.6);
    background: rgba(162,76,201,.12);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
/* Fade-in on load */
@keyframes rk-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rk-hero {
    padding: 28px 0 0;
    animation: rk-fade-in .5s ease both;
}

.rk-hero-heading {
    max-width: 1200px;
    margin: 0 auto 16px;
    padding: 0 24px;
    font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    font-weight: 800;
    color: #fef7ff;
    letter-spacing: -.01em;
}

.rk-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 460px; /* wider right column */
    gap: 14px;
    align-items: stretch;
}
@media (max-width: 1000px) {
    .rk-hero-inner { grid-template-columns: 1fr 360px; }
}
@media (max-width: 800px) {
    .rk-hero-inner { grid-template-columns: 1fr; }
}

/* ── Featured card ────────────────────────────────────────────────────────── */
.rk-hero-featured {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 460px;
    background: #1f0a25;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid rgba(162,76,201,.2);
    /* Consistent hover: same transition as small cards */
    transition: border-color .25s, box-shadow .25s;
}
@media (max-width: 1000px) {
    .rk-hero-featured { min-height: 260px; }
}
.rk-hero-featured:hover {
    border-color: rgba(162,76,201,.6);
    box-shadow: 0 0 0 1px rgba(162,76,201,.25), 0 12px 40px rgba(0,0,0,.5);
}
.rk-hero-featured-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
    z-index: 0;
}
.rk-hero-featured:hover .rk-hero-featured-img { transform: scale(1.04); }

/* Overlay: stronger on hover so text stays readable */
.rk-hero-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(8,3,10,.9) 100%);
    transition: background .3s;
    z-index: 1;
}
.rk-hero-featured:hover .rk-hero-featured-overlay {
    background: linear-gradient(180deg, transparent 15%, rgba(8,3,10,.96) 100%);
}

.rk-hero-small-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(8,3,10,.9) 100%);
    z-index: 1;
}

.rk-hero-featured-cover-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
}

.rk-hero-featured-body {
    position: relative;
    padding: 24px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rk-hero-featured-title {
    font-size: clamp(1.3rem, 2.5vw, 1.85rem);
    font-weight: 800;
    color: #fef7ff;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 14px rgba(0,0,0,.6);
}
.rk-hero-featured-title a { color: inherit; text-decoration: none; }
.rk-hero-featured-title a:hover { color: #e59ad6; }
.rk-hero-featured-excerpt {
    font-size: 14px;
    color: rgba(254,247,255,.75);
    margin: 0;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

/* ── Small cards grid ─────────────────────────────────────────────────────── */
.rk-hero-small-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 100%;
}

.rk-hero-small {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #1f0a25;
    border: 1px solid rgba(162,76,201,.2);
    min-height: 160px;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.rk-hero-small:hover {
    border-color: rgba(162,76,201,.6);
    box-shadow: 0 0 0 1px rgba(162,76,201,.25), 0 8px 28px rgba(0,0,0,.45);
    transform: translateY(-2px);
}

.rk-hero-small-link {
    display: block;
    position: absolute;
    inset: 0;
    text-decoration: none;
    color: inherit;
    z-index: 3;
}
.rk-hero-small-thumb {
    position: absolute;
    inset: 0;
}
.rk-hero-small-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.rk-hero-small:hover .rk-hero-small-thumb img { transform: scale(1.06); }

/* Gradient overlay — darkens further on hover to keep text readable */
.rk-hero-small::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(8,3,10,.88) 100%);
    transition: background .3s;
    pointer-events: none;
    z-index: 1;
}
.rk-hero-small:hover::after {
    background: linear-gradient(180deg, transparent 10%, rgba(8,3,10,.96) 100%);
}

/* Text sits at bottom over image */
.rk-hero-small-body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 10px 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
    pointer-events: none;
}
.rk-hero-small-body .rk-badge {
    pointer-events: all;
    position: relative;
    z-index: 4;
}
.rk-hero-small-title {
    font-size: 13px;
    font-weight: 700;
    color: #fef7ff;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 6px rgba(0,0,0,.7);
}

/* ── Category badge colours (matching original plugin) ────────────────────── */
/* Applied on both hero-badge and general rk-badge-type modifiers */
.rk-badge-guides {
    background: linear-gradient(144deg, rgba(182,112,212,.9) 0%, rgba(84,29,194,.9) 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
}
.rk-badge-news {
    background: linear-gradient(342deg, rgba(135,18,134,.9) 0%, rgba(120,35,131,.9) 29%, rgba(131,65,245,.9) 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
}
.rk-badge-reviews {
    background: linear-gradient(342deg, rgba(135,18,134,.9) 0%, rgba(117,19,130,.9) 29%, rgba(245,65,165,.9) 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
}
.rk-badge-features {
    background: linear-gradient(144deg, rgba(156,99,171,.9) 0%, rgba(57,204,69,.9) 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
}
.rk-badge-giveaways {
    background: linear-gradient(144deg, rgba(156,99,171,.9) 0%, rgba(204,57,57,.9) 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* Hero badge specifically — always solid, always clickable */
.rk-hero-badge {
    align-self: flex-start;
    font-size: 10px !important;
    position: relative;
    z-index: 4;
    pointer-events: all;
}

/* ── Social bar ─────────────────────────────────────────────────────────────*/
.rk-social-bar {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(162,76,201,.12);
}

.rk-social-follow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 22px;
    background: rgba(42,17,42,.6);
    border: 1px solid rgba(162,76,201,.2);
    color: var(--social-color, rgba(254,247,255,.7));
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}
.rk-social-follow:hover {
    background: rgba(162,76,201,.18);
    border-color: rgba(162,76,201,.5);
    color: #fef7ff;
    transform: translateY(-2px);
}

/* Desktop: show label */
.rk-social-label { display: inline; }

/* ── Mobile: icon-only below 640px ── */
@media (max-width: 640px) {
    .rk-social-bar {
        gap: 10px;
        padding: 14px 16px;
    }
    .rk-social-follow {
        /* Square icon button */
        padding: 10px;
        border-radius: 50%;
        width: 42px;
        height: 42px;
        justify-content: center;
    }
    .rk-social-label {
        display: none;
    }
}

/* ── Google follow strip ──────────────────────────────────────────────────── */
.rk-google-strip {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px 0px 24px;
}
.rk-google-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    border-radius: 12px;
    background: rgba(42,17,42,.5);
    border: 1px solid rgba(162,76,201,.18);
    flex-wrap: wrap;
}
.rk-google-strip-text {
    margin: 0;
    font-size: 13px;
    color: rgba(254,247,255,.65);
    flex: 1;
    min-width: 200px;
}
.rk-google-strip-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.rk-google-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}
.rk-google-btn-search {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,.15);
    color: #fef7ff;
}
.rk-google-btn-search:hover {
    background: #222244;
    border-color: rgba(66,133,244,.5);
    color: #fff;
}
.rk-google-btn-news {
    background: rgba(162,76,201,.15);
    border: 1px solid rgba(162,76,201,.3);
    color: rgba(254,247,255,.8);
}
.rk-google-btn-news:hover {
    background: rgba(162,76,201,.28);
    border-color: rgba(162,76,201,.6);
    color: #fef7ff;
}

@media (max-width: 600px) {
    .rk-google-strip-inner { flex-direction: column; align-items: flex-start; }
    .rk-google-strip-buttons { width: 100%; }
    .rk-google-btn { flex: 1; justify-content: center; }
}

/* ── Shared card grid ─────────────────────────────────────────────────────── */
.rk-hp-section { margin-top: 48px; }
.rk-hp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 860px) { .rk-hp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rk-hp-grid { grid-template-columns: 1fr; } }

.rk-hp-card {
    background: linear-gradient(135deg, rgba(82, 38, 100, .55) 0%, rgba(42, 17, 42, .85) 55%, rgba(18, 10, 20, .95) 100%);
    border: 1px solid rgba(162,76,201,.15);
    border-radius: 12px;
    overflow: visible;
    transition: transform .25s, border-color .25s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.rk-hp-card:hover {
    transform: translateY(-3px);
    border-color: rgba(162,76,201,.45);
}
.rk-hp-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.rk-hp-thumb-link { display: block; }
.rk-hp-thumb {
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    position: relative;
    background: #1f0a25;
}
.rk-hp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.rk-hp-card:hover .rk-hp-thumb img { transform: scale(1.04); }
.rk-hp-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10,4,12,.5) 100%);
}
.rk-hp-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a112a, #1a0820);
}
.rk-hp-card-body { padding: 14px 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.rk-hp-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #fef7ff;
    margin: 0;
    line-height: 1.35;
}
.rk-hp-card-title a { color: inherit; text-decoration: none; }
.rk-hp-card-title a:hover { color: #e59ad6; }
.rk-hp-card-excerpt {
    font-size: 13px;
    color: rgba(254,247,255,.5);
    margin: 0;
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rk-hp-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: rgba(254,247,255,.35);
    flex-wrap: wrap;
    margin-top: auto;
}
.rk-hp-author { display: flex; align-items: center; gap: 5px; color: rgba(254,247,255,.5); }
.rk-hp-avatar { border-radius: 50%; width: 18px !important; height: 18px !important; }
.rk-hp-date, .rk-hp-read { display: flex; align-items: center; gap: 4px; }

/* ── Two-column layout ────────────────────────────────────────────────────── */
.rk-hp-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin-top: 48px;
    align-items: start;
}
@media (max-width: 860px) { .rk-hp-two-col { grid-template-columns: 1fr; } }

/* ── News stream ──────────────────────────────────────────────────────────── */
.rk-hp-stream {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rk-hp-stream-item {
    background: rgba(42,17,42,.4);
    border: 1px solid rgba(162,76,201,.12);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .2s, background .2s;
}
.rk-hp-stream-item:hover {
    border-color: rgba(162,76,201,.35);
    background: rgba(162,76,201,.08);
}
.rk-hp-stream-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: inherit;
}
.rk-hp-stream-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #1f0a25;
}
.rk-hp-stream-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rk-hp-stream-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.rk-hp-stream-title {
    font-size: 13px;
    font-weight: 600;
    color: #fef7ff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.rk-hp-stream-item:hover .rk-hp-stream-title { color: #e59ad6; }
.rk-hp-stream-meta {
    font-size: 11px;
    color: rgba(254,247,255,.35);
    min-height: 1.4em;
}
.rk-hp-stream-game { color: rgba(162,76,201,.8); }

/* ── Reviews (stacked in column) ─────────────────────────────────────────── */
.rk-hp-reviews .rk-hp-section-head { margin-bottom: 20px; }
.rk-hp-review-list { display: flex; flex-direction: column; gap: 14px; }
.rk-hp-review-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    background: linear-gradient(135deg, rgba(82, 38, 100, .55) 0%, rgba(42, 17, 42, .85) 55%, rgba(18, 10, 20, .95) 100%);
    border: 1px solid rgba(162,76,201,.15);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .2s;
}
.rk-hp-review-card:hover { border-color: rgba(162,76,201,.4); }
.rk-hp-review-thumb-link { display: block; }
.rk-hp-review-thumb {
    position: relative;
    height: 100%;
    min-height: 90px;
    overflow: hidden;
    background: #1f0a25;
}
.rk-hp-review-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.rk-hp-review-card:hover .rk-hp-review-thumb img { transform: scale(1.05); }
.rk-hp-rating-chip {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(10,4,12,.85);
    border: 1px solid rgba(162,76,201,.5);
    color: #e59ad6;
    font-size: 13px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1;
}
.rk-hp-rating-chip span { font-size: 10px; color: rgba(254,247,255,.4); font-weight: 400; }
.rk-hp-review-body {
    padding: 12px 14px 12px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    align-items: flex-start;
}
.rk-hp-review-body .rk-badges {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}
.rk-hp-review-title {
    font-size: 14px;
    font-weight: 700;
    color: #fef7ff;
    margin: 0;
    line-height: 1.3;
}
.rk-hp-review-title a { color: inherit; text-decoration: none; }
.rk-hp-review-title a:hover { color: #e59ad6; }
.rk-hp-review-excerpt {
    font-size: 12px;
    color: rgba(254,247,255,.45);
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Giveaway banner ──────────────────────────────────────────────────────── */
.rk-hp-giveaway {
    max-width: 1200px;
    margin: 0 auto 52px;
    padding: 0 24px;
}
.rk-hp-giveaway-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #3a1d3d 0%, #2a112a 100%);
    border: 1px solid rgba(162,76,201,.3);
    box-shadow: 0 0 40px rgba(162,76,201,.1);
}
@media (max-width: 700px) { .rk-hp-giveaway-inner { grid-template-columns: 1fr; } }
.rk-hp-giveaway-img { overflow: hidden; aspect-ratio: 16 / 10; }
.rk-hp-giveaway-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.rk-hp-giveaway-inner:hover .rk-hp-giveaway-img img { transform: scale(1.03); }
.rk-hp-giveaway-body {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}
.rk-hp-giveaway-title {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 800;
    color: #fef7ff;
    margin: 0;
    line-height: 1.2;
}
.rk-hp-giveaway-title a { color: inherit; text-decoration: none; }
.rk-hp-giveaway-title a:hover { color: #e59ad6; }
.rk-hp-giveaway-excerpt {
    font-size: 14px;
    color: rgba(254,247,255,.6);
    margin: 0;
    line-height: 1.7;
}
.rk-hp-giveaway-btn {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 11px 24px;
    background: linear-gradient(135deg, #a24cc9, #7b35a0);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 24px;
    transition: all .2s;
    box-shadow: 0 4px 16px rgba(162,76,201,.35);
}
.rk-hp-giveaway-btn:hover {
    background: linear-gradient(135deg, #b560dc, #9244b8);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(162,76,201,.5);
}

/* ── Shared badges ────────────────────────────────────────────────────────── */
.rk-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity .15s;
    line-height: 1.6;
}
.rk-badge:hover { opacity: .8; }
.rk-badge-type  { background: rgba(162, 76, 201, .85); color: #fef7ff; }
.rk-badge-game  {     background: rgba(58, 29, 61, .85); color: rgba(254, 247, 255, .85); border: 1px solid rgba(162, 76, 201, .3); }
.rk-badge-giveaway { background: rgba(204,57,57,.25); color: #f9a8a8; border: 1px solid rgba(204,57,57,.4); }