/**
 * Walliux — Browse, taxonomy listing, and shared app styles
 */

/* Navbar inline search (browse pages) */
.walliux-header.is-scrolled {
    background: rgba(14, 18, 32, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--home-border);
}

.walliux-nav-search {
    align-items: center;
    gap: 10px;
    background: rgba(18, 24, 39, 0.9);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-pill);
    padding: 8px 16px;
    min-width: 220px;
    max-width: 280px;
}

.walliux-nav-search i {
    color: var(--home-text-secondary);
    font-size: 14px;
}

.walliux-nav-search input {
    background: transparent;
    border: none;
    color: var(--home-text);
    font-size: 13px;
    width: 100%;
    outline: none;
}

.walliux-nav-search input::placeholder {
    color: var(--home-text-secondary);
}

.walliux-main {
    padding-top: var(--home-navbar-height);
}

/* Page hero */
.walliux-page-hero {
    position: relative;
    padding: 32px 0 40px;
    overflow: hidden;
}

.walliux-page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.walliux-page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 11, 20, 0.55) 0%, rgba(9, 11, 20, 0.92) 100%);
}

.walliux-page-hero-inner {
    position: relative;
    z-index: 1;
}

.walliux-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--home-text-secondary);
    margin-bottom: 16px;
}

.walliux-breadcrumb a:hover {
    color: var(--home-primary);
}

.walliux-breadcrumb i {
    font-size: 10px;
    opacity: 0.5;
}

.walliux-page-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.walliux-count-badge {
    font-size: 13px;
    font-weight: 600;
    background: rgba(124, 77, 255, 0.2);
    color: var(--home-primary);
    padding: 6px 14px;
    border-radius: var(--home-radius-pill);
    border: 1px solid rgba(124, 77, 255, 0.35);
}

.walliux-badge-new {
    font-size: 11px;
    font-weight: 700;
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
    padding: 4px 10px;
    border-radius: 8px;
}

.walliux-page-desc {
    color: var(--home-text-secondary);
    font-size: 15px;
    max-width: 720px;
    margin: 0 0 20px;
    line-height: 1.7;
}

.walliux-page-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: var(--home-text-secondary);
}

.walliux-page-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.walliux-share-btn {
    background: transparent;
    border: 1px solid var(--home-border);
    color: var(--home-text);
    border-radius: var(--home-radius-pill);
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-color var(--home-transition), background var(--home-transition);
}

.walliux-share-btn:hover {
    border-color: var(--home-primary);
    background: rgba(124, 77, 255, 0.1);
}

/* Toolbar */
.walliux-toolbar-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--home-border);
    margin-bottom: 24px;
}

.walliux-res-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.walliux-res-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--home-radius-pill);
    border: 1px solid var(--home-border);
    background: var(--home-card);
    color: var(--home-text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--home-transition);
}

.walliux-res-tab:hover {
    border-color: rgba(124, 77, 255, 0.3);
    color: var(--home-text);
}

.walliux-res-tab.active {
    background: var(--home-primary);
    border-color: var(--home-primary);
    color: #fff;
}

.walliux-tab-count {
    font-size: 12px;
    opacity: 0.85;
}

.walliux-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.walliux-sort-select {
    background: var(--home-card);
    border: 1px solid var(--home-border);
    color: var(--home-text);
    border-radius: var(--home-radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    outline: none;
}

.walliux-view-toggle {
    display: flex;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-sm);
    overflow: hidden;
}

.walliux-view-btn {
    background: var(--home-card);
    border: none;
    color: var(--home-text-secondary);
    padding: 10px 14px;
    cursor: pointer;
    transition: background var(--home-transition), color var(--home-transition);
}

.walliux-view-btn.active,
.walliux-view-btn:hover {
    background: rgba(124, 77, 255, 0.15);
    color: var(--home-primary);
}

/* Browse layout */
.walliux-browse-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    padding-bottom: 48px;
}

.walliux-sidebar {
    position: sticky;
    top: calc(var(--home-navbar-height) + 16px);
    align-self: start;
}

.walliux-filter-block {
    margin-bottom: 24px;
}

.walliux-filter-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--home-text);
    margin-bottom: 12px;
}

.walliux-filter-input {
    width: 100%;
    background: var(--home-card);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-sm);
    padding: 12px 14px;
    color: var(--home-text);
    font-size: 14px;
    outline: none;
}

.walliux-filter-input:focus {
    border-color: rgba(124, 77, 255, 0.4);
}

.walliux-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--home-text-secondary);
    margin-bottom: 8px;
    cursor: pointer;
}

.walliux-check input {
    accent-color: var(--home-primary);
}

.walliux-color-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.walliux-color-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: transform var(--home-transition), border-color var(--home-transition);
}

.walliux-color-dot:hover,
.walliux-color-dot.active {
    transform: scale(1.1);
    border-color: #fff;
    box-shadow: 0 0 0 2px var(--home-primary);
}

.walliux-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.walliux-tag-pill {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: var(--home-radius-pill);
    background: var(--home-card);
    border: 1px solid var(--home-border);
    color: var(--home-text-secondary);
    transition: all var(--home-transition);
}

.walliux-tag-pill:hover {
    border-color: var(--home-primary);
    color: var(--home-text);
}

/* Wallpaper card grid */
.walliux-card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.walliux-card-grid.list-view {
    grid-template-columns: 1fr;
}

.walliux-wall-card {
    position: relative;
    background: var(--home-card);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    overflow: hidden;
    transition: transform var(--home-transition), box-shadow var(--home-transition);
}

.walliux-wall-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--home-shadow-hover);
}

.walliux-wall-card-link {
    display: block;
}

.walliux-wall-card-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.walliux-wall-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.walliux-wall-card:hover img {
    transform: scale(1.06);
}

.walliux-wall-res-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(9, 11, 20, 0.8);
    border: 1px solid var(--home-border);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.walliux-wall-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(9, 11, 20, 0.75);
    color: var(--home-text);
    z-index: 2;
    cursor: pointer;
    transition: background var(--home-transition);
}

.walliux-wall-fav-btn:hover {
    background: var(--home-primary);
}

.walliux-wall-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(9, 11, 20, 0.5) 100%);
    pointer-events: none;
}

.walliux-wall-card-meta {
    padding: 12px 14px;
}

.walliux-wall-card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.walliux-wall-card-stats {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--home-text-secondary);
}

.walliux-wall-card-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.walliux-wall-menu-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--home-text-secondary);
    cursor: pointer;
    padding: 4px;
}

.list-view .walliux-wall-card {
    display: grid;
    grid-template-columns: 200px 1fr;
}

.list-view .walliux-wall-card-img {
    aspect-ratio: auto;
    min-height: 120px;
}

/* Pagination */
.walliux-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--home-border);
}

.walliux-pagination-info {
    font-size: 13px;
    color: var(--home-text-secondary);
}

.walliux-pager-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.walliux-pager-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--home-radius-sm);
    border: 1px solid var(--home-border);
    background: var(--home-card);
    color: var(--home-text-secondary);
    font-size: 14px;
    transition: all var(--home-transition);
}

.walliux-pager-list a.active,
.walliux-pager-list a:hover {
    background: var(--home-primary);
    border-color: var(--home-primary);
    color: #fff;
}

/* Features row */
.walliux-features {
    background: var(--home-card);
    border-top: 1px solid var(--home-border);
    border-bottom: 1px solid var(--home-border);
    padding: 32px 0;
}

.walliux-features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.walliux-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.walliux-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(124, 77, 255, 0.12);
    color: var(--home-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.walliux-feature-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.walliux-feature-item span {
    font-size: 12px;
    color: var(--home-text-secondary);
    line-height: 1.4;
}

/* Newsletter bar */
.walliux-newsletter-bar {
    padding: 40px 0;
}

.walliux-newsletter-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.12) 0%, rgba(18, 24, 39, 0.9) 100%);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    padding: 28px 32px;
}

.walliux-newsletter-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(124, 77, 255, 0.2);
    color: var(--home-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.walliux-newsletter-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
}

.walliux-newsletter-inner p {
    font-size: 13px;
    color: var(--home-text-secondary);
    margin: 0;
}

.walliux-newsletter-form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: auto;
    flex: 1;
    min-width: 280px;
    max-width: 420px;
}

.walliux-newsletter-form-inline input {
    flex: 1;
    min-width: 180px;
    background: rgba(9, 11, 20, 0.6);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-sm);
    padding: 12px 16px;
    color: var(--home-text);
    outline: none;
}

/* Taxonomy listing */
.walliux-taxonomy-hero {
    padding: 32px 0 24px;
}

.walliux-taxonomy-grid-section {
    padding-bottom: 48px;
}

.walliux-taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.walliux-taxonomy-card {
    display: block;
    background: var(--home-card);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    overflow: hidden;
    transition: transform var(--home-transition), box-shadow var(--home-transition);
}

.walliux-taxonomy-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--home-shadow-hover);
}

.walliux-taxonomy-card-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.walliux-taxonomy-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.walliux-taxonomy-card:hover img {
    transform: scale(1.06);
}

.walliux-taxonomy-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(9, 11, 20, 0.85) 100%);
}

.walliux-taxonomy-card-body {
    padding: 16px;
}

.walliux-taxonomy-card-body h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
}

.walliux-taxonomy-card-body span {
    font-size: 13px;
    color: var(--home-text-secondary);
}

.walliux-taxonomy-color {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.walliux-taxonomy-color-swatch {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    flex-shrink: 0;
    border: 1px solid var(--home-border);
}

.walliux-taxonomy-resolution {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.walliux-taxonomy-res-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(124, 77, 255, 0.12);
    color: var(--home-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.walliux-empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--home-text-secondary);
}

.walliux-empty-state i {
    font-size: 48px;
    color: var(--home-primary);
    margin-bottom: 16px;
    display: block;
}

.walliux-empty-state h2 {
    color: var(--home-text);
    font-size: 20px;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 1280px) {
    .walliux-card-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .walliux-browse-layout {
        grid-template-columns: 1fr;
    }

    .walliux-sidebar {
        position: static;
        order: 2;
    }

    .walliux-browse-content {
        order: 1;
    }

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

    .walliux-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .walliux-taxonomy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .walliux-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .walliux-toolbar-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .walliux-res-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .walliux-newsletter-inner {
        flex-direction: column;
        text-align: center;
    }

    .walliux-newsletter-form-inline {
        margin-left: 0;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .walliux-card-grid {
        grid-template-columns: 1fr;
    }

    .walliux-taxonomy-grid {
        grid-template-columns: 1fr;
    }

    .walliux-features-grid {
        grid-template-columns: 1fr;
    }
}
