:root {
    --color-bg-primary: rgb(15, 15, 15);
    --color-bg-secondary: #2e2e2e;
    --color-light-text: #dbdbdb;
    --color-dark-text: #9c9c9c;
    --color-primary: #ffffff;
    --color-secondary: rgba(255, 255, 255, 0.1);
    --color-dark-track: rgb(25, 25, 25);
    --color-scroll-thumb: rgb(40, 40, 40);
    --color-scroll-thumb-hover: rgb(60, 60, 60);
    --color-shadow: rgba(0, 0, 0, 0.85);
    --color-hover-shadow: rgba(0, 0, 0, 0.95);
    --color-subtle-shadow: rgba(0, 0, 0, 0.7);
    --color-positive: #21a87b;
    --color-negative: #fd4747;
    --color-positive-boxshadow: #229f7577;
    --color-negative-boxshadow: #ff303e62;
}

@font-face {
    font-family: 'Poppins';
    font-weight: 300;
    font-style: normal;
    src: url('../fonts/Poppins-300.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    font-weight: 400;
    font-style: normal;
    src: url('../fonts/Poppins-400.woff2') format('woff2');
    font-display: swap;
}
/*
@font-face {
    font-family: 'Poppins';
    font-weight: 500;
    font-style: normal;
    src: url('../fonts/Poppins-500.woff2') format('woff2');
    font-display: swap;
}
*/
@font-face {
    font-family: 'Poppins';
    font-weight: 600;
    font-style: normal;
    src: url('../fonts/Poppins-600.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    font-weight: 700;
    font-style: normal;
    src: url('../fonts/Poppins-700.woff2') format('woff2');
    font-display: swap;
}
/*
@font-face {
    font-family: 'Poppins';
    font-weight: 800;
    font-style: normal;
    src: url('../fonts/Poppins-800.woff2') format('woff2');
    font-display: swap;
}
*/

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-dark-track);
}

::-webkit-scrollbar-thumb {
    background: var(--color-scroll-thumb);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-scroll-thumb-hover);
}

* {
    box-sizing: border-box;
}

h1 { font-size: 2em; }
h2 { font-size: 1.6em; }
h3 { font-size: 1.2em; }
p {
    font-size: 1em;
    line-height: 1.8em;
    color: var(--color-dark-text);
}

body {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-bg-primary);
    color: var(--color-light-text);
    margin: 25px;
    padding: 0;
    min-height: calc(100vh - 50px);
}

.header, #links, #priceData, .content-wrapper {
    max-width: 1600px;
    width: 100%;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    font-size: 2em;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-light-text);
}

.logo-wrapper img {
    height: 1.6em;
}

.nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-left: auto; /* Push to the right */
}

.nav-icon {
    filter: brightness(0.8);
}

.nav-item {
    cursor: pointer;
    outline: none;
    color: inherit;
    font: inherit;
    background: none;
    border: none;
    padding: 0;
    text-decoration: none;
    color: var(--color-dark-text);
    font-size: 1em;
}

.link-item:focus-visible, .share-button:focus-visible, .nav-item:focus-visible, .show-more:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
    border-radius: 2px;
}

.close-button:focus-visible {
    filter: brightness(0.9);
    outline: none;
}

.nav-item-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.nav-item-wrapper img {
    height: 25px;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5em;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
}

#search-container {
    margin: 0;
}

.no-results-message {
    color: var(--color-dark-text);
    margin-top: 50px;
    display: flex;
    align-items: center;
}

.no-results-message .svg-icon {
    margin-right: 8px;
    width: 1em;
}
.input-container {
    position: relative;
}

.input-container .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-dark-text);
    pointer-events: none;
    font-size: 0.9em;
    width: 1em;
}

.search-bar {
    width: 100%;
    padding: 10px 10px 10px 35px;
    margin: 0;
    border-radius: 8px;
    outline: none;
    border: none;
    background-color: var(--color-bg-secondary);
    color: var(--color-light-text);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9em;
    flex: 1;
}

.search-bar::placeholder {
    color: var(--color-dark-text);
}

#links {
    animation-delay: 200ms;
    border-radius: 12px;
    padding: 0;
    margin: 0;
    z-index: 1;
}

#links h2 {
    padding: 0 0 20px 0;
    margin: 0;
}

.header-container h3 {
    padding: 0;
    margin: 0;
    font-weight: 600;
}

.category {
    padding-bottom: 50px;
}

.sub-category {
    padding-top: 10px;
}

.explorer-link {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-light-text);
}

.explorer-link .icon {
    height: 1.3em;
    width: 1.3em;
}

.content-wrapper {
    margin-top: 100px;
}

.content {
    display: flex;
    flex-wrap: wrap;
    gap: 75px;
    text-align: justify;
}

.content strong {
    font-weight: 400;
}

.column {
    flex: 1;
    box-sizing: border-box;
    width: calc(50% - 50px);
}

@media (max-width: 768px) {
    .column {
        min-width: 100%;
    }
}

#links .header-container, .priceCard .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    white-space: nowrap;
}

.tokenid,
.copy-icon {
    color: var(--color-dark-text);
    font-weight: 400;
    font-size: 0.9em;
}

.copy-icon {
    width: 0.9em;
    height: 0.9em;
    font-size: 0.9em;
}

.tokenid {
    margin-right: 10px;
}

.tokenid-container {
    cursor: pointer;
    margin-left: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.notification {
    font-size: 0.9em;
    position: fixed;
    bottom: 15px;
    right: 40px;
    color: var(--color-light-text);
    padding: 10px 15px;
    border-radius: 5px;
    z-index: 20;
    transform: translateY(150%);
    transition: transform 100ms;
}

.notification.show {
    transform: translateY(0);
}

.notification.success {
    background-color: var(--color-positive);
}

.notification.error {
    background-color: var(--color-negative);
}

.link-item {
    display: flex;
    align-items: center;
    min-width: 220px;
    max-width: calc(1600px / 2 - 10px);
    color: var(--color-light-text);
    background-color: var(--color-bg-secondary);
    font-weight: 300;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    position: relative;
    font-size: 0.9em;
    overflow: hidden;
    flex: 1;
}

@media (max-width: 1650px) {
    .link-item {
        max-width: 100%;
    }
}

@media (max-width: 550px) {
    .link-item {
        min-width: 150px;
    }
}

.link-item .blurred-background, .details .blurred-background {
    display: flex;  
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('');
    background-repeat: repeat;
    background-size: 50px;
    background-position: center;
    filter: blur(20px);
    transform: scale(2);
    z-index: 0;
}

.hidden-details {
    display: none;
}

.link-item .icon {
    max-height: 1.5em;
    max-width: 1.5em;
    height: auto;
    width: auto;
    object-fit: contain;
    margin-right: 10px;
    vertical-align: middle;
    position: relative;
    z-index: 15;
}

.link-item .link-text {
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 20;
}

.link-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.icon {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    vertical-align: middle;
    max-width: 50px;
    max-height: 50px;
}

.svg-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 50px;
    max-height: 50px;
}

.link-item,
.sub-category {
    flex: 1;
    box-sizing: border-box;
    border-radius: 8px;
}

#priceData {
    padding: 0px 0px 50px 0px;
    margin: 0;
}

.priceChange {
    z-index: 20;
}

.priceChange span {
    margin-left: 10px;
    display: block !important;
    z-index: 30;
    color: var(--color-light-text);
}

.symbol {
    margin: 0;
    padding: 0;
}

.period {
    min-width: 30px;
}

.lastPrice {
    font-size: 1.6em;
    font-weight: 600;
    color: var(--color-light-text);
    margin: 0;
    padding: 0;
}

.positive {
    color: var(--color-positive);
}

.negative {
    color: var(--color-negative);
}

.positiveBoxshadow {
    box-shadow: inset 0px 0px 100px var(--color-positive-boxshadow);
}

.negativeBoxshadow {
    box-shadow: inset 0px 0px 100px var(--color-negative-boxshadow);
}

.details {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 700px;
    height: auto;
    max-height: 70vh;
    padding: 20px 20px 25px 20px;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-bg-primary);
    border-radius: 8px;
    z-index: 20;
    overflow-y: auto;
    overflow-x: hidden;
    animation: fadeIn 100ms ease-in forwards;
}

.details .links-container {
    margin-top: 20px;
}

@media (max-width: 600px) {
    .details .link-item {
        min-width: 140px;
    }
}

.details::-webkit-scrollbar {
    width: 6px;
}

.link-description-container {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

.link-description {
    font-size: 0.9em;
    color: var(--color-dark-text);
    text-align: justify;
    max-height: 100px;
    line-height: 1.4em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
   -webkit-line-clamp: 3;
           line-clamp: 3; 
   -webkit-box-orient: vertical;
    margin: 0;
}

.link-description.expanded {
    -webkit-line-clamp: 50;
            line-clamp: 50; 
    max-height: none;
}

.show-more {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    background-color: var(--color-bg-secondary);
    color: var(--color-dark-text);
    border-radius: 8px;
    padding: 7px;
    width: 30px;
    font-size: 0.8em;
    margin: 10px 0px 0px auto;
}

.up-icon .svg-icon, .down-icon .svg-icon {
    padding: 1px;
}

.banner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
    text-align: center;
    margin: -20px -20px 25px -20px;
    height: calc(25vh);
    max-height: 600px;
    min-height: 200px;
    overflow: hidden;
    position: relative;
    gap: 20px;
}

.banner-container .blurred-background {
    filter: blur(30px) brightness(0.8)!important;
    z-index: 0;
}

.banner-container .banner-link-name {
    font-size: 2.5em;
    font-weight: 600;
    line-height: 1.2em;
}

.banner-container .icon {
    max-height: 3em;
    max-width: 3em;
    height: auto;
    width: auto;
    border-radius: 8px;
    margin: 0;
    object-fit: contain;
}

.banner-container .banner-title-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: -20px;
    z-index: 15;
}

.close-button {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    border: none;
    border-radius: 0 0 0 8px;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.close-icon {
    width: 1.5em;
    height: 1.5em;
    color: var(--color-light-text);
    font-size: 0.7em;
}

.overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    animation: fadeIn 100ms ease-in forwards;
}

.share-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-bottom: -20px;
    z-index: 10;
}

.share-icon {
    width: 1.5em;
    height: 1.5em;
    color: var(--color-light-text);
}

/* Media Queries */

@media (max-width: 785px) {
    .hamburger {
        display: flex; /* Show hamburger on small screens */
    }

    .nav {
        display: none; /* Hide nav items on small screens */
    }

    .nav.show {
        display: flex; /* Show nav items when toggled */
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        margin-bottom: 10px;
    }

    #search-container,
    .search-bar {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        margin: 20px 10px 10px 10px;
    }

    .banner-container .banner-link-name {
        font-size: 2em;
    }

    #search-container {
        justify-content: center;
    }
}
