/*
Theme Name: Autotraider
Theme URI: https://www.nilovelez.com/blank/
Author: Aaron Davis
Author URI: https://www.nilovelez.com/
Description: This theme was intentionally left blank. There are times when all you need is the WordPress dashboard and an blank frontend. You might be using the WordPress REST API as a backend for a mobile App or you might be a minimalism obsessed hipster. This is your theme.
Version: 3.1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: featured-images, custom-background, theme-options, translation-ready
Text Domain: intentionally-blank
Requires at least: 4.6
Tested up to: 6.6
Requires PHP: 7.4
*/

/* ---------------- BASE STYLES ---------------- */

:root {
    --app-font-family: Montserrat, sans-serif;

    --brand-clr: hsl(185, 85%, 40%);
    --bg-primary: hsl(195, 20%, 86%);
    --border-clr: hsl(195, 16%, 82%);
    --accent-blue: hsl(205, 100%, 48%);
    --text-primary: hsl(180, 6%, 38%);
    --text-accent: hsl(195, 2%, 78%);

    --header: 3.5rem;
    --full-width: 100%;
    --padding-space: calc(var(--full-width) - 2rem);
    --max-width: 70%;
    --min-width: 60%;

    --bd-radius: 0.5em;
    --space-025: 0.25rem;
    --space-05: 0.5rem;
    --space-1: 1rem;
    
    --stroke-width: 3px;

    --gold1: #fff3b0;
    --gold2: #f5d76e;
    --gold3: #e6b94e;
    --gold4: #d4a437;
    --gold5: #b8902a;
    --gold6: #8c6b1f;
    --gold6T: transparent;

    --dur: 3s;
    --timing: ease-in-out;

    --silver: #c0c0c0;
    --light-shadow: #d8d8d8;
    --dark-shadow: #6c7a86;
}


body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #e6e6e6;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.page_container {
    width: inherit;
}

.header {
    padding: 10px;
    text-align: center;
    background: linear-gradient(180deg, #023047, white);
}

.header h1 {
    
    background: linear-gradient(to bottom, #cfc09f 27%, #ffecb3 40%, #FFF 78%); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
	font-family: 'Playfair Display', serif;
    position: relative;
	text-transform: uppercase;	
}

/* ---------------- NAV (DESKTOP) ---------------- */
.nav_container {
    flex-grow: 1;
    display: grid;
    place-self: center;
    inline-size: clamp(
        var(--min-width),
        var(--padding-space),
        var(--max-width)
    );
}

.nav {
	width: 60%;
   
    --header-margin: 5vh;
    --shadow: 0 0.1875em 0.3125em #0003, 0 0.125em 0.5em #0002;
    margin-block: auto;
    min-block-size: var(--header);
    background-color: #fff;
    outline: 1px solid var(--border-clr);
    border-radius: var(--bd-radius);
    padding-inline: var(--padding);
    box-shadow: var(--shadow);
    margin-left: 20%;
}

.nav_header {
    block-size: inherit;
    display: flex;
    flex-flow: wrap;

    /* Breakpoint 1280px > 720px */
    gap: 0 clamp(3.5rem, -24.14rem + 40.43vw, 25rem);
}

.nav_header > * {
    flex-grow: 1;
    height: var(--header);
    width: calc((45rem - var(--full-width) - (var(--padding) * 2)) * 999);
}

.nav_content_left {
    display: grid;
    grid-auto-flow: column;
    inline-size: max-content;
    place-content: center;
}

.nav_content_right {
    flex-grow: 999;
}

.logo {
    gap: var(--space-05);
    padding: 0.25em 0.75em;
    align-items: center;
    display: inline-flex;
}

.fa-solid {
    color: var(--text-primary);
}

.logo-text {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 500;
}

.nav-toggle {
    aspect-ratio: 1;
    height: 2.25rem;
    display: inline-grid;
    place-content: center;
    background: none;
    border: none;
    visibility: hidden;
    cursor: pointer;
}

.nav-toggle:active {
    scale: 0.9;
}

.toggle-icon {
    width: 1.5rem;
    height: 0.25rem;
    border-radius: 10vh;
    position: relative;
    background-color: #666;
}

.toggle-icon::before,
.toggle-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    
    background-color: currentColor;
    translate: 0 var(--bar--top, 0.5rem);
}

.toggle-icon::after {
    --bar--top: -0.5rem;
}

.nav_content_right {
    flex-grow: 999;
    margin: 0;
    padding: 0;
}

.nav .menu {
    display: grid;
    align-items: center;
    block-size: 100%;
}   

.nav .menu ul {
    list-style: none;
    display: grid;
    grid-auto-flow: column;
    justify-content: space-evenly;
    grid-auto-rows: 10%;
    overflow: hidden;
}

.nav menu ul li {
    block-size: 100%;
} 

.nav .menu ul li a {
    block-size: inherit;
    display: inline-grid;
    place-items: center;
    min-width: 2px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
} 

.nav .menu ul li a:focus-within {
    color: var(--accent-blue);
}
.nav .menu ul li a:hover:not(:focus) {
    border-bottom: 2px solid currentColor;
}
.nav .menu ul li a:hover .nav .menu ul li a:not(:focus,
:hover){
    color: var(--text-accent);
}

/* ---------------- POST CARDS ---------------- */

.post-card {
    background: white;
    border: 1px solid #1f1f24;
    color: black;
    border-radius: 10px;
}

.post-card h1 {
    text-align: center;
}

/* ---------------- LIVE BANNER ---------------- */

#liveBanner {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 14px 18px;
    flex-wrap: wrap;
}

.banner-item {
    display: flex;
    align-items: center;
    gap: 8px;

}

.cc {
    font-size: 20px;    

    background: linear-gradient(to bottom, #cfc09f 27%, #ffecb3 40%, #FFF 78%); 
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
 
	text-transform: uppercase;	
}

.label {
    font-size: 20px;
    position: relative;
    color: #FFF;
    font-family: 'Playfair Display', serif;
}

@keyframes shine-animation {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% -100%;
    }
}


/* ---------------- NEWS SLIDER ---------------- */

#cryptoNewsContainer {
    position: relative;
    display: flex;
    max-width: 60%;
    margin: 20px auto;
    overflow: hidden; /* IMPORTANT: hides other cards */
    
    box-shadow: 0 3px 6px -4px rgb(0 0 0 / 16%), 0 3px 6px rgb(0 0 0 / 23%);
    border-radius:20px;
    background: 
        linear-gradient(to right, #023047, #023047) padding-box, 
        linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C) border-box;
    border: 8px solid transparent;
    background-size: 600% 600%;
    animation: shiny_line 10s ease infinite;
}

@keyframes shiny_line {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}

#cryptoNews {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 20px;

    /* Hide scrollbar visually (optional) */
    -ms-overflow-style: none; 
    scrollbar-width: none;
}

#cryptoNews::-webkit-scrollbar {
    display: none;
}

.news-card {
    flex: 0 0 100%; /* One full card visible per screen */
    scroll-snap-align: start;  
    padding: 10px 0;
}

.news-btn {
    position: absolute;
    top: 22.5%;
    transform: translateY(-50%);
    border: none;
    background: rgba(255,255,255,0.12);
    color: white;
    padding: 8px 12px;
    font-size: 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    z-index: 10;
    transition: 0.2s;
}

.news-btn:hover {
    background: rgba(255, 215, 0, 0.4);
}

.news-btn:first-of-type {
    left: 10px;
}
.news-btn:last-of-type {
    right: 10px;
}

/* Mobile: smaller buttons */
@media (max-width: 600px) {
    .carousel-btn {
        font-size: 1.2rem;
        padding: 6px 10px;
    }

    .news-card h3 { font-size: .9rem; }
    .news-card p { font-size: .75rem; }
}

/* ---------------------------------- 
            MAIN CONTENT 
----------------------------------- */

.container {
    max-width: 60%;
    margin: auto;
    border-radius: 20px;
}

/* ----------------SIDEBAR CONTAINER ---------------- */

.custom-sidebar {
    margin-top: 11%;
    width: 250px;
    border-radius: 20px;
    min-height: 300px;
    padding-bottom: 0px;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;

    margin-left: 15px;

    box-shadow: 0 3px 6px -4px rgb(0 0 0 / 16%), 0 3px 6px rgb(0 0 0 / 23%);
    background: 
        linear-gradient(to right, #023047, #023047) padding-box, 
        linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C) border-box;
    border: 8px solid transparent;
    background-size: 600% 600%;
    animation: shiny_line 10s ease infinite;
}

/* ---------------------------
   SIDEBAR HEADER
---------------------------- */
.sidebar-header {
    padding: 0 20px 40px;
    margin-bottom: 0;
    border-bottom: 1px solid white;
    background-color: #023047;
    
}

.sidebar-header h2 {

    font-weight: 600;
    margin: 0;
    text-align: center;
    position: relative; 
    top: 40px;

    background: linear-gradient(to bottom, #cfc09f 27%, #ffecb3 40%, #FFF 78%); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
	font-family: 'Playfair Display', serif;
 
	text-transform: uppercase;	
}
/* ---------------- SIDEBAR MENU ---------------- */

.sidebar-menu {
    list-style: none;
    justify-content: center;
   
}

.sidebar-menu ul {
   list-style: none;
    padding: 0;
    margin: 0;
    background: #FFF;
    /*height: 100px;*/
    border-radius: 2px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    
    /* == */
    width: 250px;
  /* == */
}

.sidebar-menu li {
    position: relative;
  
}

/* -----------------------------------
   MAIN LINKS (CodePen styling)
----------------------------------- */
.sidebar-menu li a {
    display: block;
    text-decoration: none;
    padding-top: 15px;
    padding-left: 10%;
    /*text-align: center;
    border-right: 1px solid #E7E7E7;*/
    
    /* == */
    text-align: left;
    height: 36px;
    position: relative;
    border-bottom: 1px solid #EEE;;
}



/* Hover effect from CodePen */
.sidebar-menu li:hover > a {
    color: #e67e22;
}

/* CURRENT / ACTIVE PAGE */
.sidebar-menu li.current-menu-item > a,
.sidebar-menu li.current_page_item > a {
    position: relative;
    color: #e67e22;
    border:0;
    /*border-top: 4px solid #e67e22;
    border-bottom: 4px solid #e67e22;
    margin-top: -4px;*/
    box-shadow: 0 0 5px #DDD;
    -moz-box-shadow: 0 0 5px #DDD;
    -webkit-box-shadow: 0 0 5px #DDD;
    
    /* == */
    border-left: 4px solid #e67e22;
    border-right: 4px solid #e67e22;
    margin: 0 -4px;
    /* == */
}

.sidebar-menu li.current-menu-item:before,
.sidebar-menu li.current_page_item:before {
    content: "";
    position: absolute;
    /*top: 0;
    left: 45%;
    border-top: 5px solid #e67e22;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;*/
    
    /* == */
    top: 42%;
    left: 0;
    border-left: 5px solid #e67e22;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    /* == */
}

/* == */
.sidebar-menu li.current-menu-item:after,
.sidebar-menu li.current_page_item:after {
    content: "";
    position: absolute;
    top: 42%;
    right: 0;
    border-right: 5px solid #e67e22;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}


/* ----------------------------- 
            FOOTER 
-------------------------------- */
.footer {
    text-align: center;
    padding: 30px;
    background: linear-gradient(180deg, white, #023047);
}

/* ----------------------------
            CHART
------------------------------- */
.chart_legend {
    background-color: black;
}

/* ---------------------------
   RESPONSIVE
---------------------------- */
@media (max-width: 900px) {
    .custom-sidebar {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .custom-sidebar {
        position: fixed;
        transform: translateX(-100%);
        transition: 0.35s ease;
    }
    .custom-sidebar.active {
        transform: translateX(0);
    }
}

/* Optional: a mobile toggle button (if you want it later) */
.sidebar-toggle-btn {
    position: fixed;
    left: 15px;
    top: 15px;
    background: #1a1d23;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    z-index: 3000;
    display: none;
}
@media (max-width: 768px) {
    .sidebar-toggle-btn {
        display: block;
    }
}

/* ---------------------- MOBILE FIXES ---------------------- */

@media (max-width: 768px) {

    /* Sidebar becomes hidden slide-out */
    .custom-sidebar {
        transform: translateX(-260px);
        width: 260px;
    }

    body {
        margin-left: 0 !important;
    }

    /* Mobile menu button */
    .mobile-menu-toggle {
        position: fixed;
        top: 15px;
        left: 15px;
        font-size: 28px;
        padding: 10px 14px;
        background: #0d1117;
        border-radius: 8px;
        color: #ffd700;
        z-index: 10000;
    }

    .custom-sidebar.active {
        transform: translateX(0);
    }

    /* NAV becomes vertical and centered */
    .nav ul {
        flex-direction: column;
        gap: 12px;
        padding: 10px;
    }

    .nav a {
        display: block;
        text-align: center;
    }

    /* Header shrinks */
    .header {
        padding: 18px;
    }

    /* Banner stacks nicely */
    #liveBanner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .banner-item {
        justify-content: center;
    }

    /* News slider fits */
    .news-card {
        padding: 14px;
        font-size: 15px;
    }

    /* Container padding reduced */
    .container {
        padding: 15px;
    }
}

/*
*/
@-webkit-keyframes moveFromTop {
    from {
        opacity: 0;
        -webkit-transform: translateY(200%);
        -moz-transform: translateY(200%);
        -ms-transform: translateY(200%);
        -o-transform: translateY(200%);
        transform: translateY(200%);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0%);
        -moz-transform: translateY(0%);
        -ms-transform: translateY(0%);
        -o-transform: translateY(0%);
        transform: translateY(0%);
    }
}
@-webkit-keyframes moveFromLeft {
    from {
        opacity: 0;
        -webkit-transform: translateX(200%);
        -moz-transform: translateX(200%);
        -ms-transform: translateX(200%);
        -o-transform: translateX(200%);
        transform: translateX(200%);
    }
    to {
        opacity: 1;
        -webkit-transform: translateX(0%);
        -moz-transform: translateX(0%);
        -ms-transform: translateX(0%);
        -o-transform: translateX(0%);
        transform: translateX(0%);
    }
}
@-webkit-keyframes moveFromRight {
    from {
        opacity: 0;
        -webkit-transform: translateX(-200%);
        -moz-transform: translateX(-200%);
        -ms-transform: translateX(-200%);
        -o-transform: translateX(-200%);
        transform: translateX(-200%);
    }
    to {
        opacity: 1;
        -webkit-transform: translateX(0%);
        -moz-transform: translateX(0%);
        -ms-transform: translateX(0%);
        -o-transform: translateX(0%);
        transform: translateX(0%);
    }
}
