* {
    box-sizing: border-box;
    font-family: "Vazirmatn";
}
@font-face{
    font-family: "Vazirmatn";
    src: url("./Vazirmatn.woff2");
}
:root {
    color-scheme: dark;
}

body {
    margin: 0;
    background: #0f1117;
    color: #fff;
    font-family: "Vazirmatn";
}

a {
    color: #9b86ff;
}

.navbar {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 30px;
    border-bottom: 1px solid #292d38;
    background: #14161d;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #9b86ff;
}

.navbar nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.navbar a {
    color: #ddd;
    text-decoration: none;
}

.page-container,
.profile-container,
.image-detail-container {
    max-width: 1300px;
    margin: auto;
    padding: 40px 20px;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-box,
.upload-box,
.image-detail-info {
    width: 100%;
    max-width: 700px;
    margin: auto;
    background: #191c25;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.auth-box {
    max-width: 420px;
}

.auth-box h1,
.upload-box h1 {
    margin-top: 0;
    margin-bottom: 30px;
}

input,
textarea,
select {
    width: 100%;
    padding: 14px;
    margin-bottom: 18px;
    border: 1px solid #303542;
    border-radius: 10px;
    background: #101218;
    color: white;
    font-family: inherit;
    font-size: 15px;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
}

button {
    font-family: inherit;
}

.auth-box button,
.upload-box button,
.search-form button {
    border: none;
    border-radius: 10px;
    background: #7c5cff;
    color: white;
    cursor: pointer;
    font-size: 16px;
}
.auth-box button{
    margin-top: 20px;
}
.auth-box button,
.upload-box button {
    width: 100%;
    padding: 14px;
}

.error,
.success {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.error {
    background: #49232a;
    color: #ff9da8;
}

.success {
    background: #1d4933;
    color: #8ff0b3;
}

.auth-box p {
    text-align: center;
    color: #aaa;
    margin-top: 20px;
}

.hero {
    text-align: center;
    padding: 20px 20px 50px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.hero p {
    color: #aaa;
    font-size: 18px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 15px;
    background: #191c25;
    border-radius: 14px;
}

.search-form input,
.search-form select {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.search-form button {
    padding: 14px 22px;
    white-space: nowrap;
}

.clear-search {
    white-space: nowrap;
    text-decoration: none;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.image-card {
    overflow: hidden;
    background: #191c25;
    border-radius: 16px;
    transition: .3s;
}

.image-card:hover {
    transform: translateY(-5px);
}

.image-card > a {
    display: block;
}

.image-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.image-info {
    padding: 16px;
}

.image-info h3 {
    margin-top: 0;
}

.creator {
    color: #999;
    font-size: 14px;
}

.model {
    color: #9b86ff;
    font-size: 14px;
}

.image-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.like-button,
.details-button {
    border: none;
    border-radius: 8px;
    padding: 9px 12px;
    background: #282d3a;
    color: white;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.like-button.liked {
    background: #57252d;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
    background: #191c25;
    border-radius: 18px;
    margin-bottom: 25px;
}

.avatar,
.creator-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #7c5cff;
    font-weight: bold;
}

.avatar {
    width: 90px;
    height: 90px;
    font-size: 40px;
}

.creator-avatar {
    width: 48px;
    height: 48px;
    font-size: 20px;
}

.profile-info h1 {
    margin: 0 0 8px;
}

.profile-info p {
    color: #aaa;
}

.profile-info small,
.creator-info small {
    color: #888;
    display: block;
}

.profile-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.stat-box {
    flex: 1;
    padding: 25px;
    text-align: center;
    background: #191c25;
    border-radius: 15px;
}

.stat-box strong {
    display: block;
    font-size: 30px;
    color: #9b86ff;
}

.stat-box span {
    color: #aaa;
}

.empty-state {
    padding: 50px;
    text-align: center;
    background: #191c25;
    border-radius: 15px;
    color: #aaa;
}

.image-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
    gap: 35px;
    align-items: start;
}

.image-preview {
    overflow: hidden;
    background: #191c25;
    border-radius: 18px;
}

.image-preview img {
    width: 100%;
    max-height: 800px;
    object-fit: contain;
    display: block;
}

.image-detail-info {
    max-width: none;
}

.image-detail-info h1 {
    margin-top: 0;
}

.creator-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid #303542;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #303542;
}

.detail-item span {
    color: #999;
}

.detail-item strong {
    color: #b0a3ff;
    text-align: left;
}

.prompt-box,
.description {
    margin-top: 25px;
    padding: 20px;
    background: #101218;
    border-radius: 12px;
}

.prompt-box h3,
.description h3 {
    margin-top: 0;
}

.prompt-box p,
.description p {
    color: #bbb;
    line-height: 1.9;
    white-space: pre-wrap;
    word-break: break-word;
}

.detail-actions {
    margin-top: 25px;
}

.detail-like-button,
.login-like-button {
    width: 100%;
    padding: 14px;
    text-align: center;
    font-size: 16px;
}

.login-like-button {
    display: block;
    background: #282d3a;
    color: white;
    text-decoration: none;
    border-radius: 10px;
}

@media (max-width: 700px) {
    .navbar {
        flex-direction: column;
        justify-content: center;
    }

    .navbar nav {
        justify-content: center;
    }

    .hero h1 {
        font-size: 30px;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form input,
    .search-form select,
    .search-form button,
    .clear-search {
        width: 100%;
    }

    .image-detail {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats {
        gap: 10px;
    }

    .stat-box {
        padding: 18px 10px;
    }
}
.forgot-password {

    display: block;

    margin: -5px 0 18px;

    color: #9b86ff;

    text-decoration: none;

    font-size: 14px;

}


.forgot-password:hover {

    text-decoration: underline;

}