﻿
/* ─── HERO ─── */
.hero {
    position: relative;
    padding: 30px 32px 30px;
    text-align: center;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 70% 60% at 50% -10%, #7c6aff1a 0%, transparent 70%), radial-gradient(ellipse 40% 40% at 20% 80%, #a855f712 0%, transparent 60%), radial-gradient(ellipse 40% 40% at 80% 80%, #f9731612 0%, transparent 60%);
        pointer-events: none;
    }

    .hero::after {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
        pointer-events: none;
        opacity: 0.5;
    }

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
}

@keyframes pulse {
    0%,100% {
        opacity: 1
    }

    50% {
        opacity: 0.4
    }
}

.hero h1 {
    font-family: 'Funnel Sans', sans-serif;
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 20px;
    animation: fadeUp 0.6s 0.1s ease both;
}

    .hero h1 .grad {
        background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, var(--orange) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.hero-sub {
    font-size: 17px;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 520px;
    margin: 0 auto 40px;
    animation: fadeUp 0.6s 0.2s ease both;
}

    .hero-sub strong {
        color: var(--text);
        font-weight: 500;
    }

.search-wrap {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    animation: fadeUp 0.6s 0.3s ease both;
}

    .search-wrap input {
        width: 100%;
        background: var(--surface);
        border: 1px solid var(--border2);
        border-radius: var(--radius-lg);
        padding: 16px 56px 16px 22px;
        color: var(--text);
        font-size: 15px;
        font-family: 'DM Sans', sans-serif;
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

        .search-wrap input::placeholder {
            color: var(--text-dim);
        }

        .search-wrap input:focus {
            border-color: #7c6aff66;
            box-shadow: 0 0 0 3px var(--accent-glow);
        }

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none;
    border-radius: 10px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: opacity 0.2s;
}

    .search-btn:hover {
        opacity: 0.85;
    }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    animation: fadeUp 0.6s 0.4s ease both;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

    .hero-stat .num {
        font-family: 'Funnel Sans', sans-serif;
        font-size: 26px;
        font-weight: 800;
        background: linear-gradient(135deg, var(--text), var(--accent));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .hero-stat .lbl {
        font-size: 11px;
        color: var(--text-dim);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

/* ─── TABS / FILTERS ─── */
.filters-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 32px 0;
}

.tab-row {
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

    .tab-row::-webkit-scrollbar {
        display: none;
    }

.tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 18px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    margin-bottom: -1px;
}

    .tab-btn:hover {
        color: var(--text);
    }

    .tab-btn.active {
        color: var(--accent);
        border-bottom-color: var(--accent);
    }

    .tab-btn .tab-icon {
        margin-right: 6px;
    }

.filters-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 20px;
}

.filter-label {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pill-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 7px 16px;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

    .pill-btn:hover, .pill-btn.active {
        background: var(--accent-glow);
        border-color: #7c6aff44;
        color: var(--accent);
    }

.cat-select {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 100px;
    padding: 7px 36px 7px 16px;
    color: var(--text-muted);
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666688' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.2s;
}

    .cat-select:hover {
        color: var(--text);
    }

/* ─── MAIN GRID ─── */
.main-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 32px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}

/* ─── SIDEBAR ─── */
.sidebar {
    position: sticky;
    top: 82px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    animation: fadeLeft 0.5s ease both;
}

/* Mobile sidebar toggle */
.sidebar-toggle {
    display: none;
    width: 100%;
    background: var(--surface);
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 14px 18px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Funnel Sans', sans-serif;
    cursor: pointer;
    text-align: left;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 0.5px;
}

.sidebar-toggle-arrow {
    transition: transform 0.3s;
    font-size: 12px;
    color: var(--text-dim);
}

.sidebar-toggle.open .sidebar-toggle-arrow {
    transform: rotate(180deg);
}

.sidebar-inner {
    padding: 20px;
}

    /* On mobile, sidebar-inner collapses */
    .sidebar-inner.collapsed {
        display: none;
    }

.sidebar h3 {
    font-family: 'Funnel Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.cat-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 5px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13px;
    transition: all 0.15s;
}

    .cat-item:hover {
        background: var(--surface2);
        color: var(--text);
    }

    .cat-item.active {
        background: var(--accent-glow);
        color: var(--accent);
    }

    .cat-item span {
        font-size: 10.5px;
        background: var(--bg3);
        padding: 2px 6px;
        border-radius: 100px;
        color: var(--text-dim);
        font-weight: 600;
        flex-shrink: 0;
    }

.sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}

.verified-box {
    background: linear-gradient(135deg,#f5c84210,#f5c84205);
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: border-color 0.2s;
}

    .verified-box:hover {
        border-color: #f5c84244;
    }

.verified-badge-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.verified-box p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.verified-box strong {
    color: var(--gold);
    font-size: 12.5px;
    display: block;
}

/* ─── CARDS ─── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: start;
    margin-bottom: 18px;
    gap: 5px;
}

    .section-header h2 {
        font-family: 'Funnel Sans', sans-serif;
        font-size: 22px;
        font-weight: bold;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .section-header h2 .tag {
            font-size: 11px;
            background: var(--accent-glow);
            color: var(--accent);
            border: 1px solid #7c6aff33;
            padding: 3px 8px;
            border-radius: 6px;
            font-weight: 600;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            text-decoration:none;
        }

.see-all {
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid #7c6aff33;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
    white-space: nowrap;
}

    .see-all:hover {
        background: var(--accent-glow);
    }

.tools-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tool-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    gap: 14px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.4s ease both;
}

    .tool-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, transparent 60%, var(--accent)05);
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none;
    }

    .tool-card:hover {
        border-color: var(--border2);
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(0,0,0,0.28);
    }

        .tool-card:hover::before {
            opacity: 1;
        }

    .tool-card.featured {
        border-color: var(--gold-dim);
        background: linear-gradient(135deg, var(--surface), #1a1a14);
    }

        .tool-card.featured::after {
            content: '★ Featured';
            position: absolute;
            top: 12px;
            right: 12px;
            font-size: 10.5px;
            color: var(--gold);
            background: var(--gold-dim);
            border: 1px solid #f5c84233;
            padding: 3px 8px;
            border-radius: 6px;
            font-weight: 600;
            letter-spacing: 0.5px;
        }

.tool-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--bg3);
    border: 1px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    overflow: hidden;
}

    .tool-icon .icon-letter {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Funnel Sans', sans-serif;
        font-weight: 800;
        font-size: 20px;
        color: #fff;
    }
    .tool-icon .icon-image {
        width: 60px;
        height: 60px;
        object-fit: cover;
    }
.tool-body {
    flex: 1;
    min-width: 0;
}

.tool-name-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.tool-name {
    font-family: 'Funnel Sans', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.tool-name:hover {
    color: var(--accent);
}

.verified-icon {
    font-size: 13px;
    color: var(--gold);
}

.tool-tag {
    font-size: 10.5px;
    padding: 2px 7px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration:none;
}

.tag-free {
    background: #22c55e14;
    color: var(--green);
    border: 1px solid #22c55e22;
}

.tag-freemium {
    background: #06b6d414;
    color: var(--cyan);
    border: 1px solid #06b6d422;
}

.tag-paid {
    background: #ec489914;
    color: var(--pink);
    border: 1px solid #ec489922;
}

.tag-contact {
    background: #ec489914;
    color: var(--pink);
    border: 1px solid #ec489928;
}
.tag-deals {
    background: #ec489914;
    color: var(--pink);
    border: 1px solid #ec489922;
}
.tag-free-trial {
    background: #f9731614;
    color: var(--orange);
    border: 1px solid #f9731628;
}
.tag-pill {
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 12px;
    padding: 4px 11px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s;
}

.tag-pill:hover {
    border-color: #7c6aff33;
    color: var(--accent);
    background: var(--accent-glow);
}
.tool-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tool-cats {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.tool-cat {
    font-size: 11px;
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 2px 8px;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

    .tool-cat:hover {
        color: var(--accent);
        border-color: #7c6aff33;
    }

.tool-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.vote-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 5px 11px;
    color: var(--text-muted);
    font-size: 12.5px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
}

    .vote-btn:hover {
        border-color: #7c6aff33;
        color: var(--accent);
        background: var(--accent-glow);
    }

.visit-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

    .visit-btn:hover {
        opacity: 0.85;
    }

/* Card stagger */
.tool-card:nth-child(1) {
    animation-delay: .04s
}

.tool-card:nth-child(2) {
    animation-delay: .08s
}

.tool-card:nth-child(3) {
    animation-delay: .12s
}

.tool-card:nth-child(4) {
    animation-delay: .16s
}

.tool-card:nth-child(5) {
    animation-delay: .20s
}

.tool-card:nth-child(6) {
    animation-delay: .24s
}

/* ─── CATEGORY SECTIONS ─── */
.cats-sections {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px 56px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.cat-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cat-section-title {
    font-family: 'Funnel Sans', sans-serif;
    font-size: 19px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-section-emoji {
    font-size: 22px;
}

.cat-section-count {
    font-size: 12px;
    color: var(--text-dim);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2px 10px;
    border-radius: 100px;
    font-weight: 600;
}

/* TOP 10 list inside each category */
.top10-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.top10-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.15s;
    cursor: pointer;
}

    .top10-item:hover {
        border-color: var(--border2);
        transform: translateX(3px);
    }

.top10-rank {
    font-family: 'Funnel Sans', sans-serif;
    font-size: 13px;
    font-weight: 800;
    min-width: 24px;
    color: var(--text-dim);
}

    .top10-rank.gold {
        color: var(--gold);
    }

    .top10-rank.silver {
        color: #a8b0c0;
    }

    .top10-rank.bronze {
        color: #cd7f32;
    }

.top10-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--bg3);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-family: 'Funnel Sans', sans-serif;
    font-weight: 800;
    flex-shrink: 0;
}

.top10-body {
    flex: 1;
    min-width: 0;
}

.top10-name {
    font-family: 'Funnel Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top10-desc {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top10-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.top10-tag {
    font-size: 10.5px;
    padding: 2px 7px;
    border-radius: 100px;
    font-weight: 600;
}

.top10-votes {
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 3px;
}

.paging-btn {
    font-size: 18px;
    color: var(--gold);
    text-decoration: none;
    border: 1px solid #7c6aff33;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
    white-space: nowrap;
    cursor:pointer;
    justify-self: center;
    font-weight: bold;
    margin-top: 25px;
}

.paging-btn:hover {
    background: var(--accent-glow);
}

#cards {
    display:none;
}
#cards-loader {
    width:100%;
    display: block;
}
#cards-loader img {
    width: 100%;
}
/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-16px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
    .main-wrap {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        top: auto;
    }

    .sidebar-toggle {
        display: flex;
    }

    .sidebar-inner {
        padding: 16px;
    }

        .sidebar-inner.collapsed {
            display: none;
        }
}

@media (max-width: 700px) {
  /*  nav ul {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }*/

    .hero {
        padding: 52px 20px 36px;
    }

    .hero-stats {
        gap: 18px;
    }

    .main-wrap, .filters-section, .cats-sections {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-header {
        flex-wrap: wrap;
        gap: 10px;
    }

/*    .tool-card {
        flex-direction: column;
    }

        .tool-card.featured::after {
            top: 10px;
            right: 10px;
        }
*/
    .tool-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tool-actions {
        align-self: flex-end;
    }

    .top10-desc {
        display: none;
    }

/*    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }*/
}

@media (max-width: 420px) {
    .hero-stats .hero-stat:last-child {
        display: none;
    }

/*    .footer-inner {
        grid-template-columns: 1fr;
    }*/
}
