@font-face {
    font-family: Vazir;
    src: url("../fonts/Vazir.ttf");
}

body {
    margin: 0;
    font-family: Vazir, Arial, sans-serif;
    background: #f2f2f2;
}

/* بنر اصلی */
header {
    background: #555555;
    color: white;
    text-align: center;
    padding: 8px 15px;
    border-radius: 0 0 25px 25px;
}

header h1 {
    margin: 5px 0;
    font-size: 32px;
    text-shadow: 0 2px 5px #000;
}

#search {
    width: 90%;
    max-width: 320px;
    padding: 12px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
}


/* دسته بندی ها */
.categories {
    padding: 20px;
}

.categories h2 {
    color: #111;
}

.category {
    background: white;
    color: #111;
    padding: 15px;
    margin: 10px 0;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    transition: 0.3s ease;

    animation: categoryShow 0.6s ease forwards;
    opacity: 0;
    transform: translateY(25px);
}

.category:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.category:nth-child(2){
    animation-delay:0.1s;
}

.category:nth-child(3){
    animation-delay:0.2s;
}

.category:nth-child(4){
    animation-delay:0.3s;
}

.category:nth-child(5){
    animation-delay:0.4s;
}


@keyframes categoryShow {
    from {
        opacity:0;
        transform:translateY(25px);
    }

    to {
        opacity:1;
        transform:translateY(0);
    }
}


/* کارت لوگوها */
main {
    padding: 20px;
}

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

.card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 18px;
    border: 1px solid #222;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: 0.3s ease;

    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.card:nth-child(1){
    animation-delay:0.1s;
}

.card:nth-child(2){
    animation-delay:0.2s;
}

.card:nth-child(3){
    animation-delay:0.3s;
}


@keyframes fadeUp {
    from {
        opacity:0;
        transform:translateY(30px);
    }

    to {
        opacity:1;
        transform:translateY(0);
    }
}


.card h2 {
    margin:0;
    color:#111;
}

.card p {
    color:#666;
}


/* اندازه لوگوی کوچک کارت */
.logo {
    width:35px;
    height:35px;
    object-fit:contain;
    flex-shrink:0;
}


/* صفحه لوگو */
.logo-page {
    text-align:center;
    padding:30px;
}

.big-logo {
    width:220px;
    height:220px;
    object-fit:contain;
    margin:20px auto;
}


.download {
    display:block;
    margin:20px auto;
    background:#111;
    color:white;
    padding:15px 40px;
    border-radius:20px;
    font-size:18px;
}


.description {
    color:#555;
    font-size:18px;
}


.back {
    display:inline-block;
    margin-top:20px;
    text-decoration:none;
    color:#111;
}

#no-result{
    display:none;
    background:white;
    padding:15px;
    margin:20px;
    border-radius:15px;
    text-align:center;
    color:#444;
    box-shadow:0 5px 15px rgba(0,0,0,0.15);
}


#topBtn{
    position:fixed;
    bottom:20px;
    right:20px;

    border:none;
    background:none;

    opacity:0;
    transform:translateY(100px);

    transition:0.4s ease;
}

#topBtn.show{
    opacity:1;
    transform:translateY(0);
}

#topBtn img{
    width:50px;
    height:50px;
    object-fit:contain;
}
