/* css/style.css - نسخه حرفه‌ای و فلت */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../Vazirmatn.ttf') format('truetype');
    font-weight: normal;
}

:root {
    --bg-main: #ffffff;
    --text-main: #262626;
    --text-light: #8e8e8e;
    --accent-color: #0095f6; /* آبی اینستاگرام برای دکمه و لینک */
    --border-color: #dbdbdb;
    --insta-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- Header --- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* افکت شیشه‌ای مات */
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
}

.header-container {
    max-width: 935px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--insta-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -1px;
}

.header-nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.header-nav a:hover {
    color: var(--accent-color);
}

.header-btn {
    background-color: var(--accent-color);
    color: white !important;
    padding: 8px 15px;
    border-radius: 6px;
}
.header-btn:hover {
    background-color: #1877f2;
}


/* --- Main Container --- */
.main-container {
    max-width: 935px;
    margin: 40px auto 60px auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(90vh - 70px); /* تنظیم ارتفاع با در نظر گرفتن هدر */
    gap: 60px;
}

/* --- بخش موبایل (گرافیک سمت چپ) --- */
.phone-display {
    display: none;
    position: relative;
    width: 380px;
    height: 720px;
}

@media (min-width: 850px) {
    .phone-display { display: block; }
}

.iphone-frame {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50px;
    border: 14px solid #262626;
    position: relative;
    overflow: hidden;
    /* حذف سایه برای ظاهر فلت‌تر */
    box-shadow: 0 0 0 2px #e0e0e0; 
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 30px;
    background: #262626;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 10;
}

/* محتوای گوشی */
.app-header {
    padding: 45px 20px 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-logo-text {
    font-weight: bold;
    font-size: 1.2rem;
}

.story-bar {
    padding: 15px 20px;
    display: flex;
    gap: 15px;
    border-bottom: 1px solid #f0f0f0;
    overflow-x: hidden;
}
.story-circle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    padding: 2px;
    background: var(--insta-gradient);
    flex-shrink: 0;
}
.story-inner {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #555;
}

.post-header {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.avatar-mini {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
}

.post-image {
    width: 100%;
    height: 350px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    font-size: 4rem;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.post-actions {
    padding: 12px 15px;
    font-size: 1.5rem;
    display: flex;
    gap: 18px;
    color: #262626;
}
.post-actions i { cursor: pointer; }
.post-actions i:hover { color: var(--text-light); }

/* --- بخش فرم (سمت راست) --- */
.form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-box {
    background: white;
    /* بوردر نازک‌تر و روشن‌تر برای ظاهر فلت */
    border: 1px solid #e6e6e6;
    width: 350px;
    padding: 40px;
    text-align: center;
    border-radius: 8px; /* گوشه‌های کمی گردتر */
}

.brand-logo {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 15px;
    background: var(--insta-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    letter-spacing: -1.5px;
}

.intro-text {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.input-field {
    width: 100%;
    padding: 11px 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    background: #fafafa; /* پس زمینه ورودی کمی خاکستری */
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    transition: 0.2s;
    text-align: center;
}

.input-field:focus {
    border-color: #a0a0a0;
    background: white;
}

.submit-btn {
    width: 100%;
    background-color: var(--accent-color);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    background-color: #1877f2;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.or-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
}
.or-divider::before, .or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e6e6e6;
}
.or-divider span { padding: 0 15px; }

.info-box {
    background: white;
    border: 1px solid #e6e6e6;
    width: 350px;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    font-size: 0.95rem;
}

.feature-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

/* --- بخش ویژگی‌ها --- */
.about-section {
    max-width: 900px;
    margin: 80px auto;
    text-align: center;
    padding: 0 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-item {
    padding: 20px;
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    /* بوردر گرادینت برای آیکون‌ها */
    background: white;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #262626;
}
/* ایجاد بوردر گرادینت */
.feature-icon-wrapper::before {
    content: "";
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: var(--insta-gradient);
    z-index: -1;
    border-radius: 50%;
}


.feature-title {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-main);
}
.feature-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- فوتر --- */
footer {
    margin-top: 80px;
    padding: 40px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    border-top: 1px solid #f0f0f0;
}

/* --- مودال سفارشی (Alert) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.8); /* پس زمینه سفید و مات */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-ios {
    background: white;
    width: 280px;
    border-radius: 20px;
    text-align: center;
    overflow: hidden;
    /* سایه بسیار ملایم برای مودال */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    animation: popUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-content {
    padding: 30px 20px;
}

.modal-icon-top {
    font-size: 2.8rem;
    margin-bottom: 15px;
    display: block;
}
.modal-icon-top.success { color: #10b981; }
.modal-icon-top.error { color: #ef4444; }

.modal-title {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #000;
}

.modal-msg {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.4;
}

.modal-action {
    border-top: 1px solid #f0f0f0;
}

.modal-btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: none;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
}
.modal-btn:hover { background: #fafafa; }



/* ... کدهای قبلی ... */

.modal-icon-top {
    font-size: 2.8rem;
    margin-bottom: 15px;
    display: block;
}
.modal-icon-top.success { color: #10b981; } /* سبز */
.modal-icon-top.error { color: #ef4444; }   /* قرمز */
.modal-icon-top.info { color: #0095f6; }    /* آبی (جدید) */

/* ... ادامه کدها ... */