:root {

    --bg: #090909;
    --text: #ffffffa3;
    --title: #E1FF00;
    --submit-btn: #E1FF00;
    --card-title: #ffffffa3;
    --text-white: #fafafa;
    --theme-color: #E1FF00;

}

* {
    font-family: "Lexend", sans-serif;
    font-weight: normal;
    font-style: normal;

}

body {
    background-color: var(--bg);

}

.wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}


.light-mode {
    background-color: #000000;
}

.section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 50px;

}



.nav-bar {
    position: fixed;
    top: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 50px;
    border-bottom: 1px solid #242424;
    padding-bottom: 10px;
    z-index: 1000;

    /* glass effect */
    background: rgba(9, 9, 9, 0.815);
    -webkit-backdrop-filter: blur(20px);
    /* Safari */
    backdrop-filter: blur(20px);
}


.nav-logo {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-left: 100px;
    margin-top: 10px;
}


.nav-logo .logo-text {

    text-decoration: none;
    font-size: 18px;
    font-weight: normal;
    color: var(--title);
    margin-top: 1px;
}

.nav-logo .nav-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: auto;
}


.nav-items {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
    margin: 0;
    margin-top: 10px;
    padding: 0;
    margin-right: 100px;
}

.nav-items a {
    text-decoration: none;
    font-size: 18px;
    color: var(--text);
    font-weight: 200;
}

.nav-items a:hover {
    text-decoration: underline gray;
}


.web-title {
    display: flex;
    flex-wrap: none;
    justify-content: center;
    height: 300px;
    /* need to adjust once I create newsletter*/

}

.text-box {
    display: flex;
    flex-direction: column;
    justify-items: center;
}



.web-title h1 {
    text-align: center;
    font-size: 56px;
    color: #ffffff;
}

.web-title p {
    margin-top: -20px;
    text-align: center;
    font-size: 20px;
    color: #ffffffa3;
    font-weight: 300;
}

/* subscribe newsletter start */
.subscribe {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 80px;
    margin-top: 0;
}

.subscribe p {
    color: var(--text);
    font-weight: 300;
    font-size: 14px;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input {
    min-height: 40px;
    width: 230px;
    padding: 0 1rem;
    color: var(--theme-color);
    font-size: 14px;
    border: 1px solid #272727;
    border-radius: 8px;
    background-color: transparent;
}

.button--submit {
    min-height: 40px;
    padding: .5em 1em;
    border: none;
    border-radius: 8px;
    background-color: var(--theme-color);
    color: #000000;
    font-size: 15px;
    cursor: pointer;
    transition: background-color .3s ease-in-out;

}

.button--submit:hover {
    opacity: 0.8;
    color: #000000;
}

.input:focus,
.input:focus-visible {
    outline: none;
}

.message-box {
    display: none;
    justify-content: center;
    align-items: center;
    background-color: #E1FF001f;
    border-radius: 8px;
    padding: 10px 15px 10px 15px;
}

.message-box p {
    font-size: 14px;
    font-weight: 300;
    color: #E1FF00;
}

/* subscribe newsletter end */


/* --- Compact tool card --- */
#tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    row-gap: 4rem;
    column-gap: 2rem;
    padding: 1.25rem;
    max-width: 1600px;
    margin: 0 auto;
    align-items: start;
    grid-auto-rows: auto;
}

.tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    /* blends with dark theme */
    border: 1px solid #272727;
    border-radius: 8px;
    overflow: hidden;
    height: auto;
    /* don’t inherit row height */
    min-height: 0;
    /* compact height */
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    /* padding: 10px 10px 10px 10px; */
}

.tool-card:hover {
    opacity: 0.8;
}

.card-link {
    text-decoration: none;
}

/* short banner image */
.tool-image {
    aspect-ratio: 16/9;
    width: 100%;
    overflow: hidden;
    background: var(--bg);
    display: block;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;

    display: block;
}

.tool-card:hover .preview-image {
    transform: scale(1.03);
}

/* tight content */
.tool-content {
    padding: 10px 20px 10px 10px;
}

.title {
    margin: 0;
    font-weight: normal;
    font-size: 16px;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.description {
    font-size: 16px;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-tag {
    font-size: 12px;
    color: var(--text);
    margin: 5px 0px 0px 0px;
    font-weight: 200;
    letter-spacing: 0.05rem;
}

/* arrow button – sits bottom-right without increasing height */
.visit {
    position: absolute;
    right: 30px;
    bottom: 30px;
    margin: 0;
    font-size: 22px;
    line-height: 1;
    color: #9aa0a6;
    transition: transform .15s ease, color .15s ease;
}

.visit:hover {
    transform: translateX(2px);
    color: #ffffff;
}

/* Tool card design end */



#tag-container {
    margin-top: 20px;
    margin-bottom: 30px;
    max-width: 800px;
}





.tag-btn {
    flex: 0 0 auto;
    padding: 8px 16px;
    background: #000000;
    color: var(--text);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 300;
    transition: background-color 0.2s ease-in-out;
}

.tag-btn:hover {
    /* background-color: #0099ff; */
    color: var(--submit-btn);

}

.tag-btn.active {
    color: var(--submit-btn);
    border: 1px solid #72727a;
}

.footer-wrapper {
    width: 90%;
    background-color: var(--bg);
    padding: 20px 40px;
    font-size: 14px;
    color: var(--text);
    border-top: 1px solid #272727;
    text-align: center;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    max-width: 1200px;
}

.footer-text {
    font-weight: 200;
    margin: 6px;

}


.user-id {
    text-decoration: none;
    color: var(--text-white);
}

.user-id:hover {
    color: var(--theme-color);
    text-decoration: underline var(--theme-color);
}

/* --------- */
.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px auto 50px;

}

.input-search {
    border: none;
    padding: 15px;
    border-radius: 8px;
    background: #ffffff27;
    transition: 0.3s;
    width: 100%;
    box-sizing: border-box;
    font-size: medium;

}

.input-search:focus {
    outline-color: #000000;
    color: var(--theme-color);
    outline: none;
}

/* iconized search */
.search-bar--with-icon {
    position: relative;
    /* anchor for absolute icon */
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #9aa0a6;
    pointer-events: none;
    /* clicks go to input */
}

/* make room for the icon */
.search-bar--with-icon .input-search {
    padding-left: 42px;
    /* icon space */
}

/* focus state: tint the icon to match your accent */
.search-bar--with-icon .input-search:focus+.search-icon,
.search-bar--with-icon .input-search:focus~.search-icon {
    color: var(--submit-btn);
}

/* if the icon appears after the input in DOM order, use this instead */
.search-bar--with-icon .input-search:focus~.search-icon {
    color: var(--submit-btn);
}




/* Privacy button */

.nav-menu .privacy-button {
    font-size: 14px;
    color: var(--submit-btn);
    font-weight: 300;
}

.nav-menu .privacy-button:hover {
    text-decoration: none;
}

/* Submit Button */
#submitToolBtn {
    flex: 0 0 auto;
    background: none;
    color: var(--submit-btn);
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 300;
}


/* Prevent page scroll while modal is open */
body.no-scroll {
    overflow: hidden;
}

/* Backdrop */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: none;
    /* hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
    backdrop-filter: blur(5px);
}

.modal-backdrop.is-open {
    display: flex;
}

/* Modal card */
.modal {
    width: min(410px, 92vw);
    background: #090909;
    /* dark, like your screenshot */
    color: #eaeaea;
    border-radius: 16px;
    padding: 24px 24px 20px;
    border: 1px solid #292929;
}

.is-open .modal {
    transform: none;
    opacity: 1;
}

/* Title + sub */
.modal__title {
    margin: 6px 0 10px;
    font-size: 22px;
    font-weight: 500;

}

.modal__sub {
    margin: 0 0 20px;
    color: #a1a1aa;
    font-size: 14px;
    font-weight: 300;
}

/* Close button- no use but keeping it*/
.modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 22px;
    line-height: 1;
    background: transparent;
    border: 0;
    color: #a1a1aa;
    cursor: pointer;
}

.modal__close:hover {
    color: #fff;
}

/* Form */
.modal__form {
    display: grid;
    gap: 12px;
}

.modal__form input {
    width: 90%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #262626;
    background: #18181b;
    color: var(--title);
}

.modal__form input::placeholder {
    color: #6b7280;
}

.modal__submit {
    display: inline-block;
    border: 0;
    cursor: pointer;
    width: 100%;
    border-radius: 8px;
    padding: 12px 16px;
    background: var(--submit-btn);
    color: #041007;
    font-weight: 700;
}

.modal__submit:hover {
    filter: brightness(0.8);
}



/* Side panel tag design */

/* Two-column page layout */
.scroll-container-wrapper {
    width: min(1600px, 95%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
}


/* Sidebar stays fixed-size; it won't scroll */
.sidebar {
    position: sticky;
    top: 90px;
    /* adjust for your navbar */
    max-height: calc(100vh - 120px);
    overflow: hidden;
    /* important: parent doesn't scroll */
}

/* Inner list scrolls independently */
.tag-scroll {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 8px;
    /* keeps text from touching edge */
    max-height: inherit;
    /* same height as sidebar */
    overflow: auto;
    /* this element scrolls */
}

/* Hide scrollbar (all major browsers) */
.tag-scroll {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge legacy */
}

.tag-scroll::-webkit-scrollbar {
    /* Chrome/Safari/Edge */
    width: 0;
    height: 0;
}





/* Make tag buttons full-width & left-aligned for sidebar */
.tag-btn {
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border-radius: 10px;
}

/* Optional: subtle hover/active tweaks for dark theme */
.tag-btn:hover {
    background: #1b1b1b;
}

.tag-btn.active {
    border: 1px solid #72727a;
}


/* privacy policy page */
.policy {
    width: min(900px, 92vw);
    margin: 12px auto 80px;
    padding: 20px 0 0;
    color: var(--text);
    line-height: 1.7;
}

.policy__header {
    margin-bottom: 10px;
    border-bottom: 1px solid #242424;
    padding-bottom: 8px;
}

.policy__title {
    margin: 0 0 4px 0;
    font-size: 32px;
    color: var(--text-white);
    font-weight: 500;
}

.policy__date {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #9aa0a6;
    font-weight: 300;
}

.policy__section {
    margin: 20px 0;

}

.policy__section h2 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: var(--text-white);
    font-weight: 300;
}

.policy__section p {
    margin: 8px 0;
    font-size: 16px;
    font-weight: 200;
}

.policy__list {
    margin: 8px 0 8px 18px;
    padding: 0;
    list-style: disc;
}

.policy__note {
    font-size: 14px;
    color: #9aa0a6;
}

.policy__contact {
    font-size: 16px;
}

.policy__muted {
    color: #9aa0a6;
}





/* responsiveness */
@media (max-width: 600px) {
    .policy__title {
        font-size: 24px;
    }

    .policy__section h2 {
        font-size: 17px;
    }

    .policy__section p,
    .policy__list {
        font-size: 15px;
    }
}




/* ====== RESPONSIVE OVERRIDES (append at end) ====== */

/* Large tablets / small laptops */
@media (max-width: 1200px) {
    .text-box {
        padding: 10px 160px;
    }

    #tools-container {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }

    .web-title {
        height: auto;
    }
}

/* Tablets (portrait) */
@media (max-width: 992px) {
    .nav-bar {
        padding: 10px 16px;
        height: auto;
        gap: 12px;
    }

    .nav-logo {
        margin-left: 0;
    }

    .nav-items {
        gap: 16px;
    }

    .text-box {
        padding: 10px 60px;
    }

    .web-title h1 {
        font-size: 44px;
    }

    #tools-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .visit {
        right: 20px;
        bottom: 20px;
        font-size: 20px;
    }

    .tool-content {
        padding: 18px;
    }

    .tool-image {
        aspect-ratio: 16/9;
        padding: 0;
        height: auto;
    }
}

/* Tablets (<=768px) */
@media (max-width: 768px) {

    .nav-bar {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 10px 14px;

    }

    .nav-icon {
        height: 28px;
        margin-top: 0;
    }

    .nav-logo .logo-text {
        font-size: 18px;
    }

    .nav-items {
        gap: 12px;
    }

    #submitToolBtn {
        margin-right: 0;
        font-size: 14px;
        padding: 10px 14px;
    }

    .text-box {
        padding: 10px 28px;
    }

    .web-title {
        height: auto;
    }

    .web-title h1 {
        font-size: 36px;
    }

    .web-title p {
        font-size: 16px;
    }

    #tools-container {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
        padding: 1.25rem;
        column-gap: 1rem;
        row-gap: 2.5rem;
    }

    .title {
        font-size: 15px;
    }

    .description {
        font-size: 15px;
    }

    /* Tag row & search */
    .search-bar {
        width: min(100%, 680px);
        margin: 28px auto 12px;
        padding: 0 12px;
    }

    .tag-scroll {
        gap: 8px;
        padding: 8px 10px;
    }

    .tag-btn {
        font-size: 13px;
        padding: 6px 12px;
    }

    /* Popup form becomes viewport-based for small screens */
    .popup-form {
        position: fixed;
        inset: auto 16px 16px 16px;
        /* bottom sheet feel */
        right: 16px;
        width: auto;
        max-width: 540px;
    }
}

/* Large phones (<=600px) */
@media (max-width: 600px) {
    .nav-logo .logo-text {
        display: flex;
    }

    /* saves horizontal space */
    .nav-icon {
        height: 26px;
    }

    .nav-items a {
        font-size: 16px;
    }

    .text-box {
        padding: 8px 16px;
    }

    .web-title h1 {
        font-size: 32px;
    }

    .web-title p {
        font-size: 15px;
    }

    .search-bar {
        width: 100%;
        padding: 0 12px;
    }

    #tools-container {
        grid-template-columns: 1fr;
        padding: 1rem 0.75rem;
    }

    .tool-card {
        min-height: 0;
    }

    .tool-content {
        padding: 16px;
    }

    .visit {
        right: 16px;
        bottom: 16px;
        font-size: 18px;
    }

    /* Footer */
    .footer-content {
        justify-content: center;
        gap: 10px;
    }

}

/* Small phones (<=420px) */
@media (max-width: 420px) {
    .title {
        font-size: 14px;
    }

    .description {
        font-size: 14px;
    }

    .price-tag {
        font-size: 12px;
        padding: 6px 12px;
    }

    .input-search {
        padding: 12px;
        font-size: 14px;
    }

    .modal {
        width: min(380px, 94vw);
    }

    .modal__title {
        font-size: 20px;
    }

    .modal__submit {
        width: 100%;
    }
}

/* Ultra-wide (>=1600px) – keep grid comfy */
@media (min-width: 1600px) {
    #tools-container {
        max-width: 1600px;
        column-gap: 2rem;
        row-gap: 4rem;
    }
}

@media (max-width: 992px) {
    .scroll-container-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sidebar {
        position: static;
        max-height: none;
    }

    .tag-scroll {
        flex-direction: row;
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
    }

    .tag-scroll::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    .tag-btn {
        width: auto;
        text-align: center;
        border-radius: 100px;
    }
}