/* =========================================
   WALLPAPER WAVES 2.0 - PREMIUM HOMEPAGE
========================================= */

.ww2-home-layout {
    --ww2-blue: #159dff;
    --ww2-line: rgba(62, 151, 255, .28);
    position: relative;
    width: min(1400px, calc(100% - 40px));
    margin: 12px auto 20px;
}

.ww2-main-content {
    width: 100%;
    min-width: 0;
}

/* SIDEBAR - OUTSIDE MAIN CONTAINER */

.ww2-sidebar {
    position: absolute;
    top: 0;
    right: calc(100% + 16px);
    width: 234px;
    z-index: 5;
}

.ww2-side-panel {
    padding: 14px 10px;
    background: #06111d;
    border: 1px solid rgba(50, 127, 220, .18);
    border-radius: 15px;
}

.ww2-side-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px 12px;
    font-size: 14px;
    font-weight: 750;
    color: #fff;
}

.ww2-side-heading > .ww2-side-heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    color: #2dbbff;
    line-height: 0;
}

.ww2-side-heading-icon svg {
    display: block;
    width: 17px;
    height: 17px;
}

.ww2-side-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-height: 35px;
    padding: 8px 11px;
    border-radius: 8px;
    color: #d6e2f3;
    font-size: 14px;
font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.ww2-side-link:hover {
    background: rgba(24, 132, 255, .1);
    color: #fff;
}

.ww2-side-link.is-current {
    background: linear-gradient(110deg, #087eff, #0643a4);
    color: #fff;
    box-shadow: 0 0 12px rgba(0, 130, 255, .28);
}
.ww2-side-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 17px;
    line-height: 0;
}

.ww2-side-category-icon svg {
    display: block;
    width: 17px;
    height: 17px;
}
.ww2-side-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
    color: #8baacb;
    line-height: 0;
}

.ww2-side-arrow svg {
    display: block;
    width: 14px;
    height: 14px;
    transition: transform .2s ease;
}

.ww2-side-link:hover .ww2-side-arrow svg {
    transform: translateX(2px);
}

.ww2-side-divider {
    height: 1px;
    margin: 14px 5px;
    background: rgba(99, 151, 215, .19);
}

.ww2-resolution-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
    padding: 7px 9px;
    border-radius: 8px;
    background: rgba(255,255,255,.035);
    color: #dce7f5;
    font-size: 12px;
    text-decoration: none;
}

.ww2-resolution-link:hover {
    background: rgba(23, 134, 255, .13);
}

.ww2-count {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(115, 160, 215, .13);
    color: #a9bfd9;
    font-size: 11px;
}

.ww2-trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.ww2-trending-tags a {
    padding: 7px 10px;
    border-radius: 20px;
    background: #102032;
    border: 1px solid rgba(83, 148, 225, .12);
    color: #e2ebf8;
    font-size: 11px;
    text-decoration: none;
	line-height: 1.2;
}

.ww2-trending-tags a:hover {
    color: #fff;
    border-color: var(--ww2-blue);
}

/* HERO */

.ww2-home-layout .ww2-hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 280px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid rgba(7, 139, 250, .32);
   
background: #06111e url("https://ww2staging.wallpaperwaves.com/wp-content/uploads/2026/11/Astronaut-Over-Blue-Nebula-Mountains.webp") center center / cover no-repeat;

}

.ww2-home-layout .ww2-hero-art {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse at 5% 45%, rgba(0,128,255,.32), transparent 34%),
        radial-gradient(ellipse at 95% 50%, rgba(35,72,255,.38), transparent 35%),
        #06111e;
    background-size: cover;
    background-position: center;
}


.ww2-home-layout .ww2-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(2, 9, 19, 0.04) 0%,
        rgba(2, 9, 19, 0.42) 35%,
        rgba(2, 9, 19, 0.42) 65%,
        rgba(2, 9, 19, 0.04) 100%
    );
    pointer-events: none;
}


.ww2-home-layout .ww2-hero-content {
    width: min(100%, 820px);
    padding: 34px 22px;
    text-align: center;
}

.ww2-home-layout .ww2-hero-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #c3d7f0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
}

.ww2-home-layout .ww2-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 3.5vw, 52px);
    font-weight: 850;
    font-style: italic;
    letter-spacing: -1.6px;
    line-height: 1.15;
	text-shadow: 0 3px 14px rgba(0, 0, 0, .48);
}

.ww2-home-layout .ww2-hero h1 span {
    color: #08b8ff;
}

.ww2-home-layout .ww2-hero p {
    max-width: 560px;
    margin: 13px auto 19px;
    color: #E0E8F2;
    font-size: 16px;
    line-height: 1.55;
	text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}


/* HERO SEARCH — BALANCED PREMIUM */

.ww2-home-layout .ww2-hero-search {
    display: flex;
    align-items: center;
    gap: 12px;

    width: min(100%, 620px);
    margin: 0 auto;
    padding: 5px 5px 5px 15px;

    border: 1px solid rgba(7, 139, 250, .75);
    border-radius: 30px;

    background: rgba(11, 15, 23, .88);

    box-shadow:
        0 0 0 3px rgba(7, 139, 250, .07),
        0 0 14px rgba(7, 139, 250, .20);

    color: #E5F4FF;

    transition:
        border-color .3s ease,
        box-shadow .3s ease,
        background .3s ease;
}

/* FOCUSED SEARCH */

.ww2-home-layout .ww2-hero-search:focus-within {
    border-color: #078BFA;

    background: rgba(11, 15, 23, .96);

    box-shadow:
        0 0 0 3px rgba(7, 139, 250, .11),
        0 0 20px rgba(7, 139, 250, .26);
}


.ww2-home-layout .ww2-hero-search svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.ww2-home-layout .ww2-hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 14px;
}


/* HERO SEARCH BUTTON */

.ww2-home-layout .ww2-hero-search button {
    display: grid;
    place-items: center;

    width: 50px;
    height: 37px;
    padding: 0;

    border: 0;
    border-radius: 25px;

    background: linear-gradient(
        135deg,
        #06BAFF,
        #0861F4
    );

    color: #FFFFFF;
    cursor: pointer;

    transition:
        filter .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.ww2-home-layout .ww2-hero-search button:hover {
    filter: brightness(1.12);

    box-shadow:
        0 0 14px rgba(7, 139, 250, .30);

    transform: translateX(2px);
}

.ww2-home-layout .ww2-hero-search button:active {
    transform: translateX(0);
}


/* ==========================================
   FLOATING BROWSING TABS — CINEMATIC HYBRID
   ========================================== */

.ww2-browse-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: max-content;
    max-width: 100%;
    margin: 16px auto 18px;
    padding: 5px;

    border: 1px solid var(--ww2-border-default, #34404E);
    border-radius: 30px;
    background: var(--ww2-bg-surface, #141820);

    box-shadow: 0 5px 20px rgba(0, 0, 0, .16);
}

.ww2-browse-tabs a,
.ww2-tab-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 8px 22px;

    border-radius: 24px;
    color: #C3CFDD;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;

    transition:
        background .25s ease,
        color .25s ease,
        box-shadow .25s ease;
}

/* Premium browsing tab icons */

.ww2-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    line-height: 0;
}

.ww2-tab-icon svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Inactive tab hover */

.ww2-browse-tabs a:hover {
    color: #FFFFFF;
    background: rgba(7, 139, 250, .11);
}

/* Active tab */

.ww2-browse-tabs a.is-selected {
    background: linear-gradient(135deg, #06BAFF, #0861F4);
    color: #FFFFFF;

    box-shadow:
        0 0 0 1px rgba(7, 139, 250, .25),
        0 0 12px rgba(7, 139, 250, .30);
}

/* Disabled tab */

.ww2-tab-disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* SECTION HEADING */

.ww2-home-layout .ww2-wallpapers {
    padding: 0 0 0px;
}

.ww2-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    min-height: 65px;
    margin-bottom: 14px;
    padding: 0 8px 12px;

    border-bottom: 1px solid rgba(7, 139, 250, .45);
    box-shadow: 0 7px 12px -13px rgba(7, 139, 250, .45);
    box-sizing: border-box;
}

/* Premium wallpaper section icons */

.ww2-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ww2-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 25px;
    color: #159dff;
    line-height: 0;
}

.ww2-section-icon svg {
    display: block;
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ww2-section-heading h2 {
    line-height: 32px;
}

.ww2-section-heading p {
    line-height: 18px;
}

.ww2-section-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 25px;
    font-weight: 750;
}

.ww2-section-heading p {
    margin: 5px 0 0;
    color: #aabdd2;
    font-size: 12px;
}

.ww2-section-label {
    padding: 7px 15px;

    border: 1px solid var(--ww2-border-default, #34404E);
    border-radius: 20px;
    background: var(--ww2-bg-surface, #141820);

    color: #B8C9DC;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

/* RESPONSIVE LAYOUT */

/* Homepage — match working Single Page alignment */
@media (min-width: 1151px) and (max-width: 1940px) {
    .ww2-home-layout {
        width: min(1400px, calc(100% - 300px));
        max-width: 1400px;

        margin-left: auto;
        margin-right: auto;

        transform: translateX(125px);
    }
}

@media (min-width: 1151px) and (max-width: 1450px) {
    .ww2-home-layout {
        transform: none;
        margin-right: 24px;
    }
}

@media (max-width: 1150px) {
    .ww2-home-layout {
        width: calc(100% - 32px);
        margin: 16px auto 60px;
    }

    .ww2-sidebar {
        position: static;
        width: 100%;
        margin-bottom: 18px;
    }

    .ww2-side-panel {
        max-height: 300px;
        overflow-y: auto;
    }
}


/* WW2 - Mobile layout adjustments */

@media (max-width: 700px) {

    .ww2-home-layout .ww2-hero {

        min-height: 300px;
    }

    .ww2-home-layout .ww2-hero-content {
        padding: 30px 16px;
    }

    .ww2-home-layout .ww2-hero h1 {
        font-size: 34px;
    }

    .ww2-browse-tabs {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .ww2-browse-tabs a,
    .ww2-tab-disabled {
        padding: 8px 14px;
        font-size: 12px;
    }

    .ww2-section-heading h2 {
        font-size: 20px;
    }

}


@media (prefers-reduced-motion: reduce) {
    .ww2-home-layout .ww2-wallpaper-card {
        transition: none;
    }
}

/* WW2 — Fit entire sidebar on shorter desktop screens */

@media (min-width: 1101px) and (max-height: 950px) {

    .ww2-sidebar {
        max-height: none;
        overflow: visible;
    }

    .ww2-sidebar .ww2-side-panel {
        padding: clamp(6px, 1vh, 12px) 10px;
    }

    .ww2-sidebar .ww2-side-heading {
        padding: clamp(3px, .6vh, 7px) 10px;
        font-size: 12px;
        gap: 7px;
    }

.ww2-sidebar .ww2-side-link {
    min-height: 0;
    padding: clamp(3px, .55vh, 7px) 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

    .ww2-sidebar .ww2-side-category-icon svg {
        width: 17px;
        height: 17px;
    }

    .ww2-sidebar .ww2-side-divider {
        margin: clamp(5px, .8vh, 10px) 5px;
    }

.ww2-sidebar .ww2-resolution-link {
    margin: 2px 0;
    padding: clamp(3px, .45vh, 6px) 8px;
    font-size: 13px;
    line-height: 1.2;
}

    .ww2-sidebar .ww2-trending-tags {
        gap: 5px;
    }

    .ww2-sidebar .ww2-trending-tags a {
        padding: 5px 8px;
        font-size: 10px;
    }
}


/* WW2 — Compact Mobile Homepage Hero */
@media (max-width: 700px) {

.ww2-home-layout .ww2-hero {
    min-height: 220px;
    height: auto;
    padding: 28px 18px;
    background-position: center center;
}

    .ww2-home-layout .ww2-hero-content {
        padding: 0;
    }

    .ww2-home-layout .ww2-hero-eyebrow {
        margin-bottom: 8px;
    }

    .ww2-home-layout .ww2-hero h1 {
        font-size: 27px;
        line-height: 1.15;
        letter-spacing: -0.7px;
    }

.ww2-home-layout .ww2-hero p {
    max-width: 360px;
    margin: 18px auto 0;
    font-size: 14px;
    line-height: 1.55;
}

    .ww2-home-layout .ww2-hero-search {
        min-height: 44px;
    }
}

/* WW2 — Mobile Hero Heading */
@media (max-width: 700px) {
    .ww2-home-layout .ww2-hero h1 {
        font-size: clamp(22px, 5.2vw, 28px);
        letter-spacing: -0.8px;
        line-height: 1.2;
        white-space: normal;
        text-wrap: balance;
    }
}

/* WW2 — Mobile Hero Eyebrow Single Line */
@media (max-width: 700px) {
.ww2-home-layout .ww2-hero-eyebrow {
    font-size: 10px;
    letter-spacing: 1.2px;
    white-space: normal;
    margin-bottom: 14px;
}
}

/* WW2 — Mobile Hero Search Input Fix */
@media (max-width: 700px) {

    .ww2-home-layout .ww2-hero-search {
        gap: 7px;
        padding: 4px 5px 4px 12px;
    }

    .ww2-home-layout .ww2-hero-search svg {
        width: 16px;
        height: 16px;
    }

    .ww2-home-layout .ww2-hero-search input {
        min-width: 0;
        font-size: 12px;
        text-overflow: ellipsis;
    }

    .ww2-home-layout .ww2-hero-search button {
        flex: 0 0 38px;
        width: 38px;
        height: 36px;
    }
}

/* WW2 — Hide Hero Search on Phones Only */
@media (max-width: 700px) {
    .ww2-home-layout .ww2-hero-search {
        display: none;
    }

    .ww2-home-layout .ww2-hero p {
        margin-bottom: 0;
    }
}

/* WW2 — Mobile Section Heading */
@media (max-width: 700px) {

    /* Hide wallpaper result counter */
    .ww2-home-layout .ww2-section-label {
        display: none;
    }

    /* Give heading the full available width */
    .ww2-home-layout .ww2-section-heading {
        display: block;
    }

    /* Keep title on one line */
    .ww2-home-layout .ww2-section-heading h2 {
        font-size: clamp(17px, 4.8vw, 20px);
        line-height: 1.4;
        letter-spacing: -0.4px;
        white-space: nowrap;
    }
}


