/* wp-content/themes/journal/assets/css/custom.css */

/* استایل‌های سفارشی قالب تورینگ */

/* اصلاح display برای عناصر مهم */
#site-credit {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* رفع مشکل overflow در موبایل */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* بهبود performance */
img {
    max-width: 100%;
    height: auto;
}

/* پشتیبانی از RTL کامل */
[dir="rtl"] .navbar-nav {
    padding-right: 0;
}

/* رفع مشکل border-radius در iOS */
button, 
input, 
textarea {
    -webkit-appearance: none;
    border-radius: 0;
}

/* بهبود touch در موبایل */
@media (hover: none) and (pointer: coarse) {
    .turing-feature-card {
        min-height: 44px;
        min-width: 44px;
    }
    
    .btn, .button {
        min-height: 44px;
        padding: 12px 24px;
    }
}

/* پشتیبانی از print */
@media print {
    .header-6,
    .footer-style-4,
    .preloader,
    .button,
    .contact-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
    }
}

/* بهبود accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* focus styles برای keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #1AA39C;
    outline-offset: 2px;
}

/* بهبود ظاهر placeholder */
::placeholder {
    color: #999;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #999;
}

::-ms-input-placeholder {
    color: #999;
}

/* رفع مشکل preloader در موبایل */
@media (max-width: 767px) {
    .preloader {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: white;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* استایل برای messages */
.turing-message {
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    border: 1px solid transparent;
}

.turing-message-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.turing-message-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.turing-message-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* رفع مشکل container در المنتور */
.elementor-section .elementor-container {
    max-width: 100%;
}

/* استایل‌های مربوط به فرم تماس */
.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-input.error {
    border-color: #dc3545;
}

.alert {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

#loading-spinner {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.contact-info-icon {
    background: #0B3B66;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    flex-shrink: 0;
}

.contact-info-content {
    flex: 1;
}

.contact-info-content h4 {
    color: #0B3B66;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-info-content p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* استایل برای نمایش اعداد در RTL */
[dir="rtl"] .stat-number {
    font-family: 'Vazirmatn', 'Iran Sans', Tahoma, sans-serif;
}

/* اصلاح برای نمایش در LTR */
[dir="ltr"] .turing-feature-content {
    text-align: left;
}

[dir="ltr"] .navbar-nav {
    padding-left: 0;
}

[dir="ltr"] .single-input i {
    right: 15px;
    left: auto;
}

[dir="ltr"] .form-input {
    padding: 15px 15px 15px 50px;
}

/* استایل برای بخش آمار */
.publish-stats {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.publish-stats::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    color: #0B3B66;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-description {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.stat-item {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1AA39C, #0B3B66);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1AA39C, #0B3B66);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
}

.stat-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    bottom: -5px;
    left: -5px;
    background: linear-gradient(135deg, #1AA39C, #0B3B66);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.2;
}

.stat-icon i {
    font-size: 2rem;
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #0B3B66;
    margin-bottom: 10px;
    font-family: 'Vazirmatn', sans-serif;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.stat-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
}

.stats-cta {
    margin-top: 40px;
}

/* انیمیشن شمارنده */
@keyframes countUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.stat-number.animated {
    animation: countUp 0.6s ease-out;
}

/* حالت تاریک */
@media (prefers-color-scheme: dark) {
    .publish-stats {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    }
    
    .stat-item {
        background: #4a5568;
        border-color: #718096;
    }
    
    .section-title,
    .stat-number,
    .stat-label {
        color: white;
    }
    
    .section-description,
    .stat-description {
        color: #cbd5e0;
    }
}

/* استایل بخش درباره ما */
.about-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.about-image img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-content .section-title h2 {
    color: #0B3B66;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-content p {
    color: #495057;
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-features {
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1AA39C, #0B3B66);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-text h5 {
    color: #0B3B66;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.feature-text p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* استایل بخش تماس با ما */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.single-input {
    position: relative;
    margin-bottom: 25px;
}

.form-input {
    width: 100%;
    padding: 15px 50px 15px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.form-input:focus {
    border-color: #1AA39C;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 163, 156, 0.1);
}

.single-input i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

.button {
    background: linear-gradient(135deg, #1AA39C, #0B3B66);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.button:hover {
    background: linear-gradient(135deg, #0B3B66, #1AA39C);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 59, 102, 0.3);
}

.left-wrapper {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.single-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.single-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.single-item .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1AA39C, #0B3B66);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.single-item .icon i {
    font-size: 1.2rem;
    color: white;
}

.single-item .text h5 {
    color: #0B3B66;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.single-item .text p {
    color: #495057;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* استایل کارت‌های نشریه */
.turing-feature-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.turing-feature-card {
    width: 350px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.turing-feature-card:hover {
    transform: translateY(-10px);
}

.turing-feature-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(transparent, rgba(11, 59, 102, 0.9));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.turing-feature-card:hover .turing-feature-content {
    transform: translateY(0);
}

.turing-feature-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.turing-feature-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
    opacity: 0.9;
}

.turing-feature-content p:last-child {
    margin-bottom: 0;
}

/* استایل فوتر */
.footer-style-4 {
    background: linear-gradient(135deg, #0B3B66 0%, #1a3b5c 100%);
    color: white;
    padding: 60px 0 20px;
    position: relative;
}

.footer-style-4::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #1AA39C, #0B3B66);
}

.widget-title {
    color: #1AA39C;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-about p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 20px;
}

.socials {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #1AA39C;
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.footer-links a:hover {
    color: #1AA39C;
    padding-right: 5px;
}

.featured-issues {
    margin-top: 10px;
}

.featured-issue-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-issue-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.issue-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.issue-link:hover {
    transform: translateX(-5px);
}

.issue-title {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.issue-excerpt {
    color: #ccc;
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
}

.contact-info {
    margin-top: 10px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 10px 0;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: #1AA39C;
    margin-left: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-content {
    flex: 1;
}

.contact-content span {
    display: block;
    color: #1AA39C;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.contact-content a,
.contact-content p {
    color: #ccc;
    text-decoration: none;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.contact-content a:hover {
    color: #1AA39C;
}

.copyright-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
}

.copyright-text {
    color: #ccc;
    margin: 0;
    font-size: 0.9rem;
}

.bottom-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.bottom-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.bottom-links a:hover {
    color: #1AA39C;
}

.no-issues {
    color: #ccc;
    font-style: italic;
    margin: 0;
}

/* استایل‌های RTL برای LTR */
[dir="ltr"] .contact-item i {
    margin-left: 0;
    margin-right: 10px;
}

[dir="ltr"] .footer-links a:hover {
    padding-right: 0;
    padding-left: 5px;
}

[dir="ltr"] .single-input i {
    left: auto;
    right: 15px;
}

[dir="ltr"] .form-input {
    padding: 15px 15px 15px 50px;
}

/* رفع مشکل LTR */
[dir="ltr"] .navbar-nav {
    padding-left: 0;
}

[dir="ltr"] .turing-feature-content {
    text-align: left;
}

/* تنظیمات نهایی */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}