/* Project: Smart Abzar (اسمارت ابزار)
   Optimization: Fully Optimized & Responsive
*/

@font-face {
    font-family: 'MyCustomFont';
    src: url('Vazirmatn.ttf') format('truetype'); /* اسم دقیق فایل فونت را اینجا بنویس */
    font-weight: normal;
    font-style: normal;
}

/* 1. تنظیمات پایه و ریست کردن مرورگر */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent; /* حذف هاله آبی در موبایل هنگام لمس */
}
body {
    font-family: 'MyCustomFont', sans-serif !important;
}

/* نوشته اسمارت ابزار با فونت خودت */
.header-main-row h1 {
    font-family: 'MyCustomFont', sans-serif !important;
    font-weight: bold;
    font-size: 1.8rem;
    color: #ffffff;
    margin: 0;
}

/* ساعت و تاریخ با فونت خودت */
.date-time {
    font-family: 'MyCustomFont', sans-serif !important;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* 2. هدر سایت */
.main-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* استایل لوگوی مربعی شما */
.header-logo-square {
    width: 42px;
    height: 42px;
    border-radius: 6px; /* گوشه‌های نرم برای زیبایی */
    object-fit: cover;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-main-row h1 {
    font-size: 1.8rem;
    font-weight: 1; /* ضخامت بیشتر برای جذابیت */
    letter-spacing: -0.5px; /* نزدیک‌تر کردن حروف برای ظاهر مدرن */
    color: #ffffff;
}

/* 3. محفظه اصلی و باکس چت */
.container {
    flex: 1;
    width: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chat-frame-container {
    width: 95%;
    max-width: 1100px;
    height: 650px; /* ارتفاع ایده‌آل برای دسکتاپ */
    margin: 10px auto;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e4e8;
}

.chat-frame-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
}

/* 4. بخش تبلیغات */
.ads-section {
    width: 95%;
    max-width: 1100px;
    margin: 10px auto 25px auto;
}

.ad-placeholder {
    background: #ffffff;
    border: 2px dashed #3498db;
    border-radius: 12px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-size: 0.9rem;
    padding: 15px;
    transition: all 0.3s ease;
}

.ad-placeholder:hover {
    border-color: #2980b9;
    background: #fcfcfc;
}

.ad-placeholder img, .ad-placeholder gif {
    max-width: 100%;
    border-radius: 8px;
}
#ad-image {
    transition: opacity 0.5s ease-in-out;
}

/* 5. فوتر و درباره ما */
.main-footer {
    background-color: #1c1e21;
    color: #e4e6eb;
    padding: 40px 20px;
    text-align: center;
    border-top: 4px solid #2a5298;
}

.about-us h3 {
    color: #4facfe;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.about-us p {
    font-size: 0.95rem;
    max-width: 700px;
    margin: 0 auto;
    color: #b0b3b8;
}

/* 6. دکمه تلگرام دایره‌ای تعاملی */
.telegram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    color: #1c1e21;
    border-radius: 50%;
    margin-top: 25px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* تغییر رنگ به آبی در هاور و لمس (موبایل) */
.telegram-btn:hover, 
.telegram-btn:active {
    background-color: #0088cc;
    color: #ffffff;
    transform: scale(1.1);
}

/* 7. بهینه‌سازی برای موبایل (Responsive) */
@media (max-width: 768px) {
    .chat-frame-container {
        height: 550px; /* ارتفاع متناسب با موبایل */
        width: 100%;
        border-radius: 10px;
    }

    .header-content h1 {
        font-size: 1.3rem;
    }

    .header-logo-square {
        width: 35px;
        height: 35px;
    }
}
.copyright-text {
    margin-top: 15px;
    font-size: 0.75rem;     /* اندازه متن کمی کوچک‌تر برای ظرافت */
    color: #777;            /* رنگ کمی روشن‌تر */
    font-weight: 300;       /* نازک کردن نوشته */
    text-align: center;
    opacity: 0.8;           /* شفافیت کمتر برای ملایم‌تر شدن */
}

.header-content {
    display: flex;
    flex-direction: column; /* ساعت برود ردیف پایین */
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
}

.header-main-row {
    display: flex;
    flex-direction: row-reverse; /* این دستور لوگو را به سمت راستِ متن پرتاب می‌کند */
    align-items: center;
    gap: 12px;
}

.header-logo-square {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.header-main-row h1 {
    font-size: 1.6rem;
    font-weight: bold;
    margin: 0;
    line-height: 1;
}

.date-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}
