﻿/* ===================================================================
   Duiqod - Homepage Styles
   Comic/Doodle style with light, playful aesthetic
   =================================================================== */

/* ---------- Hero: Full-width banner ---------- */
.ln-hero {
    position: relative;
    overflow: hidden;
    padding: 48px 0 40px;
    background: linear-gradient(135deg, #faf8f3 0%, #f0ece4 50%, #e8e4dc 100%);
    margin-left: var(--sidebar-w);
}
@media (max-width: 900px) {
    .ln-hero { margin-left: 0; }
}
.ln-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.06), transparent 70%);
    pointer-events: none;
}
.ln-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.ln-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 20px;
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid rgba(255, 107, 53, 0.2);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.03em;
    margin-bottom: 18px;
    font-family: 'Fredoka', sans-serif;
}
.ln-hero-title {
    font-size: clamp(28px, 4.5vw, 48px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--fg);
    margin-bottom: 16px;
    font-family: 'Fredoka', sans-serif;
}
.ln-hero-title em {
    font-style: normal;
    background: var(--grad1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.ln-hero-sub {
    font-size: clamp(14px, 1.3vw, 16px);
    color: var(--fg2);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 480px;
}
.ln-hero-search {
    display: flex;
    max-width: 460px;
    background: var(--card);
    border: var(--sketch-border);
    border-radius: var(--r2);
    padding: 4px 4px 4px 16px;
    align-items: center;
    gap: 8px;
    box-shadow: var(--sh2);
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 16px;
}
.ln-hero-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 4px 24px rgba(255, 107, 53, 0.12);
}
.ln-hero-search input {
    flex: 1;
    background: transparent;
    border: 0;
    color: var(--fg);
    font-size: 14px;
    padding: 11px 0;
    outline: none;
    font-family: inherit;
}
.ln-hero-search input::placeholder { color: var(--fg3); }
.ln-hero-search-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--r1);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    font-family: 'Fredoka', sans-serif;
    border: 2px solid var(--primary-d);
    box-shadow: 2px 2px 0 var(--primary-d);
}
.ln-hero-search-btn:hover {
    transform: scale(1.03);
    box-shadow: 3px 3px 0 var(--primary-d);
}
.ln-hero-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--fg3);
}
.ln-hero-tags span { font-weight: 600; }
.ln-hero-tags a {
    padding: 5px 14px;
    border-radius: 20px;
    background: var(--card);
    border: 2px solid var(--border);
    color: var(--fg2);
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 2px 2px 0 var(--bg3);
}
.ln-hero-tags a:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* Hero right: game showcase */
.ln-hero-showcase {
    position: relative;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ln-hero-showcase-card {
    position: absolute;
    border-radius: var(--r2);
    overflow: hidden;
    background: var(--card);
    border: var(--sketch-border);
    box-shadow: var(--sh3);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.ln-hero-showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ln-hero-showcase-card-lg {
    width: 240px;
    height: 170px;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.ln-hero-showcase-card-sm {
    width: 150px;
    height: 108px;
    z-index: 2;
}
#ln-float-1 { top: 5%; left: 5%; transform: rotate(-5deg); }
#ln-float-2 { bottom: 8%; right: 5%; transform: rotate(4deg); }
#ln-float-3 { top: 10%; right: 10%; transform: rotate(3deg); }
#ln-float-4 { bottom: 15%; left: 8%; transform: rotate(-4deg); }
.ln-hero-showcase-card-lg:hover {
    transform: translate(-50%, -50%) scale(1.04);
}
.ln-hero-showcase-card-sm:hover { transform: scale(1.06); }

/* ---------- Stats Ribbon ---------- */
.ln-stats {
    background: var(--card);
    border-bottom: var(--sketch-border);
    padding: 24px 0;
    position: relative;
    z-index: 3;
    margin-left: var(--sidebar-w);
}
@media (max-width: 900px) {
    .ln-stats { margin-left: 0; }
}
.ln-stats-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
}
.ln-stat { display: flex; align-items: center; gap: 12px; }
.ln-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: var(--sketch-border);
    box-shadow: 2px 2px 0 var(--bg3);
}
.ln-stat-icon-1 { background: rgba(255, 107, 53, 0.12); }
.ln-stat-icon-2 { background: rgba(255, 210, 63, 0.15); }
.ln-stat-icon-3 { background: rgba(0, 200, 83, 0.12); }
.ln-stat-icon-4 { background: rgba(124, 77, 255, 0.12); }
.ln-stat-info { display: flex; flex-direction: column; }
.ln-stat-num {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--fg);
    font-family: 'Fredoka', sans-serif;
}
.ln-stat-num-1 { color: var(--primary); }
.ln-stat-num-2 { color: #b8860b; }
.ln-stat-num-3 { color: var(--green); }
.ln-stat-num-4 { color: var(--violet); }
.ln-stat-label { font-size: 11px; color: var(--fg3); font-weight: 600; }
@media (max-width: 600px) {
    .ln-stats-inner { gap: 16px; }
    .ln-stat { flex-direction: column; text-align: center; gap: 6px; }
}

/* ---------- Category Tiles ---------- */
.ln-categories { margin-top: 48px; }
.ln-cat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 20px;
}
.ln-cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 10px;
    text-align: center;
    background: var(--card);
    border: var(--sketch-border);
    border-radius: var(--r2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--sh1);
}
.ln-cat-tile:hover {
    transform: translateY(-4px) rotate(-0.5deg);
    box-shadow: var(--sh2);
    border-color: var(--primary);
}
.ln-cat-tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
    z-index: 1;
    border: var(--sketch-border);
    box-shadow: 2px 2px 0 var(--bg3);
}
.ln-cat-tile:nth-child(1) .ln-cat-tile-icon { background: rgba(255, 107, 53, 0.12); }
.ln-cat-tile:nth-child(2) .ln-cat-tile-icon { background: rgba(255, 64, 129, 0.12); }
.ln-cat-tile:nth-child(3) .ln-cat-tile-icon { background: rgba(41, 121, 255, 0.12); }
.ln-cat-tile:nth-child(4) .ln-cat-tile-icon { background: rgba(255, 210, 63, 0.15); }
.ln-cat-tile:nth-child(5) .ln-cat-tile-icon { background: rgba(124, 77, 255, 0.12); }
.ln-cat-tile:nth-child(6) .ln-cat-tile-icon { background: rgba(0, 200, 83, 0.12); }
.ln-cat-tile-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--fg);
    position: relative;
    z-index: 1;
    font-family: 'Fredoka', sans-serif;
}
.ln-cat-tile-count {
    font-size: 10px;
    color: var(--fg3);
    position: relative;
    z-index: 1;
}
@media (max-width: 900px) {
    .ln-cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 500px) {
    .ln-cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .ln-cat-tile { padding: 16px 8px; }
}

/* ---------- Featured Game Spotlight ---------- */
.ln-spotlight {
    margin: 48px 0 0;
    background: var(--card);
    border: var(--sketch-border);
    border-radius: var(--r3);
    overflow: hidden;
    position: relative;
    box-shadow: var(--sh2);
}
.ln-spotlight::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.05), transparent 70%);
    pointer-events: none;
}
.ln-spotlight-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    padding: 36px 32px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.ln-spotlight-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: var(--fg);
    margin: 12px 0 14px;
    font-family: 'Fredoka', sans-serif;
}
.ln-spotlight-desc {
    font-size: 14px;
    color: var(--fg2);
    line-height: 1.7;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ln-spotlight-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.ln-spotlight-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ln-spotlight-img {
    aspect-ratio: 16/10;
    border-radius: var(--r2);
    overflow: hidden;
    background: var(--bg2);
    border: var(--sketch-border);
    box-shadow: var(--sh3);
}
.ln-spotlight-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 780px) {
    .ln-spotlight-inner { grid-template-columns: 1fr; padding: 24px 20px; }
    .ln-spotlight-img { max-height: 220px; }
}

/* ---------- Features Strip ---------- */
.ln-features { margin-top: 48px; }
.ln-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 20px;
}
.ln-feature {
    padding: 24px 18px;
    background: var(--card);
    border: var(--sketch-border);
    border-radius: var(--r2);
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--sh1);
}
.ln-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh2);
    border-color: var(--primary);
}
.ln-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 12px;
    border: var(--sketch-border);
    box-shadow: 2px 2px 0 var(--bg3);
}
.ln-feature:nth-child(1) .ln-feature-icon { background: rgba(255, 107, 53, 0.12); }
.ln-feature:nth-child(2) .ln-feature-icon { background: rgba(255, 210, 63, 0.15); }
.ln-feature:nth-child(3) .ln-feature-icon { background: rgba(0, 200, 83, 0.12); }
.ln-feature:nth-child(4) .ln-feature-icon { background: rgba(255, 64, 129, 0.12); }
.ln-feature h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--fg);
    margin-bottom: 8px;
    font-family: 'Fredoka', sans-serif;
}
.ln-feature p { font-size: 12.5px; color: var(--fg2); line-height: 1.6; }
@media (max-width: 800px) {
    .ln-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .ln-features-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- How It Works ---------- */
.ln-how { margin-top: 56px; }
.ln-section-head-center { text-align: center; justify-content: center; }
.ln-section-head-center .ln-section-sub { margin-left: auto; margin-right: auto; }
.ln-how-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-top: 28px;
}
.ln-how-step {
    flex: 1;
    max-width: 260px;
    text-align: center;
    padding: 0 16px;
    position: relative;
}
.ln-how-step-num {
    position: absolute;
    top: -8px;
    right: calc(50% - 55px);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-family: 'Fredoka', sans-serif;
    border: 2px solid var(--primary-d);
    box-shadow: 2px 2px 0 var(--primary-d);
}
.ln-how-step-icon {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: var(--card);
    border: var(--sketch-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 14px;
    transition: all 0.3s;
    box-shadow: var(--sh1);
}
.ln-how-step:hover .ln-how-step-icon {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.12);
    transform: scale(1.06);
}
.ln-how-step h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--fg);
    margin-bottom: 8px;
    font-family: 'Fredoka', sans-serif;
}
.ln-how-step p { font-size: 12.5px; color: var(--fg2); line-height: 1.6; }
.ln-how-step-connector {
    width: 50px;
    height: 3px;
    background: var(--border);
    margin-top: 34px;
    flex-shrink: 0;
    position: relative;
    border-radius: 2px;
}
.ln-how-step-connector::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--primary);
    border: 2px solid var(--bg);
}
@media (max-width: 700px) {
    .ln-how-steps { flex-direction: column; align-items: center; gap: 24px; }
    .ln-how-step-connector { width: 3px; height: 24px; margin: 0; }
    .ln-how-step-connector::after { right: -3px; bottom: -3px; top: auto; }
}

/* ---------- Testimonials ---------- */
.ln-reviews { margin-top: 56px; }
.ln-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}
.ln-review {
    padding: 24px 20px;
    background: var(--card);
    border: var(--sketch-border);
    border-radius: var(--r2);
    transition: all 0.25s;
    position: relative;
    box-shadow: var(--sh1);
}
.ln-review::before {
    content: '\201C';
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 42px;
    color: rgba(255, 107, 53, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}
.ln-review:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh2);
    border-color: var(--primary);
}
.ln-review-stars { font-size: 13px; margin-bottom: 10px; letter-spacing: 2px; }
.ln-review-text {
    font-size: 13px;
    color: var(--fg2);
    line-height: 1.7;
    margin-bottom: 14px;
    font-style: italic;
}
.ln-review-author { display: flex; align-items: center; gap: 10px; }
.ln-review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    border: 2px solid var(--primary-d);
    box-shadow: 2px 2px 0 var(--primary-d);
}
.ln-review-name { font-size: 13px; font-weight: 700; color: var(--fg); display: block; }
.ln-review-date { font-size: 11px; color: var(--fg3); }
@media (max-width: 800px) {
    .ln-reviews-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA Banner ---------- */
.ln-cta-banner {
    margin: 64px 0 0;
    padding: 56px 28px;
    border-radius: var(--r3);
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--grad1);
    border: var(--sketch-border);
    margin-left: var(--sidebar-w);
    box-shadow: var(--sh3);
}
@media (max-width: 900px) {
    .ln-cta-banner { margin-left: 0; }
}
.ln-cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 0h20v20H0V0zm20 20h20v20H20V20z'/%3E%3C/g%3E%3C/svg%3E");
}
.ln-cta-banner-inner { position: relative; z-index: 1; }
.ln-cta-banner h2 {
    font-size: clamp(24px, 3.8vw, 38px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    font-family: 'Fredoka', sans-serif;
}
.ln-cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    max-width: 420px;
    margin: 0 auto 24px;
}
.ln-cta-banner-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ln-cta-banner .ln-btn-white {
    background: #fff;
    color: var(--primary);
    font-weight: 800;
    padding: 13px 28px;
    border-radius: var(--r2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
    font-family: 'Fredoka', sans-serif;
    border: var(--sketch-border);
}
.ln-cta-banner .ln-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.ln-cta-banner .ln-btn-outline {
    background: transparent;
    color: #fff;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: var(--r2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s;
    font-family: 'Fredoka', sans-serif;
}
.ln-cta-banner .ln-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ---------- Mobile Responsive ---------- */
@media (max-width: 900px) {
    .ln-hero-inner { grid-template-columns: 1fr; gap: 24px; }
    .ln-hero { padding: 32px 0 24px; }
    .ln-hero-showcase { height: 220px; }
    .ln-hero-title { font-size: clamp(24px, 5.5vw, 36px); }
    .ln-hero-sub { font-size: 14px; }
    .ln-hero-inner { padding: 0 20px; }
    .ln-stats-inner { padding: 0 20px; gap: 24px; }
}
@media (max-width: 700px) {
    .ln-hero-showcase { height: 180px; }
    .ln-hero-showcase-card-lg { width: 180px; height: 128px; }
    .ln-hero-showcase-card-sm { width: 110px; height: 78px; }
}
@media (max-width: 600px) {
    .ln-hero { padding: 20px 0 14px; }
    .ln-hero-inner { padding: 0 14px; gap: 16px; }
    .ln-hero-showcase { height: 150px; }
    .ln-hero-showcase-card-lg { width: 150px; height: 106px; }
    .ln-hero-showcase-card-sm { width: 90px; height: 64px; }
    .ln-hero-badge { font-size: 11px; padding: 5px 12px; margin-bottom: 12px; }
    .ln-hero-search { padding: 3px 3px 3px 12px; border-radius: var(--r1); }
    .ln-hero-search input { font-size: 13px; padding: 9px 0; }
    .ln-hero-search-btn { padding: 8px 14px; font-size: 12px; }
    .ln-hero-tags { font-size: 11px; gap: 6px; }
    .ln-hero-tags a { padding: 4px 10px; font-size: 11px; }
    .ln-cta-banner { padding: 32px 14px; margin-top: 40px; border-radius: var(--r2); }
    .ln-cta-banner h2 { font-size: clamp(20px, 5vw, 28px); }
    .ln-cta-banner p { font-size: 13px; }
    .ln-cta-banner-btns { flex-direction: column; align-items: center; }
    .ln-cta-banner .ln-btn-white,
    .ln-cta-banner .ln-btn-outline {
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
    }
    .ln-spotlight-inner { padding: 20px 14px; }
    .ln-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .ln-section-more { align-self: flex-start; margin-top: -4px; }
    .ln-stats { padding: 16px 0; }
    .ln-stats-inner { padding: 0 14px; gap: 12px; }
    .ln-stat-icon { width: 38px; height: 38px; font-size: 17px; }
    .ln-stat-num { font-size: 22px; }
    .ln-stat-label { font-size: 10px; }
    .ln-features-grid { gap: 10px; }
    .ln-feature { padding: 18px 14px; }
    .ln-feature-icon { width: 44px; height: 44px; font-size: 20px; }
    .ln-feature h3 { font-size: 14px; }
    .ln-feature p { font-size: 12px; }
    .ln-reviews-grid { gap: 12px; }
    .ln-review { padding: 18px 16px; }
    .ln-how { margin-top: 40px; }
    .ln-categories { margin-top: 36px; }
    .ln-spotlight { margin-top: 36px; }
    .ln-features { margin-top: 36px; }
}

/* ---------- Empty state ---------- */
.ln-empty { text-align: center; padding: 56px 20px; color: var(--fg3); }
.ln-empty-icon { font-size: 44px; margin-bottom: 14px; opacity: 0.5; }
.ln-empty-text { font-size: 15px; }
