/*---------------------   nav bar    ----------------------*/

:root {
    --neutral-bg: 15, 16, 20;
    --neutral-text: 240, 240, 240;
    --neutral-card: 25, 28, 36;
    --accent-pink: 201, 65, 149;
    --accent-blue: 10, 80, 101;
    --accent-red: 229, 9, 20;
    --gradient-primary: linear-gradient(45deg, rgb(var(--accent-pink)), rgb(var(--accent-blue)), red);
    --gradient-secondary: linear-gradient(135deg, rgb(var(--accent-blue)), rgb(var(--accent-pink)));

    --card-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    --animation-speed: 0.3s;
}
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(var(--primary-color), 0.5);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, rgb(var(--secondary-color)), rgb(var(--secondary-color)));
    border-radius: 10px;
}

header {
    height: 15vh;
    width: 100%;
    position: relative;
    z-index: 1000;
}

.nav_bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 12vh;
    width: 100%;
    padding: 0 2em;
    box-sizing: border-box;
    transition: all 0.3s ease;
    position: fixed;
    left: 0;
    top: 0;
    background-color: transparent;
    z-index: 1000;
    border-bottom: 0px solid rgba(var(--secondary-color), 0.2);

}

.nav_bar.sticky_head {
    height: 10vh;
    background-color: rgba(var(--primary-color), 1) !important;
    border-bottom-width: 1px;
}

.nav_bar .header_logo, footer .header_logo {


    font-size: 2.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    background-size: 300% 300%;
    animation: gradientAnimation 4s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(var(--accent-pink), 0.3);
    letter-spacing: -1px;
    position: relative;
    outline: none;
}

.nav_bar .header_logo>div {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    flex: 1;
}

.nav_links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5em;
    transition: all 0.3s ease;
}
.nav_links a, .nav_links button:not(.mobile-menu-button) {
    display: flex;
}
.nav_links a, .nav_links button , .homenav{
    text-decoration: none;
    font-size: 1em;
    font-family: 'myfontt';
    color: rgb(var(--text-color));
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
    position: relative;
    width: fit-content;
    white-space: nowrap;
    gap: 0.5em;
    align-items: center;
    justify-content: center;
    padding: 0.5em 0;
}
.nav_bar > .homenav{
    padding-left: 1rem;
    display: none;
}
.nav_links a svg, .nav_links button svg {
    width: 1em;
    height: 1em;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.left_nav_links a::before, .left_nav_links button::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0px;
    width: 0%;
    transition: all 0.3s ease;
    height: 2px;
    background-color: rgba(var(--secondary-color), 1);
}

.left_nav_links a:hover::before, .left_nav_links button:hover::before {
    width: 100%;
}
.manganavs:hover{
    color: rgb(var(--text-color)) !important;
}

.left_nav_links {
    justify-content: flex-start;
    flex: 1;
    margin-left: 2em;
}

.right_nav_links {
    justify-content: flex-end;
    gap: 1.5em;
    margin-left: auto;
}

.right_nav_links a {
    padding: 0.5em;
}

.right_nav_links svg {
    width: 1.2em;
    aspect-ratio: 1;
    fill: rgb(var(--text-color));
    transition: all 0.2s ease;
}

.right_nav_links a:hover svg {
    transform: scale(1.1);
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .options {
    display: none;
    position: absolute;
    background-color: rgba(var(--background-color), 0.98);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 10;
    border-radius: 8px;
    padding: 0.5em 0;
    top: 100%;
    left: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.dropdown .options a {
    color: rgb(var(--text-color));
    padding: 0.5em 1em;
    text-decoration: none;
    display: block;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
}

.dropdown .options a:hover {
    background-color: rgba(var(--secondary-color), 0.1);
    padding-left: 1.2em;
}

.dropdown:hover .options {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown>a {
    display: flex;
    align-items: center;
}

.dropdown>a::after {
    content: '›';
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 0.3em;
    font-size: 1.2em;
}

.dropdown:hover>a::after {
    transform: rotate(90deg);
}

/* Mobile menu button - hidden by default */



.mobile-menu-button {
    display: none;

}
.mobile-menu-button svg{
    width: 1.5em !important;
    height: 1.5em !important;
}
.search_bar_header_place_holder{
    position: relative;
    height: 40px;
    width: 40px;
}
.search_bar_header{


    background: rgb(var(--secondary-color));
    height: 40px;
    border-radius: 40px;
    padding: 5px;
    display: flex;
    align-items: center;
    position: absolute;
    transform: translateX(-80%);
}
.search_bar_header:hover > input ,.search_bar_header > input:focus{
    width: 240px;
}

.search_bar_header:hover > button {
  background: white !important;
  color : #2f3640 !important;
}
.search_bar_header:hover > button svg{
  fill : #2f3640 !important;

}
.search_bar_header input{
    border:none;
    background: none;
    outline:none;
    float:left;
    padding: 0;
    color: white;
    font-size: 12px;
    transition: 0.4s;
    line-height: 20px;
    width: 0px;
}
.search_bar_header button{
    color: white;
    float: right;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgb(var(--secondary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.4s;
}
/*
.search_bar_header:hover input, .search_bar_header input:focus{
    max-width: none;
    width: 10vw;
    padding: 0 0.5em;
}
.search_bar_header button:hover svg, .search_bar_header button svg:hover{
    fill: rgb(var(--text-color)) !important;
}*/
.unreded_episodes_count{
    background-color: rgba(var(--secondary-color), 1);
    padding: 0.4em;
    border: 0;
    position: absolute;
    top: 50%;
    right: -10%;
    border-radius: 100%;
    font-size: 0.6em;
    color: rgb(var(--text-color)) !important;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Responsive styles */
@media (max-width: 1240px) {


}

@media (max-width: 1024px) {
    .nav_bar {
        padding: 0 1.5em;
    }
    
    .left_nav_links {
        margin-left: 1em;
        gap: 1em;
    }
    
    .right_nav_links {
        gap: 1em;
    }
    
}

@media (max-width: 1120px) {

    
    header {
        height: 10vh;
    }
    .nav_bar{
        height: 10vh;
    }
    
    .left_nav_links {
        visibility: hidden;
        position: absolute;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 40%;
        order: 3;
        margin: 0;
        gap: 0.5em;
        top: 8vh;
        right: 1em;
        background-color: rgba(var(--primary-color), 0.9);
        padding: 0.5em 1em;
        border-radius: 0.5em;
        max-width: 140px;
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
        transition: all 0.3s ease;
        z-index: 1000;
        pointer-events: none;
    }
    
    .left_nav_links.active {
        visibility: visible;
        opacity: 1;
        transform: scale(1) translateY(0px);
        pointer-events: auto;
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropdown .options {
        position: static;
        display: none;
        box-shadow: none;
        background-color: transparent;
        padding: 0;
        opacity: 1;
        transform: none;
        min-width: auto;
    }
    
    .dropdown:hover .options {
        display: none;
    }
    
    .dropdown.active .options {
        display: flex;
        flex-direction: column;
        padding-left: 1em;
        margin-top: 0.5em;
    }
    .dropdown>a{
        text-align: center !important;
        align-items: center;
        margin: 0 auto;
    }
    .dropdown>a::after {
        display: none;
    }
    
    .dropdown.active>a::after {
        transform: rotate(90deg);
    }
    
    .mobile-menu-button {
        display: flex;
        cursor: pointer;
        width: 1.5em !important;
        height: 1.5em !important;
        padding: 0;
    
    }
    
    .right_nav_links {
        order: 2;
    }
    .nav_bar > .homenav{
        display: block;
    }
}

@media (max-width: 480px) {
    .nav_bar {
        padding: 0.75em;
    }
    
    .right_nav_links {
        gap: 0.75em;
    }
    
    .right_nav_links a {
        padding: 0.25em;
    }
    
    .right_nav_links svg {
        width: 1.1em;
    }
}

@media(hover:none){
    .search_bar_header_place_holder{
        margin: 0;
        padding: 0;
        width: 1.5em;
        height: 1.5em;

    }
    .search_bar_header input{
        display: none;
    }
    .search_bar_header{
        background-color: transparent;
        padding: 0;
        margin: 0;
        gap: 0;
        column-gap: 0;
        width: 1.5em;
        height: 1.5em;
    }
    .search_bar_header button{
        padding: 0;
        background-color: transparent;

    }
    .search_bar_header{
            transform: translateX(0%);

    }
}



.sticky_head {
    animation: headerSticky 0.3s ease-out;
}

.anime_link{
    color: rgb(201, 65, 149) !important;
}
.anime_link::before{
    background-color: rgb(201, 65, 149) !important;
}

.manga_link{
    color: rgb(15, 108, 136) !important;
}
.manga_link::before{
    background-color: rgb(15, 108, 136) !important;
}

.show_link{
    color: rgb(229, 9, 20) !important;
}
.show_link::before{
    background-color: rgb(229, 9, 20) !important;
}















footer {
    width: 100%;
    background-color: rgba(var(--primary-color), 0.95);
    color: rgb(var(--text-color));
    padding: 1em;
    margin-top: 5vh;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    border-top: 1px solid rgba(var(--secondary-color), 0.2);
    justify-content: space-between;
}

.footer_section {
    min-width: 150px;
    display: flex;
    gap: 1em;
    align-items: center;
    justify-content: center;
}

.footer_section ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em; 
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer_section ul li a {
    color: rgba(var(--text-color), 0.8);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.footer_section ul li a:hover {
    color: rgba(var(--secondary-color), 1);
    transform: translateY(-3px);
}

.footer_left {
    display: flex;
    flex-direction: row;
    gap: 1em;
    margin-left: 5rem;
}
.footer_right{
    margin-right: 5rem;

}


.footer_left .header_logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 10vh;
}

.footer_left>div {
    display: flex;
    gap: 1em;
    align-items: end;
}

.footer_left>div a {
    width: 2em;
    height: 2em;
    padding: 0.4em;
    border-radius: 50%;
    background-color: rgba(var(--text-color), 0.1);
    transition: all 0.2s ease;
    margin: 0;
    box-sizing: border-box;
}

.footer_left>div a:hover {
    background-color: rgba(var(--secondary-color), 0.3);
    transform: translateY(-3px);
}

.footer_left>div a img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Content type links styling */
.footer_middle ul li a {
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

/* Right section links */
.footer_right ul li{
    white-space: nowrap;
}
.footer_right ul li a {
    font-size: 0.9em;
}

@media (max-width: 1708px) {
    footer{
        justify-content: space-around;
    }
    .footer_left{
        margin-left: 0rem;
    }
    .footer_right{
        margin-right: 0rem;
    }
}
@media (max-width: 1090px) {
.footer_section ul{
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .footer_section ul li{
        white-space: wrap;
    }

}
/* Responsive adjustments */
@media (max-width: 768px) {
    footer {
        padding: 1.5em 5%;
        gap: 1.5em;
    }

    .footer_section {
        min-width: 120px;
    }

    .footer_left {
        flex-direction: row;
        align-items: center;
        gap: 1.5em;
    }

    .footer_left .header_logo {
        margin-bottom: 0;
    }

    .footer_section ul {
        gap: 0.6em 1em;
    }

}
@media (max-width: 580px) {
    .footer_section{
        width: 100% !important;
        padding: 0;
        margin: 0;
        margin: 0 auto;
    }
    .footer_section ul{
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .footer_section ul li{
        white-space: wrap;
    }
}
@media (max-width: 480px) {
    footer {
        flex-direction: column;
        padding: 1.5em;
        gap: 0.5em;
    }

    .footer_section {
        width: 100%;
    }

    .footer_left {
        flex-direction: column;
        align-items: center;
        gap: 1em;
        justify-content: center;
    }

    .footer_section ul {
        flex-direction: row;
        flex-wrap: wrap;
    }
}





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