/* =========================================================
   SERVOMIX TOOLS PAGE
   File: css/tools.css
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --tools-bg: #050914;
    --tools-bg-2: #07101d;
    --tools-card: #091421;
    --tools-card-hover: #0b1827;

    --tools-border: rgba(148, 163, 184, 0.14);
    --tools-border-hover: rgba(59, 130, 246, 0.35);

    --tools-text: #f8fafc;
    --tools-muted: #8290a5;

    --tools-blue: #3b82f6;
    --tools-purple: #7c3aed;
}


/* =========================================================
   BASE
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--tools-bg);
    color: var(--tools-text);
    overflow-x: hidden;
}

.tools-container {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.tools-hero {
    position: relative;

    min-height: 480px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #07111f 0%,
            #050b15 100%
        );

    border-bottom:
        1px solid rgba(148, 163, 184, 0.08);
}


/* subtle background */

.tools-hero-bg {
    position: absolute;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(59, 130, 246, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(59, 130, 246, 0.025) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            black 20%,
            black 75%,
            transparent
        );
}


.tools-hero .tools-container {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(380px, 0.8fr);

    gap: 80px;

    align-items: center;

    padding-top: 55px;
    padding-bottom: 55px;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.tools-hero-content {
    max-width: 720px;
}


.tools-eyebrow {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 18px;

    color: #60a5fa;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.16em;
}


.tools-eyebrow svg {
    width: 15px;
    height: 15px;
}


.tools-hero h1 {
    margin: 0;

    max-width: 700px;

    color: #f8fafc;

    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.03;

    letter-spacing: -0.045em;
}


.tools-hero h1 span {
    display: block;

    margin-top: 5px;

    color: #3b82f6;
}


.tools-hero-content > p {
    max-width: 620px;

    margin:
        24px
        0
        0;

    color: #94a3b8;

    font-size: 15px;
    line-height: 1.8;
}


.tools-coming-message {
    width: fit-content;

    display: flex;
    align-items: center;

    gap: 9px;

    margin-top: 25px;

    padding: 9px 13px;

    color: #94a3b8;

    font-size: 11px;
    font-weight: 600;

    border:
        1px solid rgba(148, 163, 184, 0.13);

    border-radius: 9px;

    background: rgba(255, 255, 255, 0.025);
}


.tools-coming-message svg {
    width: 14px;
    height: 14px;

    color: #60a5fa;
}


/* =========================================================
   HERO VISUAL
========================================================= */

/* =========================================================
   HERO RIGHT IMAGE
========================================================= */

.tools-hero-visual {
    position: relative;

    min-height: 360px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(10px);
}


.tools-hero-image {
    display: block;

    width: 100%;
    max-width: 570px;
    height: auto;

    object-fit: contain;

    user-select: none;

    pointer-events: none;
}


/* responsive */

@media (max-width: 1100px) {

    .tools-hero-image {
        max-width: 480px;
    }

}


@media (max-width: 950px) {

    .tools-hero-visual {
        min-height: 300px;
    }

    .tools-hero-image {
        max-width: 430px;
    }

}


@media (max-width: 650px) {

    .tools-hero-visual {
        display: none;
    }

}


.toolbox-visual {
    position: relative;

    width: 330px;
    height: 280px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* Main toolbox */

.toolbox-main {
    width: 165px;
    height: 165px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(59, 130, 246, 0.3);

    border-radius: 35px;

    background:
        linear-gradient(
            145deg,
            rgba(13, 34, 59, 0.96),
            rgba(5, 14, 27, 0.98)
        );

    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.3);
}


.toolbox-main svg {
    width: 72px;
    height: 72px;

    stroke-width: 1.4;

    color: #3b82f6;
}


/* floating icons */

.floating-tool {
    position: absolute;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(148, 163, 184, 0.13);

    border-radius: 12px;

    background: rgba(8, 19, 33, 0.96);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.2);

    color: #60a5fa;
}


.floating-tool svg {
    width: 21px;
    height: 21px;
}


.tool-one {
    top: 25px;
    left: 45px;
}

.tool-two {
    top: 18px;
    right: 45px;
}

.tool-three {
    left: 5px;
    top: 120px;
}

.tool-four {
    right: 5px;
    top: 120px;
}

.tool-five {
    bottom: 12px;
    left: 62px;
}

.tool-six {
    bottom: 12px;
    right: 62px;
}


/* =========================================================
   DIRECTORY
========================================================= */

.tools-directory {
    position: relative;

    padding:
        36px
        0
        85px;

    background:
        linear-gradient(
            180deg,
            #050b15 0%,
            #050914 100%
        );
}


/* =========================================================
   FILTER BAR
========================================================= */

.tools-filter-bar {
    position: relative;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;

    padding: 12px;

    border:
        1px solid rgba(148, 163, 184, 0.15);

    border-radius: 13px;

    background: #08121f;
}


.tools-filters {
    display: flex;
    align-items: center;

    gap: 7px;

    flex-wrap: wrap;
}


/* filter buttons */

.tool-filter {
    appearance: none;

    min-height: 35px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    padding:
        0
        13px;

    border:
        1px solid rgba(148, 163, 184, 0.13);

    border-radius: 8px;

    outline: none;

    background: rgba(255, 255, 255, 0.025);

    color: #94a3b8;

    font-family: inherit;
    font-size: 11px;
    font-weight: 650;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.tool-filter svg {
    width: 13px;
    height: 13px;
}


.tool-filter:hover {
    color: #e2e8f0;

    border-color:
        rgba(59, 130, 246, 0.3);

    background:
        rgba(59, 130, 246, 0.07);
}


.tool-filter.active {
    color: #ffffff;

    border-color:
        rgba(59, 130, 246, 0.5);

    background: #2563eb;
}


/* =========================================================
   SEARCH
========================================================= */

.tools-search {
    width: 250px;
    min-width: 220px;

    height: 37px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding:
        0
        12px;

    border:
        1px solid rgba(148, 163, 184, 0.16);

    border-radius: 8px;

    background: #050c16;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}


.tools-search:focus-within {
    border-color:
        rgba(59, 130, 246, 0.55);

    background: #07101c;
}


.tools-search svg {
    flex: 0 0 auto;

    width: 15px;
    height: 15px;

    color: #64748b;
}


.tools-search input {
    width: 100%;

    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: #f8fafc;

    font-family: inherit;
    font-size: 11px;
}


.tools-search input::placeholder {
    color: #64748b;
}


/* =========================================================
   TOOL GRID
========================================================= */

.tools-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;
}


/* =========================================================
   NORMAL TOOL CARD
========================================================= */

.tool-card {
    position: relative;

    min-width: 0;
    min-height: 225px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 18px;

    overflow: hidden;

    border:
        1px solid var(--tools-border);

    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            #091522 0%,
            #07111d 100%
        );

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}


.tool-card:hover {
    transform: translateY(-3px);

    border-color:
        var(--tools-border-hover);

    background:
        linear-gradient(
            145deg,
            #0b1928 0%,
            #081421 100%
        );
}


/* =========================================================
   TOOL ICON
========================================================= */

.tool-icon {
    width: 46px;
    height: 46px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 16px;

    border:
        1px solid rgba(59, 130, 246, 0.18);

    border-radius: 11px;

    background:
        rgba(59, 130, 246, 0.1);

    color: #60a5fa;
}


.tool-icon svg {
    width: 21px;
    height: 21px;

    stroke-width: 1.8;
}


/* icon variants */

.tool-icon.icon-purple {
    color: #a78bfa;

    background:
        rgba(124, 58, 237, 0.11);

    border-color:
        rgba(124, 58, 237, 0.2);
}


.tool-icon.icon-green {
    color: #4ade80;

    background:
        rgba(34, 197, 94, 0.1);

    border-color:
        rgba(34, 197, 94, 0.18);
}


.tool-icon.icon-pink {
    color: #f472b6;

    background:
        rgba(236, 72, 153, 0.1);

    border-color:
        rgba(236, 72, 153, 0.18);
}


.tool-icon.icon-orange {
    color: #fb923c;

    background:
        rgba(249, 115, 22, 0.1);

    border-color:
        rgba(249, 115, 22, 0.18);
}


.tool-icon.icon-yellow {
    color: #facc15;

    background:
        rgba(234, 179, 8, 0.09);

    border-color:
        rgba(234, 179, 8, 0.17);
}


.tool-icon.icon-blue {
    color: #60a5fa;

    background:
        rgba(59, 130, 246, 0.1);

    border-color:
        rgba(59, 130, 246, 0.18);
}


.tool-icon.icon-cyan {
    color: #22d3ee;

    background:
        rgba(6, 182, 212, 0.09);

    border-color:
        rgba(6, 182, 212, 0.17);
}


.tool-icon.icon-indigo {
    color: #818cf8;

    background:
        rgba(99, 102, 241, 0.1);

    border-color:
        rgba(99, 102, 241, 0.18);
}


.tool-icon.icon-red {
    color: #fb7185;

    background:
        rgba(244, 63, 94, 0.09);

    border-color:
        rgba(244, 63, 94, 0.17);
}


/* =========================================================
   TITLE
========================================================= */

.tool-title-row {
    width: 100%;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 8px;
}


.tool-title-row h3 {
    min-width: 0;

    margin: 0;

    color: #f1f5f9;

    font-size: 14px;
    line-height: 1.35;

    letter-spacing: -0.015em;
}


/* =========================================================
   COMING SOON BADGE
========================================================= */

.coming-badge {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;

    min-height: 19px;

    padding:
        0
        6px;

    border:
        1px solid rgba(148, 163, 184, 0.15);

    border-radius: 5px;

    background:
        rgba(148, 163, 184, 0.055);

    color: #77859a;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 0.06em;

    white-space: nowrap;
}


/* =========================================================
   GAME BADGES
========================================================= */

.game-badge {
    width: fit-content;

    display: inline-flex;
    align-items: center;

    gap: 5px;

    margin-top: 9px;

    padding:
        4px
        7px;

    border-radius: 5px;

    font-size: 8.5px;
    font-weight: 700;
}


.game-badge svg {
    width: 10px;
    height: 10px;
}


/* Minecraft */

.game-badge.minecraft {
    color: #86efac;

    border:
        1px solid rgba(34, 197, 94, 0.18);

    background:
        rgba(34, 197, 94, 0.075);
}


/* FiveM */

.game-badge.fivem {
    color: #fdba74;

    border:
        1px solid rgba(249, 115, 22, 0.18);

    background:
        rgba(249, 115, 22, 0.07);
}


/* CS2 */

.game-badge.cs2 {
    color: #fbbf24;

    border:
        1px solid rgba(245, 158, 11, 0.18);

    background:
        rgba(245, 158, 11, 0.07);
}


/* Palworld */

.game-badge.palworld {
    color: #f0abfc;

    border:
        1px solid rgba(217, 70, 239, 0.18);

    background:
        rgba(217, 70, 239, 0.07);
}


/* Hytale */

.game-badge.hytale {
    color: #67e8f9;

    border:
        1px solid rgba(6, 182, 212, 0.18);

    background:
        rgba(6, 182, 212, 0.07);
}


/* Universal */

.game-badge.universal {
    color: #93c5fd;

    border:
        1px solid rgba(59, 130, 246, 0.2);

    background:
        rgba(59, 130, 246, 0.075);
}


/* =========================================================
   DESCRIPTION
========================================================= */

.tool-card > p {
    margin:
        12px
        0
        0;

    color: #8290a5;

    font-size: 10.5px;
    line-height: 1.55;
}


/* =========================================================
   PRIMARY SERVER CALCULATOR
========================================================= */

.tool-card-primary {
    grid-column: span 2;

    min-height: 225px;

    padding: 21px;

    border-color:
        rgba(59, 130, 246, 0.48);

    background:
        linear-gradient(
            125deg,
            rgba(12, 38, 70, 0.96) 0%,
            rgba(7, 20, 36, 0.98) 58%,
            rgba(9, 18, 32, 0.98) 100%
        );
}


.tool-card-primary::before {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            115deg,
            rgba(59, 130, 246, 0.08),
            transparent 48%
        );
}


.tool-card-primary::after {
    content: "";

    position: absolute;

    right: -60px;
    bottom: -90px;

    width: 260px;
    height: 260px;

    border:
        1px solid rgba(59, 130, 246, 0.09);

    border-radius: 50%;

    pointer-events: none;
}


.tool-card-primary:hover {
    border-color:
        rgba(59, 130, 246, 0.72);

    background:
        linear-gradient(
            125deg,
            rgba(13, 43, 79, 0.98) 0%,
            rgba(8, 23, 41, 0.98) 58%,
            rgba(9, 19, 33, 0.98) 100%
        );
}


/* Primary badge */

.primary-label {
    position: absolute;

    top: 0;
    left: 18px;

    min-height: 22px;

    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding:
        0
        9px;

    color: #ffffff;

    background: #2563eb;

    border-radius:
        0
        0
        6px
        6px;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 0.07em;
}


.primary-label svg {
    width: 9px;
    height: 9px;
}


.tool-card-primary .tool-icon {
    position: relative;
    z-index: 2;

    width: 58px;
    height: 58px;

    margin-top: 15px;
    margin-bottom: 17px;

    border-color:
        rgba(59, 130, 246, 0.32);

    background:
        rgba(37, 99, 235, 0.12);

    color: #60a5fa;
}


.tool-card-primary .tool-icon svg {
    width: 27px;
    height: 27px;
}


.tool-card-primary .tool-title-row,
.tool-card-primary .game-badge,
.tool-card-primary > p {
    position: relative;
    z-index: 2;
}


.tool-card-primary .tool-title-row h3 {
    font-size: 18px;
}


.tool-card-primary > p {
    max-width: 540px;

    font-size: 11px;
    line-height: 1.6;
}


/* =========================================================
   FILTER / SEARCH HIDING
========================================================= */

.tool-card.tool-hidden {
    display: none;
}


/* =========================================================
   EMPTY SEARCH
========================================================= */

.tools-empty {
    margin-top: 16px;

    padding: 65px 25px;

    text-align: center;

    border:
        1px dashed rgba(148, 163, 184, 0.16);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.015);
}


.tools-empty[hidden] {
    display: none;
}


.tools-empty-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin:
        0
        auto
        14px;

    border-radius: 12px;

    background:
        rgba(59, 130, 246, 0.08);

    color: #60a5fa;
}


.tools-empty-icon svg {
    width: 22px;
    height: 22px;
}


.tools-empty h3 {
    margin: 0;

    font-size: 16px;
}


.tools-empty p {
    margin:
        7px
        0
        0;

    color: #718096;

    font-size: 11px;
}


/* =========================================================
   MORE TOOLS CARD
========================================================= */

.more-tools-card {
    position: relative;

    display: grid;

    grid-template-columns:
        58px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 20px;

    margin-top: 22px;

    padding:
        22px
        25px;

    overflow: hidden;

    border:
        1px solid rgba(124, 58, 237, 0.2);

    border-radius: 14px;

    background:
        linear-gradient(
            110deg,
            rgba(124, 58, 237, 0.06),
            rgba(59, 130, 246, 0.035),
            rgba(255, 255, 255, 0.015)
        );
}


.more-tools-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(124, 58, 237, 0.2);

    border-radius: 12px;

    background:
        rgba(124, 58, 237, 0.08);

    color: #a78bfa;
}


.more-tools-icon svg {
    width: 23px;
    height: 23px;
}


.more-tools-content > span {
    color: #8b5cf6;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.14em;
}


.more-tools-content h2 {
    margin:
        4px
        0
        0;

    color: #f1f5f9;

    font-size: 18px;
}


.more-tools-content p {
    max-width: 750px;

    margin:
        7px
        0
        0;

    color: #8290a5;

    font-size: 10.5px;
    line-height: 1.55;
}


.more-tools-badge {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding:
        8px
        11px;

    border:
        1px solid rgba(124, 58, 237, 0.2);

    border-radius: 7px;

    color: #c4b5fd;

    background:
        rgba(124, 58, 237, 0.07);

    font-size: 9px;
    font-weight: 700;
}


.more-tools-badge svg {
    width: 12px;
    height: 12px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1180px) {

    .tools-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }


    .tools-hero .tools-container {
        gap: 40px;

        grid-template-columns:
            minmax(0, 1fr)
            360px;
    }

}


@media (max-width: 950px) {

    .tools-hero {
        min-height: auto;
    }


    .tools-hero .tools-container {
        grid-template-columns: 1fr;

        gap: 30px;

        padding-top: 70px;
        padding-bottom: 50px;
    }


    .tools-hero-content {
        max-width: 700px;
    }


    .tools-hero-visual {
        min-height: 260px;
    }


    .toolbox-visual {
        transform: scale(0.85);
    }


    .tools-filter-bar {
        align-items: stretch;
        flex-direction: column;
    }


    .tools-search {
        width: 100%;
    }


    .tools-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 650px) {

    .tools-container {
        width: min(100% - 28px, 1380px);
    }


    .tools-hero h1 {
        font-size: 40px;
    }


    .tools-hero-content > p {
        font-size: 13px;
    }


    .tools-hero-visual {
        display: none;
    }


    .tools-directory {
        padding-top: 24px;
    }


    .tools-filters {
        flex-wrap: nowrap;

        width: 100%;

        overflow-x: auto;

        padding-bottom: 3px;

        scrollbar-width: none;
    }


    .tools-filters::-webkit-scrollbar {
        display: none;
    }


    .tool-filter {
        flex: 0 0 auto;
    }


    .tools-grid {
        grid-template-columns: 1fr;
    }


    .tool-card-primary {
        grid-column: span 1;
    }


    .tool-card {
        min-height: 205px;
    }


    .more-tools-card {
        grid-template-columns: 48px 1fr;

        gap: 14px;

        padding: 18px;
    }


    .more-tools-icon {
        width: 46px;
        height: 46px;
    }


    .more-tools-badge {
        grid-column: 1 / -1;

        width: fit-content;

        margin-left: 62px;
    }

}


@media (max-width: 420px) {

    .tools-hero h1 {
        font-size: 34px;
    }


    .tools-filter-bar {
        padding: 9px;
    }


    .tool-card {
        padding: 16px;
    }


    .tool-title-row {
        flex-direction: column;

        gap: 6px;
    }


    .tool-card-primary .tool-title-row h3 {
        font-size: 17px;
    }

}
/* =========================================================
   FIX TOOLS PAGE POSITION
   Navbar → Top
   Hero → Slightly Down
========================================================= */


/* NAVBAR TOUCH TOP */

.header {
    top: 0 !important;
    margin-top: 0 !important;
}

.navbar {
    margin-top: 0 !important;
}


/* REMOVE ANY SPACE ABOVE NAVBAR */

body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}


/* HERO LITTLE DOWN */

.tools-hero .tools-container {
    padding-top: 105px !important;
    padding-bottom: 55px;
}


/* keep hero content aligned nicely */

.tools-hero-content {
    transform: translateY(12px);
}

.tools-hero-visual {
    transform: translateY(12px);
}