@font-face {
    font-family: 'Lalezar';
    src: url(../fonts/Lalezar-Regular.otf);
}
@font-face {
    font-family: 'Btitr';
    src: url(../fonts/BTitrBold_0.ttf);
}
@font-face {
    font-family: 'iransans';
    src: url(../fonts/Iranian-Sans.ttf);
}
@font-face {
    font-family: 'Mitra';
    src: url(../fonts/Far_Mitra.ttf);
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    transition-duration: 0.5s;
    font-family: 'Mitra', sans-serif;
}

header {
    background-color: silver;
    color: black;
    padding: 10px 0;
    font-family: iransans;
}

header h1 {
    width: 80%;
    margin-left: 18%;
    text-align: center;
    text-align: right;
    margin-right: 20px;
}

nav {
    text-align: center;
}

nav ul {
    list-style: none;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: black;
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline;
}

nav ul li button {
    background-color: transparent;
    border: none;
    color: black;
    cursor: pointer;
    font-size: 1em;
    padding: 10px 15px;
    transition: background-color 0.3s;
}

nav ul li button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}


.dark-mode .site-header {
    background-color: rgb(62, 62, 62);
    color: #e0e0e0;
}

.dark-mode .site-header nav ul li a {
    color: #e0e0e0;
}
.dark-mode .site-header nav ul li button {
    color: #e0e0e0;
}
.profile-pic {
    all: unset;
    background-color: white;
    z-index: 1000;
}
.profile-pic svg {
    background-color: white;
    position: absolute;
    height: 50px;
    aspect-ratio: 1 / 1;
    vertical-align: middle;
    left: 10px;
    top: 10px;
    object-fit: cover;
}

.profile-pic img {
    background-color: white;
    padding: 1px;
    position: absolute;
    height: 50px;
    aspect-ratio: 1 / 1;
    vertical-align: middle;
    left: 10px;
    top: 10px;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
}

.profile-settings {
    position: fixed;
    inset: 0;
    z-index: 10000;
    color: black;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px) saturate(120%);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.98);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(.4,2,.6,1);
}
.profile-settings.show {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}
.profile-settings img {
    width: 160px;
    height: 160px;
    border: 3px solid #fff;
    filter: drop-shadow(0px 0px 16px #fff);
    border-radius: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 20px;
    background: #f8f8f8;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.10);
    object-fit: cover;
}
.prof {
    position: relative;
    background: rgba(245, 245, 245, 0.97);
    width: 100%;
    max-width: 400px;
    min-width: 260px;
    min-height: 380px;
    text-align: center;
    border-radius: 18px;
    padding: 32px 20px 80px 20px;
    padding-bottom: 120px; /* فضای کافی برای دکمه خروج */
    box-shadow: 0px 8px 48px 0px rgba(80,80,80,0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.prof a {
    position: absolute;
    color: white;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
    background: linear-gradient(90deg, #888, #aaa);
    padding: 12px 32px;
    border-radius: 100px;
    border: 2px solid #f5f5f5;
    margin-top: 30px;
    font-weight: bold;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.10);
    transition: background 0.2s;
}
.prof a:hover {
    background: linear-gradient(90deg, #666, #888) !important;
}
.prof button {
    all: unset;
    position: absolute;
    right: 18px;
    top: 18px;
    color: #888;
    font-size: 32px;
    cursor: pointer;
    transition: color 0.2s;
}
.prof button:hover {
    color: #555;
}
.prof p {
    color: #888;
    margin-bottom: 0;
    font-size: 1.1em;
}
.prof h2,
.prof h3 {
    background-color: rgba(128, 128, 128, 0.12);
    box-shadow: 0px 0px 10px #f5f5f5;
    color: #444;
    border-radius: 100px;
    padding: 8px 24px;
    margin: 1px 0;
    font-weight: 600;
}
#logout {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    max-width: 90vw;
    bottom: 40px;
    background: linear-gradient(90deg, #c0392b, #e74c3c);
    color: #fff !important;
    border: none;
    font-weight: bold;
    box-shadow: 0 2px 12px 0 rgba(200,50,50,0.10);
    padding: 14px 0;
    border-radius: 100px;
    text-align: center;
    z-index: 11000;
    font-size: 1.1em;
    transition: background 0.2s;
}
#logout:hover {
    background: linear-gradient(90deg, #a93226, #c0392b) !important;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 600px) {
    .prof {
        max-width: 95vw;
        min-width: 0;
        padding: 18px 5vw 80px 5vw;
    }
    .profile-settings img {
        width: 110px;
        height: 110px;
    }
    .logo img {
        height: 60px !important;
    }
    .logo {
        height: 60px !important;
    }
}

.dark-mode .prof {
    background: rgba(30, 30, 30, 0.97);
    color: #e0e0e0;
}
.dark-mode .prof a {
    background: linear-gradient(90deg, #555, #777);
    color: #e0e0e0;
}
.dark-mode .prof a:hover {
    background: linear-gradient(90deg, #333, #555) !important;
}
.dark-mode .prof p {
    color: #bbb;
}
.dark-mode .prof h2,
.dark-mode .prof h3 {
    background-color: rgba(80, 80, 80, 0.12);
    color: #ddd;
}
.logo img {
    position: absolute;
    right: 0;
    height: 80px;
}
.logo {
    height: 80px;
    position: relative;
    border-bottom: gray 2px solid;
    z-index: 100;
    margin-left: 100%;
}