/* Gaming Mania Home v2 — samo na page-home-v2.php */

.page-template-page-home-v2 .entry-header,
.page-template-page-home-v2 .ast-archive-description,
.page-template-page-home-v2 .ast-article-single > .entry-header {
    display: none !important;
}

.page-template-page-home-v2,
.page-template-page-home-v2 #page {
    background: #070b18;
}

.page-template-page-home-v2 #content,
.page-template-page-home-v2 .site-content {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
    background: #070b18;
}

.page-template-page-home-v2 #content > .ast-container {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
    background: #070b18;
}

.page-template-page-home-v2 #masthead .ast-primary-header-bar,
.page-template-page-home-v2 #masthead .ast-above-header-bar,
.page-template-page-home-v2 #masthead .ast-below-header-bar {
    border-bottom: none !important;
}

.page-template-page-home-v2 #primary {
    margin: 0;
    width: 100%;
}

.hm-home {
    background: #070b18;
    color: #e8ecf5;
    font-family: inherit;
}

.hm-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hm-home h1,
.hm-home h2,
.hm-home h3 {
    color: #fff;
    margin: 0 0 0.4em;
    letter-spacing: -0.02em;
}

.hm-home p {
    margin: 0 0 1em;
    color: #c5cde0;
}

.hm-section-head {
    margin-bottom: 28px;
}

.hm-section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.hm-section-head p {
    margin: 0;
    max-width: 42rem;
}

.hm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.hm-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.hm-btn-primary {
    background: linear-gradient(135deg, #f5c442 0%, #ff8a2a 100%);
    color: #101426;
    box-shadow: 0 10px 28px rgba(245, 196, 66, 0.28);
}

.hm-btn-primary:hover {
    color: #101426;
}

.hm-btn-ghost {
    background: transparent;
    color: #f5c442;
    border-color: rgba(245, 196, 66, 0.45);
}

.hm-btn-ghost:hover {
    color: #ffe073;
    background: rgba(245, 196, 66, 0.08);
}

.hm-hero {
    padding: 72px 0 56px;
    background:
        radial-gradient(900px 420px at 80% -10%, rgba(245, 196, 66, 0.16), transparent 60%),
        radial-gradient(700px 360px at 0% 20%, rgba(88, 101, 242, 0.12), transparent 55%),
        #070b18;
}

.hm-eyebrow {
    color: #f5c442;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hm-hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    line-height: 1.12;
    max-width: 16ch;
}

.hm-hero h1 span {
    color: #f5c442;
}

.hm-lead {
    font-size: 1.15rem;
    max-width: 38rem;
    line-height: 1.55;
}

.hm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 22px;
}

.hm-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hm-pills li {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(245, 196, 66, 0.18);
    color: #d7deee;
    font-size: 0.88rem;
}

.hm-featured,
.hm-how,
.hm-best,
.hm-trust {
    padding: 56px 0;
}

.hm-featured {
    background: #0b1028;
}

.hm-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.hm-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #101936;
    border: 1px solid rgba(245, 196, 66, 0.16);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.hm-card--lead {
    grid-column: 1;
}

.hm-card-media {
    display: block;
    background: #070b18;
}

.hm-card-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

.hm-card--lead .hm-card-media img {
    aspect-ratio: 1 / 1.05;
}

.hm-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 16px 18px;
    flex: 1;
}

.hm-card-body h3 {
    font-size: 1.2rem;
    margin: 0;
}

.hm-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f5c442;
    color: #101426;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.hm-badge-sale {
    background: #ff7a1f;
    color: #fff;
}

.hm-platform {
    margin: 0;
    color: #9aa6c2;
    font-size: 0.85rem;
}

.hm-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.hm-price del {
    color: #8b95ab;
    font-weight: 600;
    margin-right: 6px;
}

.hm-price ins {
    text-decoration: none;
    color: #f5c442;
}

.hm-card-offer .hm-cart,
.hm-mini .hm-cart {
    margin-top: 4px;
}

.hm-card .hm-btn,
.hm-mini .hm-btn,
.hm-card .hm-cart .button,
.hm-mini .hm-cart .button,
.hm-card .hm-cart .add_to_cart_button,
.hm-mini .hm-cart .add_to_cart_button {
    width: 100%;
}

.hm-home .hm-cart .button,
.hm-home .hm-cart .add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f5c442 0%, #ff8a2a 100%);
    color: #101426 !important;
    font-weight: 800;
    border: 0;
    box-shadow: none;
}

.hm-home .hm-cart .button:hover,
.hm-home .hm-cart .add_to_cart_button:hover {
    color: #101426 !important;
}

.hm-switch {
    display: flex;
    gap: 8px;
    border: 0;
    margin: 0;
    padding: 0;
}

.hm-switch label {
    cursor: pointer;
}

.hm-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hm-switch span {
    display: inline-flex;
    min-width: 58px;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(245, 196, 66, 0.28);
    color: #d7deee;
    font-weight: 700;
    font-size: 0.86rem;
}

.hm-switch input:checked + span {
    background: #f5c442;
    color: #101426;
    border-color: #f5c442;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.hm-how {
    background: #070b18;
}

.hm-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    counter-reset: hmstep;
}

.hm-steps li {
    counter-increment: hmstep;
    background: #101936;
    border: 1px solid rgba(245, 196, 66, 0.12);
    border-radius: 20px;
    padding: 22px 20px 20px;
}

.hm-steps h3 {
    font-size: 1.05rem;
}

.hm-steps p {
    margin: 0;
    font-size: 0.95rem;
}

.hm-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: rgba(245, 196, 66, 0.12);
    color: #f5c442;
}

.hm-how-note {
    margin: 0;
    color: #9aa6c2;
}

.hm-how-note a {
    color: #f5c442;
}

.hm-cats {
    padding: 8px 0 40px;
}

.hm-cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hm-cat-list a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: #101936;
    border: 1px solid rgba(245, 196, 66, 0.2);
    color: #f3f6ff;
    font-weight: 700;
    text-decoration: none;
}

.hm-cat-list a:hover {
    border-color: #f5c442;
    color: #f5c442;
}

.hm-best {
    background: #0b1028;
}

.hm-best-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.hm-mini {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #101936;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    overflow: hidden;
}

.hm-mini-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

.hm-mini-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 12px 14px;
}

.hm-mini-title {
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.hm-mini-title:hover {
    color: #f5c442;
}

.hm-more {
    margin: 28px 0 0;
    text-align: center;
}

.hm-more .hm-btn {
    width: auto;
    min-width: 220px;
}

.hm-trust {
    background: #070b18;
}

.hm-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}

.hm-stat {
    font-size: 1.15rem;
}

.hm-stat strong {
    display: block;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: #f5c442;
    line-height: 1;
    margin-bottom: 6px;
}

.hm-faq details {
    background: #101936;
    border: 1px solid rgba(245, 196, 66, 0.12);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.hm-faq summary {
    cursor: pointer;
    font-weight: 700;
    color: #fff;
    list-style: none;
}

.hm-faq summary::-webkit-details-marker {
    display: none;
}

.hm-faq details p {
    margin: 10px 0 0;
}

@media (max-width: 1100px) {
    .hm-featured-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hm-card--lead {
        grid-column: 1 / -1;
    }

    .hm-best-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 921px) {
    .hm-hero {
        padding: 40px 0 36px;
    }

    .hm-hero h1 {
        max-width: none;
    }

    .hm-featured,
    .hm-how,
    .hm-best,
    .hm-trust {
        padding: 40px 0;
    }

    .hm-featured-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hm-card--lead {
        grid-column: 1 / -1;
    }

    .hm-steps,
    .hm-trust-grid,
    .hm-best-grid {
        grid-template-columns: 1fr;
    }

    .hm-best-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hm-btn,
    .hm-home .hm-cart .button {
        min-height: 44px;
    }
}

@media (max-width: 520px) {
    .hm-card-body h3 {
        font-size: 1rem;
    }

    .hm-price {
        font-size: 1.05rem;
    }
}
