﻿body {
    margin: 0;
    font-family: 'YekanBakhFaNum05';
    /*background: linear-gradient(135deg,#0f172a,#1e293b) !important;*/
    /*background-color: #0f172a !important;*/ /* دارک */
    transition: .3s;
}

    body.dark {
        background: #0f172a !important;
        color: #f1f5f9 !important;
    }

    body.light {
        background: #f1f5f9 !important;
        color: #111 !important;
    }

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: +1;
}

h1 {
    margin: 0;
    font-size: 22px;
}

h3, h2 {
    font-family: 'YekanBakhFaNum06';
}

.controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .controls button {
        border: none;
        background: #1e293b;
        color: white;
        padding: 7px 10px;
        border-radius: 6px;
        cursor: pointer;
    }

        .controls button:hover {
            background: #334155;
        }

#search {
    padding: 8px 12px;
    border-radius: 10px;
    border: none;
    outline: none;
}

button {
    border: none;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
}

.section {
    padding: 30px 40px;
}

    .section h2 {
        margin-bottom: 15px;
    }

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
    gap: 15px;
}

#orgFavorites,
#publicFavorites {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.card {
    background: rgba(255,255,255,0.12);
    padding: 15px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: .25s;
    position: relative;
}

body.light .card {
    background: white;
}

.card:hover {
    transform: translateY(-6px) scale(1.02);
}

.card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.card i {
    font-size: 20px;
}

.favorite {
    position: absolute;
    top: 8px;
    left: 10px;
    cursor: pointer;
    opacity: .6;
}

    .favorite.active {
        color: gold;
        opacity: 1;
    }

.favorites-section {
    border: 1px solid rgba(10,186,181,0.15);
    border-radius: 16px;
    margin-bottom: 5px;
    padding: 10px;
    background: rgba(10,186,181,0.15);
    margin-left: 15px;
    margin-right: 15px;
}

    .favorites-section i {
        color: #0ABAB5;
        font-size: 20px;
    }

.tooltip {
    position: fixed;
    background: rgba(30,30,30,0.95);
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .15s ease, transform .15s ease;
    white-space: nowrap;
}

    .tooltip.show {
        opacity: 1;
        transform: translateY(0);
    }
