@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;200;300;400;500;600;700;800;900&display=swap');

@font-face {
    font-family: 'GraphikArabicBlack';
    src: url('/Fonts/GraphikArabicBlack.otf');
}

@font-face {
    font-family: 'GraphikArabicSuper';
    src: url('/Fonts/GraphikArabicSuper.otf');
}

@font-face {
    font-family: 'Shabnam-Bold';
    src: url('/Fonts/Shabnam-Bold-FD-WOL.woff');
}

/* مخفی کردن اسکرولبار در همه مرورگرها */
::-webkit-scrollbar {
    display: none;
}

html,
body {
    cursor: url('../Images/Normal.png') 10 5, auto;
}

.toggle-btn,
svg,
a,
button,
[role="button"],
.clickable {
    cursor: url('../Images/Pointer.png') 8 2, pointer;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
label,
blockquote {
    cursor: url('../Images/Normal.png') 10 5, auto;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* انیمیشن برای کارت‌ها */
@keyframes myAnim {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* استایل کلی بدنه */
body {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 16px;
    background-color: #121212;
    color: #F1F1F1;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* استایل هدر */
header {
    color: white;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100vw;
    height: 100px;
}

header .inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 10px;
}

.nobodychanlogo {
    width: 120px;
    height: auto;
    margin-top: 5px;
    vertical-align: middle;
}

.header-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: right;
    flex: 1;
}

header h1 {
    font-size: 1.8em;
    margin: 0;
    font-weight: bold;
    color: #ff2a8a;
    text-align: right;
    font-family: 'GraphikArabicSuper', 'Vazirmatn', sans-serif;
}

header p {
    font-size: 15px;
    margin: 5px 0 0;
    color: #ecf0f1;
    text-align: right;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ff2a8a;
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-left: 50px;
}

.nav-menu a {
    text-decoration: none;
    font-size: clamp(1rem, 4vw, 1.1rem);
    color: #ecf0f1;
    font-family: 'Vazirmatn', sans-serif;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
    color: #ff2a8a;
}

/* استایل فوتر */
.footer {
    background-color: #121212;
    color: #ffffff;
    padding: 20px;
    z-index: 10;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin: 0 10px;
}

.footer-about {
    flex: 2;
    min-width: 250px;
    text-align: right;
}

.footer-about h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-family: 'GraphikArabicSuper';
}

.footer-about .highlight {
    color: #ff2a8a;
}

.footer-about p {
    font-size: 14px;
    color: #ccc;
    opacity: 70%;
    margin-bottom: 15px;
    line-height: 1.8;
    font-weight: 600;
}

.social-icons {
    display: flex;
    font-size: 20px;
    color: white;
}

.social-icons a {
    margin-left: 10px;
    cursor: pointer;
    transition: color 0.3s;
}

.social-icons a svg path {
    opacity: 70%;
}

.social-icons a:hover svg path {
    fill: #ff2a8a;
    opacity: 100%;
    transition: all 0.5s ease;
}

.footer-bottom {
    text-align: center;
    color: #aaa;
    font-size: 14px;
    margin-top: 5px;
    border-top: 1px solid #8b797981;
    padding-top: 15px;
    direction: ltr;
}

/* استایل بخش انیمه‌ها */
.anime-list {
    padding: 20px;
    text-align: center;
}

.anime-list h2 {
    font-size: clamp(1.5rem, 5vw, 1.8rem);
    margin-bottom: 20px;
    color: #ffffff;
}

/* استایل ورودی جستجو */
.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 25px;
    justify-content: center;
    display: flex;
    align-items: center;
}

.search-container input {
    width: 100%;
    padding: 10px 35px 10px 15px;
    font-size: clamp(0.9rem, 4vw, 1rem);
    font-family: 'Vazirmatn', sans-serif;
    border: 2px solid #ff2a8a;
    border-radius: 20px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #181818;
    color: #F1F1F1;
    cursor: url('../Images/TextCursor.png') 6 10, text;
}

.search-container input:focus {
    border-color: #d81b60;
    box-shadow: 0 0 6px rgba(255, 42, 138, 0.3);
}

.search-container input::placeholder {
    color: #999;
}

.search-container .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #ff2a8a;
}

/* گالری انیمه‌ها با فلکس */
.anime-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 0 10px;
}

/* کارت هر انیمه */
.anime-card {
    background: #181818;
    border-radius: 15px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    text-decoration: none;
    animation: myAnim 0.5s ease-out forwards;
    max-width: calc(30% - 12px);
    cursor: url('../Images/Pointer.png') 8 2, pointer;
}

.anime-card:hover {
    transform: translateY(-4px);
}

.anime-card img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 15px 15px 0 0;
    cursor: url('../Images/Pointer.png') 8 2, pointer;
}

.anime-card h3 {
    font-size: clamp(1rem, 3.5vw, 1.1rem);
    text-align: center;
    margin: 4px 0;
    margin-top: 20px;
    color: #ff2a8a;
    padding: 0 20px;
    font-weight: 900;
    cursor: url('../Images/Pointer.png') 8 2, pointer;
    font-family: 'Vazirmatn-Normal';
}

.anime-card p {
    font-size: clamp(0.7rem, 3vw, 0.4rem);
    color: #ffffff;
    opacity: 70%;
    padding: 0 5px;
    margin: 0 0 5px;
    margin-bottom: 8px;
    font-weight: 300;
    line-height: 1.8;
    cursor: url('../Images/Pointer.png') 8 2, pointer;
}

/* پیام بدون نتیجه */
.no-results {
    font-size: clamp(1rem, 4vw, 1.1rem);
    color: #ff2a8a;
    text-align: center;
    margin-top: 20px;
}

/* پیام خطا */
.error {
    font-size: clamp(1rem, 4vw, 1.1rem);
    color: #d32f2f;
    text-align: center;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        /* زیر هدر */
        left: 0;
        width: 100%;
        background-color: #181818;
        padding: 1rem 0;
        z-index: 1000;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-right: 0;
        margin-left: 0;
        padding: 0;
        list-style: none;
    }

    .nav-menu a {
        font-size: 1rem;
    }

    .anime-card {
        flex: 0 0 100%;
        max-width: 40%;
    }
}

@media (max-width: 480px) {

    header {
        width: 100vw;
        height: 80px;
    }

    header .inner {
        margin: 0 5px;
    }

    .nobodychanlogo {
        width: 90px;
        height: auto;
    }

    header h1 {
        font-size: 1.2em;
        margin: 0;
    }

    header p {
        margin: 5px 0 0;
        font-size: 0.6em;
    }


    .footer-about h3 {
        font-size: 19px;
    }

    .footer-about p {
        font-size: 13px;
    }

    .footer-bottom {
        font-size: 12px;
    }

    /* انیمه‌ها */
    .anime-grid {
        gap: 30px;
    }

    .anime-card {
        flex: 0 0 100%;
        /* عرض 100% */
        max-width: 80%;
    }

    .anime-card img {
        height: 400px;
        width: 100%;
    }

    .anime-card h3 {
        font-size: 0.9rem;
    }

    .anime-card p {
        font-size: 0.7rem;
    }

    /* جستجو */
    .search-container {
        max-width: 90%;
    }
}

/* کوچکترین حالت ممکن */
@media (max-width: 320px) {
    header {
        width: 100vw;
        height: 80px;
    }

    header .inner {
        margin: 0 5px;
    }

    .nobodychanlogo {
        width: 70px;
        height: auto;
    }

    header h1 {
        font-size: 1em;
        margin: 0;
    }

    header p {
        margin: 5px 0 0;
        font-size: 0.5em;
    }

    main {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }

    .anime-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* جستجو */
    .search-container {
        max-width: 100%;
    }

    .footer-about h3 {
        font-size: 18px;
    }

    .footer-about p {
        font-size: 12px;
    }

    .footer-bottom {
        font-size: 10px;
    }
}