/*body {
    
    font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
}*/

h1 {
    font-size: 16px;
    margin-top: 0;
}

.card {
    max-width: 620px;
    margin: 0 auto;
    padding: 16px;
    border: 1px solid lightgray;
    border-radius: 16px;
}

    .card p:last-child {
        margin-bottom: 0;
    }

.hero-gradient {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(255, 255, 255, 1) 100%);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.transition-slow {
    transition: all 0.3s ease-in-out;
}

/* Inter Variable Font */
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter.woff2') format('woff2-variations');
    font-weight: 500 700; /* کل رنج وزن‌ها */
    font-style: normal;
    font-display: swap;
}

/* Rubik Bold (مثلاً فقط برای تیترها) */
@font-face {
    font-family: 'Rubik';
    src: url('/fonts/Rubik.woff2') format('woff2-variations');
    font-weight: 440;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Merriweather';
    src: url('/fonts/Merriweather.ttf');
    font-weight: 400; /* کل رنج وزن‌ها */
    font-style: normal;
    font-display: swap;
}


body {
    font-family: 'Inter', ui-sans-serif, system-ui;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rubik', sans-serif;
}

/* Mobile Subscribe Modal Enhancements */
.h-safe-area-inset-bottom {
    height: env(safe-area-inset-bottom, 0px);
}

/* Prevent body scroll when modal is open */
body.overflow-hidden {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Mobile bottom sheet improvements */
@media (max-width: 639px) {
    #mobile-subscribe-sheet {
        /* Ensure the sheet covers the full bottom area */
        padding-bottom: env(safe-area-inset-bottom, 0px);
        max-height: 85vh; /* Limit height for very tall content */
        overflow-y: auto;
    }
    
    /* Better touch targets for mobile */
    #mobile-subscribe-sheet input {
        font-size: 16px; /* Prevents zoom on iOS Safari */
        min-height: 44px; /* Apple's recommended minimum touch target */
    }
    
    #mobile-subscribe-sheet button {
        min-height: 44px; /* Apple's recommended minimum touch target */
        font-size: 16px;
    }
}

/* Enhanced backdrop styles */
#subscribe-backdrop {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Improved focus states for accessibility */
#subscribe-modal input:focus,
#subscribe-modal button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Smooth animations for all modal elements */
#subscribe-modal .transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Handle bar animation */
#mobile-subscribe-sheet .bg-gray-300 {
    transition: background-color 0.2s ease;
}

#mobile-subscribe-sheet:hover .bg-gray-300 {
    background-color: #9ca3af;
}