
@font-face {
    font-family: "Vazirmatn";
    src: url("./fonts/Vazirmatn-Regular.woff2") format("woff2");
}

body {
    margin: 0;
    font-family: "Vazirmatn", system-ui, sans-serif;
    background: #0b0f14;
    color: #e7e9ea;
}

/* container */
.container {
    max-width: 600px;
    margin: auto;
    padding: 10px;
}

/* header */
.header {
    padding: 12px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid #1f2a37;
}

/* MINI COMPOSER */
.mini-composer {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-bottom: 1px solid #1f2a37;
}

.mini-composer input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid #2f3336;
    background: #11161c;
    color: white;
    outline: none;
    font-family: inherit;
}

.mini-composer input:focus {
    border-color: #1d9bf0;
}

.mini-composer button {
    padding: 10px 14px;
    border-radius: 999px;
    border: none;
    background: #1d9bf0;
    color: white;
    cursor: pointer;
    font-family: inherit;
}

/* POST */
.post {
    padding: 14px;
    border-bottom: 1px solid #1f2a37;
}

/* USER ROW (Twitter style) */
.user-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

/* username */
.user {
    font-weight: 600;
    color: #4fc3f7;
}

/* time */
.time {
    font-size: 12px;
    color: #71767b;
}

/* content */
.content {
    margin: 6px 0 10px;
    line-height: 1.5;
}

/* actions */
.actions {
    display: flex;
    gap: 24px;
    color: #71767b;
    font-size: 14px;
}

/* action */
.action {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* LIKE */
.like {
    color: #71767b;
}

.like:hover {
    color: #1d9bf0;
}

.like.liked {
    color: #f91880;
}

/* DELETE */
.delete:hover {
    color: #ff4d4d;
}

/* TOPBAR */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #1f2a37;
    background: rgba(11, 15, 20, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    position: relative;
}

/* LOGO */
.logo {
    font-size: 18px;
    font-weight: 700;
    color: #e7e9ea;
}

/* HAMBURGER */
.hamburger {
    font-size: 26px;
    cursor: pointer;
    color: #e7e9ea;
    display: none;
}

/* MENU DESKTOP */
.menu {
    display: flex;
    gap: 12px;
}

.menu a {
    color: #71767b;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
}

/* MOBILE */
@media (max-width: 600px) {

    .hamburger {
        display: block;
    }

    /* خیلی مهم: پیش‌فرض مخفی */
    .menu {
        display: none;
        position: absolute;
        top: 60px;
        right: 12px;
        flex-direction: column;
        background: #0b0f14;
        border: 1px solid #1f2a37;
        padding: 10px;
        border-radius: 12px;
        min-width: 160px;
    }

    /* وقتی باز شد */
    .menu.active {
        display: flex !important;
    }
}


/* LOGIN WRAPPER */
.login-wrapper {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CARD */
.login-card {
    width: 320px;
    background: #11161c;
    border: 1px solid #1f2a37;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

/* TITLE */
.login-card h2 {
    margin-bottom: 15px;
    font-size: 18px;
}

/* INPUTS */
.login-card input {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid #2f3336;
    background: #0b0f14;
    color: white;
    outline: none;
    font-family: inherit;
}

.login-card input:focus {
    border-color: #1d9bf0;
}

/* BUTTON */
.login-card button {
    width: 100%;
    padding: 10px;
    border-radius: 999px;
    border: none;
    background: #1d9bf0;
    color: white;
    cursor: pointer;
    font-family: inherit;
    transition: 0.2s;
}

.login-card button:hover {
    background: #1a8cd8;
}

/* ERROR */
.error {
    background: #2a0f14;
    color: #ff4d4d;
    padding: 8px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 13px;
}




/* جلوگیری از بیرون زدن input */
* {
    box-sizing: border-box;
}

.login-card {
    width: 320px;
    background: #11161c;
    border: 1px solid #1f2a37;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    overflow: hidden;
}

/* مهم‌ترین fix */
.login-card input,
.login-card button {
    width: 100%;
    max-width: 100%;
    display: block;
}

.hint {
    font-size: 12px;
    color: #71767b;
    margin: 8px 0 4px;
}

.signup-link {
    margin-top: 10px;
    font-size: 12px;
    color: #71767b;
}

.signup-link a {
    color: #1d9bf0;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}


/* HERO SECTION */
.hero {
    padding: 60px 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.hero-content p {
    color: #71767b;
    max-width: 500px;
    margin: auto;
    line-height: 1.7;
}

/* BUTTONS */
.hero-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    color: white;
    border: 1px solid #1f2a37;
    transition: 0.2s;
}

.btn:hover {
    background: #1f2a37;
}

.btn.primary {
    background: #1d9bf0;
    border: none;
}

.btn.primary:hover {
    background: #1a8cd8;
}

/* SECTION */
.section {
    padding: 30px 20px;
    text-align: center;
}

.section h2 {
    margin-bottom: 10px;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 20px;
}

.card {
    background: #11161c;
    border: 1px solid #1f2a37;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.card p {
    color: #71767b;
    font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .hero-content h1 {
        font-size: 24px;
    }

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

/* 🌌 FINAL STARFIELD - FAST & RICH */

/* لایه 1 - ریز و خیلی زیاد */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    background-image:
        radial-gradient(1.5px 1.5px at 5% 10%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 10% 30%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 20% 60%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 30% 40%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 40% 80%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 50% 20%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 60% 55%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 70% 35%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 80% 75%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 90% 50%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 15% 85%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 25% 15%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 65% 10%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 85% 25%, #fff, transparent);

    animation: moveStars 40s linear infinite, twinkle1 4s infinite;
    opacity: 0.75;
}

/* لایه 2 - متوسط */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    background-image:
        radial-gradient(2.5px 2.5px at 10% 20%, #fff, transparent),
        radial-gradient(2.5px 2.5px at 30% 60%, #fff, transparent),
        radial-gradient(2.5px 2.5px at 50% 30%, #fff, transparent),
        radial-gradient(2.5px 2.5px at 70% 70%, #fff, transparent),
        radial-gradient(2.5px 2.5px at 90% 40%, #fff, transparent),
        radial-gradient(2.5px 2.5px at 40% 85%, #fff, transparent),
        radial-gradient(2.5px 2.5px at 80% 10%, #fff, transparent),
        radial-gradient(2.5px 2.5px at 60% 50%, #fff, transparent);

    animation: moveStarsSlow 65s linear infinite, twinkle2 6s infinite;
    opacity: 0.85;
}

/* لایه 3 - درخشان */
.star-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background-image:
        radial-gradient(4px 4px at 20% 50%, #fff, transparent),
        radial-gradient(4px 4px at 60% 20%, #fff, transparent),
        radial-gradient(4px 4px at 80% 75%, #fff, transparent),
        radial-gradient(4px 4px at 35% 25%, #fff, transparent),
        radial-gradient(4px 4px at 75% 55%, #fff, transparent),
        radial-gradient(4px 4px at 50% 10%, #fff, transparent);

    animation: moveStarsReverse 80s linear infinite, twinkle3 5s infinite;
    opacity: 1;
}

/* ✨ حرکت سریع‌تر ولی نرم */
@keyframes moveStars {
    from { transform: translateY(0); }
    to { transform: translateY(-250px); }
}

@keyframes moveStarsSlow {
    from { transform: translateY(0); }
    to { transform: translateY(-150px); }
}

@keyframes moveStarsReverse {
    from { transform: translateY(0); }
    to { transform: translateY(180px); }
}

/* ✨ چشمک */
@keyframes twinkle1 {
    0% { opacity: 0.5; }
    25% { opacity: 1; }
    50% { opacity: 0.6; }
    75% { opacity: 0.9; }
    100% { opacity: 0.7; }
}

@keyframes twinkle2 {
    0% { opacity: 0.8; }
    30% { opacity: 0.3; }
    60% { opacity: 1; }
    100% { opacity: 0.6; }
}

@keyframes twinkle3 {
    0% { opacity: 1; }
    40% { opacity: 0.5; }
    70% { opacity: 1; }
    100% { opacity: 0.8; }
}

.dash-card {
    background: #11161c;
    border: 1px solid #1f2a37;
    padding: 20px;
    border-radius: 16px;
    margin-top: 20px;
    text-align: center;
}

.dash-info {
    margin: 15px 0;
    color: #71767b;
    display: flex;
    flex-direction: column;
    gap: 8px;
}




/* صفحه‌های فرم وسط */
.page-center {
    min-height: 100vh;       /* کل ارتفاع صفحه */
    display: flex;
    justify-content: center; /* وسط افقی */
    align-items: center;     /* وسط عمودی */
    padding: 20px;
}

/* کارت فرم */
.login-card {
    width: 320px;
    background: #11161c;
    border: 1px solid #1f2a37;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    overflow: hidden;
}



.calendar {
    position: absolute;
    background: #11161c;
    border: 1px solid #1f2a37;
    padding: 10px;
    border-radius: 12px;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 200;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e7e9ea;
    margin-bottom: 5px;
}

.calendar-header button {
    background: #1d9bf0;
    border: none;
    color: white;
    border-radius: 8px;
    padding: 2px 6px;
    cursor: pointer;
}

.calendar-body select {
    background: #0b0f14;
    border: 1px solid #2f3336;
    color: white;
    padding: 4px 6px;
    border-radius: 8px;
    font-family: inherit;
}

.hidden { display: none; }


.birthdate-picker {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.birthdate-picker select {
    flex: 1;
    padding: 8px;
    border-radius: 999px;
    border: 1px solid #2f3336;
    background: #0b0f14;
    color: white;
    font-family: inherit;
    outline: none;
}

.birthdate-picker select:focus {
    border-color: #1d9bf0;
}



/* اضافه کردن استایل برای لینک فعال */
.menu a.active {
    background: #1d9bf0;
    color: white;
    border-radius: 999px;
}
