/* ============================================================
   Povli Homepage Styles — Doodle Sketch Style
   Full-width layout with 8-column game grid
   ============================================================ */

/* ---------- Hero Banner ---------- */
.pv-hero{
    background:linear-gradient(160deg,#0b0b1a 0%,#14142b 40%,#111128 100%);
    border-bottom:3px double var(--pv-border-sketch);
    padding:48px 0 0;
    position:relative;
    overflow:hidden;
}
.pv-hero::before{
    content:'';position:absolute;top:-120px;right:-80px;
    width:400px;height:400px;
    background:radial-gradient(circle,rgba(127,90,240,.1) 0%,transparent 70%);
    border-radius:50%;pointer-events:none;
    animation:pv-float 8s ease-in-out infinite;
}
.pv-hero::after{
    content:'';position:absolute;bottom:-60px;left:10%;
    width:300px;height:300px;
    background:radial-gradient(circle,rgba(255,217,61,.05) 0%,transparent 70%);
    border-radius:50%;pointer-events:none;
    animation:pv-float 6s ease-in-out infinite reverse;
}
/* Floating doodle shapes */
.pv-hero-doodles{
    position:absolute;inset:0;pointer-events:none;overflow:hidden;
}
.pv-doodle-shape{
    position:absolute;opacity:.08;font-size:40px;
    animation:pv-doodle-float 10s ease-in-out infinite;
}
.pv-doodle-shape:nth-child(1){top:15%;left:5%;animation-delay:0s;font-size:36px}
.pv-doodle-shape:nth-child(2){top:60%;left:8%;animation-delay:2s;font-size:28px}
.pv-doodle-shape:nth-child(3){top:20%;right:12%;animation-delay:4s;font-size:44px}
.pv-doodle-shape:nth-child(4){top:70%;right:6%;animation-delay:1s;font-size:32px}
.pv-doodle-shape:nth-child(5){top:40%;left:50%;animation-delay:3s;font-size:24px}
.pv-doodle-shape:nth-child(6){top:10%;left:40%;animation-delay:5s;font-size:30px}
.pv-hero-inner{
    display:flex;align-items:center;gap:48px;
}
.pv-hero-text{flex:1;min-width:0}
.pv-hero-badge{
    display:inline-flex;align-items:center;gap:6px;
    padding:7px 18px;margin-bottom:18px;
    background:rgba(255,217,61,.1);
    border:1.5px dashed rgba(255,217,61,.4);
    border-radius:20px 24px 18px 22px;
    font-family:var(--pv-doodle-font);
    font-size:14px;color:var(--pv-yellow);
    animation:pv-badge-pulse 3s ease-in-out infinite;
}
.pv-hero-text h1{
    font-family:var(--pv-doodle-font);
    font-size:38px;font-weight:400;color:var(--pv-text);
    line-height:1.3;margin-bottom:16px;
}
.pv-hero-text h1 span{
    background:linear-gradient(135deg,var(--pv-yellow),var(--pv-accent));
    -webkit-background-clip:text;-webkit-text-fill-color:transparent;
    background-clip:text;
}
.pv-hero-text p{
    font-size:16px;color:var(--pv-text-sec);
    margin-bottom:24px;max-width:520px;line-height:1.7;
}
.pv-hero-search{
    display:flex;max-width:460px;gap:0;
    background:var(--pv-bg-card);
    border:2px solid var(--pv-border);
    border-radius:20px 24px 18px 22px;
    overflow:hidden;
}
.pv-hero-search input{
    flex:1;height:48px;border:none;background:transparent;
    padding:0 20px;font-size:15px;color:var(--pv-text);outline:none;
}
.pv-hero-search input::placeholder{color:var(--pv-text-ter)}
.pv-hero-search button{
    height:48px;padding:0 24px;
    background:var(--pv-primary);color:#fff;
    font-family:var(--pv-doodle-font);
    font-size:16px;font-weight:400;
    transition:background var(--pv-transition);
    border-left:2px dashed var(--pv-border);
}
.pv-hero-search button:hover{background:var(--pv-primary-dark)}
.pv-hero-featured{
    display:flex;gap:14px;flex-shrink:0;
}
.pv-hero-featured .pv-card{
    width:190px;flex-shrink:0;
}
@media(max-width:900px){
    .pv-hero-featured{display:none}
    .pv-hero-text h1{font-size:28px}
}
@media(max-width:600px){
    .pv-hero{padding:32px 0 0}
    .pv-hero-text h1{font-size:24px}
    .pv-hero-text p{font-size:14px}
    .pv-hero-search{max-width:100%}
}

/* ---------- Category Strip ---------- */
.pv-cat-strip{
    background:var(--pv-bg-card);
    border-bottom:2px dashed var(--pv-border);
    padding:14px 0;
}

/* ---------- Featured Games Grid (4 large cards) ---------- */
.pv-featured{padding:36px 0}
.pv-featured-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
}
.pv-featured-card{
    display:flex;
    background:var(--pv-bg-card);
    border-radius:18px 22px 16px 20px;
    overflow:hidden;
    border:2px solid var(--pv-border);
    box-shadow:var(--pv-sketch);
    transition:border-color var(--pv-transition),transform var(--pv-transition),box-shadow var(--pv-transition);
    position:relative;
}
.pv-featured-card::after{
    content:'\2728';position:absolute;top:8px;right:10px;
    font-size:16px;opacity:0;transition:opacity .3s;z-index:3;
    animation:pv-sparkle 2s ease-in-out infinite;
}
.pv-featured-card:hover::after{opacity:1}
.pv-featured-card:hover{
    border-color:var(--pv-yellow);
    box-shadow:var(--pv-shadow-hover);transform:translateY(-3px) rotate(-0.3deg);
}
.pv-featured-card .pv-card-thumb{
    width:140px;flex-shrink:0;aspect-ratio:auto;
}
.pv-featured-card .pv-card-body{
    display:flex;flex-direction:column;justify-content:center;
    padding:18px;
}
.pv-featured-card .pv-card-title{
    font-size:15px;-webkit-line-clamp:3;
}
.pv-featured-card .pv-card-desc{
    font-size:13px;color:var(--pv-text-ter);
    margin-top:8px;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
@media(max-width:1024px){
    .pv-featured-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
    .pv-featured-grid{grid-template-columns:1fr}
    .pv-featured-card .pv-card-thumb{width:110px}
}

/* ---------- 8-Column Game Grid ---------- */
.pv-grid-8{
    grid-template-columns:repeat(8,1fr);
}
@media(max-width:1400px){
    .pv-grid-8{grid-template-columns:repeat(6,1fr)}
}
@media(max-width:1024px){
    .pv-grid-8{grid-template-columns:repeat(5,1fr)}
}
@media(max-width:768px){
    .pv-grid-8{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:480px){
    .pv-grid-8{grid-template-columns:repeat(2,1fr)}
}

/* ---------- Games Grid Section ---------- */
.pv-games-section{padding:10px 0 36px}
.pv-games-header{
    display:flex;align-items:center;justify-content:space-between;
    margin-bottom:22px;
}
.pv-games-header h2{
    font-family:var(--pv-doodle-font);
    font-size:26px;font-weight:400;color:var(--pv-text);
    display:inline-flex;align-items:center;gap:8px;
}
.pv-games-header h2::after{
    content:'';display:inline-block;
    width:40px;height:3px;margin-left:4px;
    background:repeating-linear-gradient(90deg,var(--pv-primary) 0,var(--pv-primary) 6px,transparent 6px,transparent 12px);
    border-radius:2px;
    vertical-align:middle;
    animation:pv-dash-move 1.5s linear infinite;
}

/* ---------- Section "View all" link ---------- */
.pv-section-more{
    font-size:14px;font-weight:500;
    color:var(--pv-yellow);text-decoration:none;
    white-space:nowrap;
}
.pv-section-more:hover{
    text-decoration:underline;
}

/* ---------- Category Block ---------- */
.pv-cat-block{padding:28px 0}
.pv-cat-block-head{
    display:flex;align-items:center;justify-content:space-between;
    margin-bottom:18px;
}
.pv-cat-block-head h2{
    font-family:var(--pv-doodle-font);
    font-size:26px;font-weight:400;color:var(--pv-text);
    position:relative;
}
.pv-cat-block-head h2::after{
    content:'';display:block;
    width:50px;height:3px;margin-top:4px;
    background:repeating-linear-gradient(90deg,var(--pv-accent) 0,var(--pv-accent) 6px,transparent 6px,transparent 12px);
    border-radius:2px;
    animation:pv-dash-move 1.5s linear infinite;
}
.pv-cat-block-grid{
    display:grid;
    grid-template-columns:repeat(8,1fr);
    gap:16px;
}
@media(max-width:1400px){
    .pv-cat-block-grid{grid-template-columns:repeat(6,1fr)}
}
@media(max-width:1024px){
    .pv-cat-block-grid{grid-template-columns:repeat(5,1fr)}
}
@media(max-width:768px){
    .pv-cat-block-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:480px){
    .pv-cat-block-grid{grid-template-columns:repeat(2,1fr)}
}

/* ---------- Editor's Picks ---------- */
.pv-editors{
    background:var(--pv-bg-surface);
    border-top:3px double var(--pv-border-sketch);
    border-bottom:3px double var(--pv-border-sketch);
    padding-top:36px !important;
}

/* ---------- Stats Banner ---------- */
.pv-stats{
    background:var(--pv-bg-card);
    border:2px dashed var(--pv-border);
    border-radius:18px 22px 16px 20px;
    padding:28px 36px;
    display:flex;justify-content:space-around;
    margin:36px 0;
    box-shadow:var(--pv-sketch);
    position:relative;
    overflow:hidden;
}
.pv-stats::before{
    content:'';position:absolute;top:0;left:0;right:0;height:3px;
    background:linear-gradient(90deg,var(--pv-primary),var(--pv-yellow),var(--pv-accent),var(--pv-warm),var(--pv-primary));
    background-size:200% 100%;
    animation:pv-rainbow 4s linear infinite;
}
.pv-stat-num{
    font-family:var(--pv-doodle-font);
    font-size:34px;font-weight:400;
    background:linear-gradient(135deg,var(--pv-yellow),var(--pv-accent));
    -webkit-background-clip:text;-webkit-text-fill-color:transparent;
    background-clip:text;
}
.pv-stat-bounce{
    display:inline-block;
    animation:pv-stat-bounce 2s ease-in-out infinite;
}
@keyframes pv-stat-bounce{
    0%,100%{transform:translateY(0)}
    50%{transform:translateY(-6px)}
}
@keyframes pv-float{
    0%,100%{transform:translate(0,0)}
    50%{transform:translate(20px,-15px)}
}
@keyframes pv-doodle-float{
    0%,100%{transform:translateY(0) rotate(0deg)}
    25%{transform:translateY(-12px) rotate(5deg)}
    75%{transform:translateY(8px) rotate(-3deg)}
}
@keyframes pv-badge-pulse{
    0%,100%{box-shadow:0 0 0 0 rgba(255,217,61,.15)}
    50%{box-shadow:0 0 0 8px rgba(255,217,61,0)}
}
@keyframes pv-sparkle{
    0%,100%{opacity:.6;transform:scale(1) rotate(0deg)}
    50%{opacity:1;transform:scale(1.2) rotate(180deg)}
}
@keyframes pv-wiggle{
    0%,100%{transform:rotate(-1deg)}
    50%{transform:rotate(1deg)}
}
.pv-stat-label{
    font-size:13px;color:var(--pv-text-ter);margin-top:4px;
}
@media(max-width:600px){
    .pv-stats{padding:18px;gap:14px}
    .pv-stat-num{font-size:26px}
}
