/* ============================================
   Nhsuaf.com - Homepage Styles
   Bright fresh design — red/teal/orange theme
   ============================================ */

/* ============================================
   HERO — Clean centered welcome area
   ============================================ */

.ns-hero {
    position: relative;
    width: 100%;
    padding: 60px 24px 52px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #533483 100%);
    overflow: hidden;
    color: #ffffff;
}

.ns-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: 10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.ns-hero::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 5%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(0, 206, 201, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.ns-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ns-hero-text {
    max-width: 640px;
}

.ns-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #e94560;
    background: rgba(233, 69, 96, 0.12);
    border: 1px solid rgba(233, 69, 96, 0.25);
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.ns-hero h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 16px;
}

.ns-hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #e94560, #f5a623);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ns-hero p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.ns-hero-tagline {
    font-size: 0.88rem;
    color: #e94560;
    font-weight: 600;
    margin-bottom: 24px;
    min-height: 1.4em;
    font-style: italic;
}

.ns-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.ns-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.ns-hero-btn-primary {
    background: linear-gradient(135deg, #e94560, #f5a623);
    color: #fff;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.3);
}

.ns-hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(233, 69, 96, 0.4);
}

.ns-hero-btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    backdrop-filter: blur(4px);
}

.ns-hero-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ============================================
   CATEGORY — Pill-style tabs
   ============================================ */

.ns-cat-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 0 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 0 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.ns-cat-nav::-webkit-scrollbar { display: none; }

.ns-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    flex-shrink: 0;
    cursor: pointer;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 50px;
    transition: all 0.25s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.ns-cat-pill:hover {
    border-color: #e94560;
    background: #fff0f3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.1);
}

.ns-cat-pill-icon {
    font-size: 1.2rem;
}

.ns-cat-pill-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #2d3436;
}

/* Category accent colors on hover */
.ns-cat-pill:nth-child(1):hover { border-color: #fdcb6e; background: #fff8e1; }
.ns-cat-pill:nth-child(2):hover { border-color: #fd79a8; background: #ffeef0; }
.ns-cat-pill:nth-child(3):hover { border-color: #74b9ff; background: #eef5ff; }
.ns-cat-pill:nth-child(4):hover { border-color: #00cec9; background: #e8fffe; }
.ns-cat-pill:nth-child(5):hover { border-color: #fd79a8; background: #ffeef0; }
.ns-cat-pill:nth-child(6):hover { border-color: #55efc4; background: #e8fff5; }
.ns-cat-pill:nth-child(7):hover { border-color: #ff7675; background: #fff0f0; }
.ns-cat-pill:nth-child(8):hover { border-color: #00cec9; background: #e8fffe; }
.ns-cat-pill:nth-child(9):hover { border-color: #fdcb6e; background: #fff8e1; }

/* ============================================
   DAILY PICK — Featured game spotlight
   ============================================ */

.ns-daily-pick {
    display: flex;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.08);
    position: relative;
}

.ns-daily-pick::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 19px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(233,69,96,0.3), transparent 50%, rgba(245,166,35,0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.ns-daily-pick-image {
    width: 40%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.ns-daily-pick-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 240px;
}

.ns-daily-pick-content {
    flex: 1;
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ns-daily-pick-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #e94560;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ns-daily-pick-content h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #2d3436;
    margin-bottom: 10px;
    line-height: 1.2;
}

.ns-daily-pick-content p {
    font-size: 0.86rem;
    color: #636e72;
    line-height: 1.65;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ns-daily-pick-meta {
    display: flex;
    gap: 14px;
    align-items: center;
}

.ns-daily-pick-meta .ns-play-btn {
    padding: 12px 28px;
    font-size: 0.85rem;
    border-radius: 10px;
}

.ns-daily-pick-meta .ns-daily-pick-info {
    font-size: 0.76rem;
    color: #b2bec3;
    font-weight: 600;
}

/* ============================================
   GAME QUIZ BANNER — Interactive component
   ============================================ */

.ns-quiz-banner {
    background: linear-gradient(135deg, #e94560, #f5a623);
    border-radius: 18px;
    padding: 36px 40px;
    margin: 36px 0;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.ns-quiz-banner::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.ns-quiz-banner h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #ffffff;
}

.ns-quiz-banner > p {
    font-size: 0.88rem;
    opacity: 0.85;
    margin-bottom: 20px;
}

.ns-quiz-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.ns-quiz-opt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
}

.ns-quiz-opt:hover {
    background: rgba(255,255,255,0.28);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.ns-quiz-opt-icon {
    font-size: 1.3rem;
}

/* ============================================
   EDITOR'S PICKS — Horizontal scroll strip
   ============================================ */

.ns-picks-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 16px;
}

.ns-picks-strip::-webkit-scrollbar { display: none; }

.ns-pick-card {
    flex-shrink: 0;
    width: 220px;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s;
}

.ns-pick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.12);
    border-color: #d0d0e0;
}

.ns-pick-card a { display: block; }

.ns-pick-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.ns-pick-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ns-pick-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #e94560, #f5a623);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ns-pick-card-body {
    padding: 12px 14px;
}

.ns-pick-card-body h3 {
    font-size: 0.82rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ns-pick-card-body p {
    font-size: 0.72rem;
    color: #636e72;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   FEATURED — Mixed layout: hero + balanced grid
   ============================================ */

.ns-featured-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

/* Hero card spans 2 columns × 2 rows */
.ns-featured-grid .ns-feat-hero {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ns-featured-grid .ns-feat-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(108, 92, 231, 0.12);
    border-color: #d0d0e0;
}

.ns-featured-grid .ns-feat-hero a { display: block; }

.ns-featured-grid .ns-feat-hero .ns-feat-hero-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.ns-featured-grid .ns-feat-hero .ns-feat-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.ns-featured-grid .ns-feat-hero:hover .ns-feat-hero-thumb img {
    transform: scale(1.06);
}

.ns-featured-grid .ns-feat-hero .ns-feat-hero-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #e94560, #f5a623);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.ns-featured-grid .ns-feat-hero .ns-feat-hero-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ns-featured-grid .ns-feat-hero .ns-feat-hero-body h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #2d3436;
    margin-bottom: 6px;
}

.ns-featured-grid .ns-feat-hero .ns-feat-hero-body p {
    font-size: 0.76rem;
    color: #636e72;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.ns-featured-grid .ns-feat-hero .ns-feat-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ns-featured-grid .ns-feat-hero .ns-feat-hero-meta .ns-card-tag {
    font-size: 0.62rem;
    font-weight: 700;
    color: #e94560;
    background: #fff0f3;
    padding: 3px 8px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ns-featured-grid .ns-feat-hero .ns-feat-hero-meta .ns-card-rating {
    font-size: 0.66rem;
    color: #fdcb6e;
    font-weight: 700;
}

/* Regular featured cards */
.ns-featured-grid .ns-card {
    border-radius: 14px;
}

.ns-featured-grid .ns-card-thumb {
    aspect-ratio: 16 / 10;
}

.ns-featured-grid .ns-card-info {
    padding: 10px 12px;
}

.ns-featured-grid .ns-card-name {
    font-size: 0.8rem;
    margin-bottom: 6px;
}

/* ============================================
   LATEST — List style
   ============================================ */

.ns-list-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.ns-list-card {
    display: flex;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.ns-list-card:hover {
    border-color: #d0d0e0;
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.08);
}

.ns-list-card a {
    display: flex;
    width: 100%;
}

.ns-list-card-thumb {
    width: 200px;
    min-height: 130px;
    flex-shrink: 0;
    overflow: hidden;
}

.ns-list-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.ns-list-card:hover .ns-list-card-thumb img {
    transform: scale(1.06);
}

.ns-list-card-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.ns-list-card-body h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    color: #2d3436;
    margin-bottom: 6px;
}

.ns-list-card-body p {
    font-size: 0.78rem;
    color: #636e72;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.ns-list-card-tags {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ns-list-card-tags span {
    font-size: 0.64rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 5px;
}

.ns-list-tag-type {
    background: #fff0f3;
    color: #e94560;
}

.ns-list-tag-rating {
    color: #fdcb6e;
}

/* ============================================
   TRENDING — Numbered cards row
   ============================================ */

.ns-trending-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 16px;
}

.ns-trending-row::-webkit-scrollbar { display: none; }

.ns-trending-card {
    flex-shrink: 0;
    width: 170px;
    position: relative;
}

.ns-trending-num {
    font-family: 'Nunito', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: rgba(233, 69, 96, 0.2);
    line-height: 1;
    margin-bottom: 8px;
    padding-left: 4px;
}

.ns-trending-card .ns-card {
    border-radius: 12px;
}

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */

@media (max-width: 1024px) {
    .ns-hero-inner { text-align: center; }
    .ns-hero h1 { font-size: 2rem; }

    .ns-featured-grid { grid-template-columns: repeat(3, 1fr); }
    .ns-featured-grid .ns-feat-hero { grid-column: 1 / 3; grid-row: 1 / 3; }

    .ns-quiz-options { gap: 10px; }
    .ns-quiz-opt { padding: 10px 18px; font-size: 0.8rem; }
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */

@media (max-width: 768px) {
    .ns-hero { padding: 36px 16px 32px; }
    .ns-hero h1 { font-size: 1.5rem; }
    .ns-hero p { font-size: 0.9rem; }
    .ns-hero-actions { flex-direction: column; align-items: center; gap: 10px; }
    .ns-hero-btn { width: 100%; justify-content: center; }

    .ns-cat-nav { justify-content: flex-start; flex-wrap: nowrap; }

    .ns-daily-pick { flex-direction: column; }
    .ns-daily-pick-image { width: 100%; }
    .ns-daily-pick-image img { min-height: 180px; }
    .ns-daily-pick-content { padding: 20px; }
    .ns-daily-pick-content h2 { font-size: 1.2rem; }

    .ns-quiz-banner { padding: 24px 20px; }
    .ns-quiz-banner h2 { font-size: 1.1rem; }
    .ns-quiz-options { flex-direction: column; }
    .ns-quiz-opt { width: 100%; justify-content: center; }

    .ns-featured-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ns-featured-grid .ns-feat-hero { grid-column: 1 / 3; grid-row: 1 / 3; }

    .ns-list-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .ns-list-card {
        flex-direction: column;
        border-radius: 12px;
    }
    .ns-list-card a {
        flex-direction: column;
    }
    .ns-list-card-thumb {
        width: 100%;
        min-height: 110px;
        aspect-ratio: 16 / 10;
    }
    .ns-list-card-body {
        padding: 10px 12px;
    }
    .ns-list-card-body h3 {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    .ns-list-card-body p {
        font-size: 0.7rem;
        -webkit-line-clamp: 2;
        margin-bottom: 6px;
    }
    .ns-list-card-tags span {
        font-size: 0.6rem;
        padding: 2px 8px;
    }

    .ns-trending-card { width: 140px; }

    .ns-pick-card { width: 180px; }
}

@media (max-width: 480px) {
    .ns-hero h1 { font-size: 1.3rem; }
    .ns-featured-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ns-featured-grid .ns-feat-hero { grid-column: 1 / 3; grid-row: 1 / 3; }
}

/* Home intro section */
.ns-home-intro {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 0 24px 40px;
}
.ns-home-intro-inner {
    background: #fff8f9;
    border: 1px solid #ffd0d8;
    border-radius: 16px;
    padding: 32px 36px;
}
.ns-home-intro h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #2d3436;
    margin: 0 0 16px;
}
.ns-home-intro p {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.75;
    margin: 0 0 14px;
}
.ns-home-intro p:last-child {
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .ns-home-intro { padding: 0 16px 28px; margin-top: 28px; }
    .ns-home-intro-inner { padding: 24px 20px; }
    .ns-home-intro h2 { font-size: 1.2rem; }
}
