/**
 * گفت یار - استایل لندینگ پیج
 * GoftYar - Landing Page Styles
 */

/* ========== ریست استایل ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f6 100%);
    color: #1e2a3a;
    line-height: 1.6;
}

/* ========== تعریف فونت وزیر ========== */
@font-face {
    font-family: 'Vazir';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/Vazir-Regular.woff2') format('woff2'),
         url('../fonts/Vazir-Regular.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/Vazir-Medium.woff2') format('woff2'),
         url('../fonts/Vazir-Medium.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/Vazir-Bold.woff2') format('woff2'),
         url('../fonts/Vazir-Bold.woff') format('woff');
    font-display: swap;
}

/* ========== اعمال فونت به کل صفحه ========== */
body {
    font-family: 'Vazir', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f6 100%);
    color: #1e2a3a;
    line-height: 1.6;
}

/* تنظیم وزن فونت برای عناصر مختلف */
h1, h2, h3, .section-title, .feature-title, .mode-title h3 {
    font-weight: 700;
}

p, .feature-desc, .mode-desc, .bg-card-desc {
    font-weight: 400;
}

.btn, .nav-menu a, .footer-links a {
    font-weight: 500;
}

/* ========== کانتینر ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== هدر ========== */
.header {
    background: linear-gradient(135deg, #1A237E 0%, #283593 100%);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: auto;
    max-width: 63px;
    border-radius: 10px;
}

.logo-text h1 {
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.logo-text p {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* ========== دکمه‌ها ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #1A237E 0%, #283593 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(26,35,126,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26,35,126,0.4);
}

.btn-secondary {
    background: white;
    color: #1A237E;
    border: 2px solid #1A237E;
}

.btn-secondary:hover {
    background: #1A237E;
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 14px 36px;
    font-size: 16px;
}

/* ========== بخش قهرمان (Hero) ========== */
.hero {
    padding: 80px 0;
    text-align: center;
    background: white;
}

.hero-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    color: #1A237E;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 20px;
    color: #5a6e7c;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

/* ========== آمار ========== */
.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    padding: 40px 0;
    background: #f8f9fa;
    border-radius: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #1A237E;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: #5a6e7c;
}

/* ========== بخش‌های عمومی ========== */
.section {
    padding: 70px 0;
    border-bottom: 1px solid #e0e0e0;
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: #1A237E;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: #5a6e7c;
    margin-bottom: 50px;
    font-size: 16px;
}

/* ========== کارت‌های پیام‌رسان ========== */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.channel-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-top: 4px solid;
}

.channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.channel-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.channel-name {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
}

.channel-example {
    font-size: 12px;
    color: #8a9aa8;
    direction: ltr;
}

/* ========== ویژگی‌ها ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1A237E;
}

.feature-desc {
    color: #5a6e7c;
    font-size: 14px;
}

/* ========== متن پیش‌فرض ========== */
.message-box {
    background: #f0f8ff;
    border-radius: 20px;
    padding: 30px;
    border-right: 4px solid #1A237E;
}

.message-variables {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.message-variables code {
    background: #eef2f6;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

/* ========== موقعیت و اندازه ========== */
.position-demo {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.position-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 16px;
    min-width: 100px;
}

.position-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.size-demo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.size-item {
    text-align: center;
}

.size-circle {
    background: #1A237E;
    border-radius: 50%;
    margin: 0 auto 8px;
}

.size-small .size-circle { width: 45px; height: 45px; }
.size-normal .size-circle { width: 60px; height: 60px; }
.size-large .size-circle { width: 75px; height: 75px; }

/* ========== محدودیت زمانی ========== */
.time-demo {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
}

.time-range {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.time-item {
    background: white;
    padding: 15px 25px;
    border-radius: 16px;
    font-weight: 600;
    color: #1A237E;
}

/* ========== فراخوان (CTA) ========== */
.cta {
    background: linear-gradient(135deg, #1A237E 0%, #283593 100%);
    color: white;
    text-align: center;
    padding: 60px 0;
    border-radius: 30px;
    margin: 40px 0;
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta .btn-primary {
    background: white;
    color: #1A237E;
    box-shadow: none;
}

.cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ========== فوتر ========== */
.footer {
    background: #1e2a3a;
    color: #8a9aa8;
    padding: 50px 0 30px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-links a {
    color: #8a9aa8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    font-size: 12px;
    border-top: 1px solid #2d3a4a;
    padding-top: 30px;
}

/* ========== ریسپانسیو ========== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}


/* ========== لوگوی بزرگ در بخش Hero ========== */
.hero-logo {
    margin-bottom: 20px;
    text-align: center;
}

.hero-logo-img {
    max-width: 120px;
    height: auto;
    margin: 0 auto;
    display: inline-block;
}

/* ========== ریسپانسیو برای لوگو در موبایل ========== */
@media (max-width: 768px) {
    .hero-logo-img {
        max-width: 80px;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .logo-img {
        max-width: 44px;
    }
}

/* ========== فاصله از لبه ========== */
.distance-image {
    text-align: center;
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
}

.distance-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.distance-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.distance-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 20px;
    border-radius: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-size: 14px;
    font-weight: 500;
    color: #1e2a3a;
}

.distance-icon {
    font-size: 20px;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .distance-features {
        gap: 15px;
    }
    
    .distance-feature {
        font-size: 12px;
        padding: 6px 15px;
    }
    
    .distance-image {
        padding: 15px;
    }
}

/* ========== دو حالت نمایش ========== */
.modes-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.mode-card {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.mode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.mode-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.mode-icon {
    font-size: 28px;
}

.mode-title h3 {
    font-size: 22px;
    color: #1A237E;
    margin: 0;
}

.mode-image {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mode-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mode-desc {
    color: #5a6e7c;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.mode-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.mode-badge {
    background: #f0f2f5;
    color: #1e2a3a;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .modes-container {
        gap: 20px;
    }
    
    .mode-card {
        min-width: 100%;
    }
    
    .mode-title h3 {
        font-size: 18px;
    }
    
    .mode-image {
        min-height: 200px;
        padding: 15px;
    }
    
    .mode-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* ========== رنگ پس‌زمینه ========== */
.bg-colors-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.bg-card {
    flex: 1;
    min-width: 280px;
    background: white;
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.bg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.bg-card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.bg-card-icon {
    font-size: 28px;
}

.bg-card-title h3 {
    font-size: 20px;
    color: #1A237E;
    margin: 0;
}

.bg-card-image {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bg-card-desc {
    color: #5a6e7c;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.bg-card-tag {
    margin-top: 10px;
}

.bg-tag {
    display: inline-block;
    background: linear-gradient(135deg, #1A237E20 0%, #28359320 100%);
    color: #1A237E;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.bg-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.bg-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 20px;
    border-radius: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-size: 14px;
    font-weight: 500;
    color: #1e2a3a;
}

.bg-feature-icon {
    font-size: 18px;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .bg-colors-container {
        gap: 20px;
    }
    
    .bg-card {
        min-width: 100%;
    }
    
    .bg-card-title h3 {
        font-size: 18px;
    }
    
    .bg-card-image {
        min-height: 180px;
        padding: 15px;
    }
    
    .bg-feature {
        font-size: 12px;
        padding: 6px 15px;
    }
}

/* ========== استایل لینک کارت‌های ویژگی ========== */
.feature-card {
    cursor: pointer;
    position: relative;
}

.feature-link {
    display: inline-block;
    margin-top: 15px;
    color: #1A237E;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(5px);
}

.feature-card:hover .feature-link {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* ========== مودال ویدئو ========== */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: relative;
    background: white;
    margin: 5% auto;
    width: 90%;
    max-width: 900px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #1A237E 0%, #283593 100%);
    border-radius: 24px 24px 0 0;
}

.video-modal-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.video-modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.video-modal-body {
    padding: 24px;
}

.demo-video {
    width: 100%;
    height: auto;
    border-radius: 16px;
    background: #000;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .video-modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .video-modal-header {
        padding: 15px 20px;
    }
    
    .video-modal-title {
        font-size: 16px;
    }
    
    .video-modal-body {
        padding: 16px;
    }
}