/*
Theme Name: معین دیجیتال | Moein Digital
Theme URI: https://moeindigital.ir
Author: Moein Digital Team
Author URI: https://moeindigital.ir
Description: قالب اختصاصی مرکز تخصصی تعمیرات و خدمات دیجیتال معین دیجیتال با پشتیبانی کامل از ابزارک‌ها و سفارشی‌سازی
Version: 1.0.0
License: GPL v2 or later
Text Domain: moein-digital
Domain Path: /languages
*/

/* ============================================
   RESET & TYPOGRAPHY
   ============================================ */
* {
    box-sizing: border-box;
    font-variant-numeric: persian-numbers;
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}

body {
    font-family: 'Vazirmatn', sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
    background: #f7f8fa;
    color: #1a1a1a;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================
   HEADER SECTION
   ============================================ */
.moein-header {
    width: 100%;
    min-height: 480px;
    background: #080b14;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 40px 20px;
}

.bg-glow-line {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(135deg, transparent 40%, #1e5bef 41%, #1e5bef 41.5%, transparent 42%);
    opacity: 0.15;
    transform: skewX(-15deg);
    filter: blur(2px);
}

.header-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* دستگاه‌های Mockup */
.devices-mockup {
    flex: 1.2;
    min-width: 350px;
    position: relative;
    height: 380px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-right: -50px;
}

.device {
    position: relative;
    margin: 0 -10px;
}

.device-ps5 {
    width: 60px;
    height: 280px;
    background: linear-gradient(to right, #dcdcdc, #f0f0f0, #dcdcdc);
    border-radius: 5px 5px 0 0;
    margin-right: 15px;
    transform: rotate(2deg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
}

.device-ps5::after {
    content: '';
    position: absolute;
    top: 10px;
    left: -5px;
    width: 20px;
    height: 260px;
    background: #e0e0e0;
    border-radius: 5px 0 0 5px;
}

.device-iphone {
    width: 80px;
    height: 200px;
    background: #1a1a1a;
    border-radius: 15px;
    border: 2px solid #444;
    box-shadow: 0 15px 25px rgba(0,0,0,0.9), inset 0 0 20px rgba(30, 91, 239, 0.2);
    transform: rotate(-5deg);
    z-index: 2;
    display: flex;
    justify-content: center;
    padding-top: 15px;
}

.device-iphone::before {
    content: '';
    width: 50px;
    height: 100px;
    background: #080b14;
    border-radius: 50%;
    position: absolute;
    bottom: 15px;
    opacity: 0.6;
}

.device-laptop {
    width: 200px;
    height: 140px;
    background: #1a1a1a;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 15px 30px rgba(0,0,0,0.9);
    transform: rotate(2deg);
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 10px solid #333;
}

.device-laptop::after {
    content: '';
    width: 160px;
    height: 90px;
    background: #080b14;
    border-radius: 4px;
    border: 1px solid #0d1b3e;
    box-shadow: inset 0 0 15px #1e5bef;
}

.laptop-keyboard {
    width: 200px;
    height: 10px;
    background: #2a2a2a;
    position: absolute;
    bottom: -20px;
    border-radius: 0 0 4px 4px;
}

.device-mobo {
    width: 100px;
    height: 150px;
    background: linear-gradient(135deg, #222, #111);
    border: 1px solid #333;
    border-radius: 4px;
    transform: rotate(5deg);
    margin-left: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    position: relative;
}

.device-mobo::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 4px solid #1e5bef;
    box-shadow: 0 0 10px #1e5bef;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0% { opacity: 0.5; }
    100% { opacity: 1; box-shadow: 0 0 20px #1e5bef; }
}

/* متن هدر */
.text-content {
    flex: 1;
    min-width: 350px;
    color: #fff;
    padding: 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.logo-svg {
    width: 40px;
    height: 40px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1px;
    color: #fff;
}

.logo-title span {
    color: #1e5bef;
}

.logo-sub {
    font-size: 0.7rem;
    color: #b0b8d1;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

.logo-desc {
    font-size: 0.7rem;
    color: #7a8299;
    margin-top: 5px;
}

.headline-top {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.headline-main {
    font-size: 4.5rem;
    font-weight: 900;
    margin: 5px 0 15px 0;
    line-height: 1;
}

.headline-main span {
    color: #1e5bef;
}

.headline-tags {
    font-size: 0.95rem;
    color: #b0b8d1;
    margin-bottom: 25px;
}

.headline-tags span {
    margin: 0 4px;
    color: #fff;
}

/* دکمه‌ها */
.header-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-custom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Vazirmatn', sans-serif;
    border: none;
}

.btn-blue {
    background: #1e5bef;
    color: #fff;
}

.btn-blue:hover {
    background: #164bbd;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid #555;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.05);
}

/* ============================================
   SERVICE BOXES (5 Columns)
   ============================================ */
.section-bg {
    background: #f7f8fa;
    padding: 40px 0 20px 0;
}

/* نوار آیکون‌ها */
.icon-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 35px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.icon-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    text-decoration: none;
}

.icon-item i {
    font-size: 1.8rem;
    color: #1e5bef;
}

.icon-item-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.icon-item-text strong {
    font-size: 0.95rem;
    color: #1a1a1a;
}

.icon-item-text small {
    font-size: 0.7rem;
    color: #888;
}

/* شبکه باکس‌ها */
.box-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.box-card-wrapper {
    min-height: 200px;
}

.box-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    border: 1px solid #f0f0f0;
    height: 100%;
}

.box-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 0.95rem;
    padding-bottom: 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ebebeb;
    color: #1a1a1a;
}

.box-header i {
    color: #1e5bef;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.box-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
    transition: 0.2s;
}

.box-list li:hover {
    color: #1e5bef;
    padding-right: 5px;
}

.box-list li i {
    width: 16px;
    color: #aaa;
    font-size: 0.7rem;
}

/* ============================================
   FOOTER UPPER SECTION (4 Bottom Boxes)
   ============================================ */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px 0;
}

.footer-box-wrapper {
    min-height: 150px;
}

.footer-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    border: 1px solid #f0f0f0;
    height: 100%;
}

.footer-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    border-bottom: 1px solid #ebebeb;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.footer-box h3 i {
    color: #1e5bef;
}

.footer-list li {
    padding: 6px 0;
    font-size: 0.85rem;
    color: #555;
}

.footer-list li i {
    width: 20px;
    color: #aaa;
}

.footer-list a:hover {
    color: #1e5bef;
}

/* چک‌لیست */
.check-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.9rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.check-item i.fa-check {
    color: #1e5bef;
    font-size: 1rem;
    background: #eef3ff;
    padding: 5px;
    border-radius: 4px;
}

/* اطلاعات تماس */
.contact-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.contact-row i {
    color: #1e5bef;
    width: 20px;
    text-align: center;
}

/* ============================================
   MAP & QR SECTIONS
   ============================================ */
.bottom-blocks {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 20px;
}

.qr-section {
    flex: 1;
    min-width: 250px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.qr-text {
    font-weight: bold;
    font-size: 0.9rem;
}

.qr-code-icon {
    font-size: 4.5rem;
    color: #000;
    background: #f9f9f9;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: 0.3s;
}

.qr-code-icon:hover {
    transform: scale(1.05);
    border-color: #1e5bef;
}

.qr-arrow {
    color: #1e5bef;
    font-size: 1.5rem;
}

.map-section {
    flex: 2;
    min-width: 350px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: 0.3s;
}

.map-section:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-header {
    background: #1e5bef;
    color: #fff;
    text-align: center;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.map-placeholder {
    background: #e0e0e0;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.map-placeholder i {
    color: #1e5bef;
    font-size: 3rem;
    background: rgba(255,255,255,0.9);
    padding: 10px 15px;
    border-radius: 50%;
    z-index: 2;
}

.map-placeholder::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, #ccc, #ccc 10px, #e0e0e0 10px, #e0e0e0 20px);
}

/* ============================================
   BOTTOM COPYRIGHT BAR
   ============================================ */
.bottom-bar {
    background: #111;
    color: #888;
    text-align: center;
    padding: 15px;
    font-size: 0.8rem;
    margin-top: 20px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

/* صفحه‌نمایش بزرگ (Desktop) */
@media (max-width: 1200px) {
    .box-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* تبلت و کوچکتر */
@media (max-width: 992px) {
    .header-content {
        justify-content: center;
    }
    .text-content {
        text-align: center;
    }
    .header-logo {
        justify-content: center;
    }
    .headline-main {
        font-size: 3.5rem;
    }
    .header-buttons {
        justify-content: center;
    }
    .devices-mockup {
        display: none;
    }
    .bottom-blocks {
        flex-direction: column;
    }
    .headline-top {
        font-size: 2rem;
    }
}

/* موبایل */
@media (max-width: 768px) {
    .box-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .moein-header {
        min-height: 350px;
        padding: 20px 15px;
    }
    .headline-main {
        font-size: 2.8rem;
    }
    .headline-tags {
        font-size: 0.8rem;
    }
    .icon-bar {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .qr-section {
        flex-wrap: wrap;
        justify-content: center;
    }
    .qr-arrow {
        display: none;
    }
    .map-section {
        min-width: 100%;
    }
}

/* موبایل بسیار کوچک */
@media (max-width: 480px) {
    .box-grid {
        grid-template-columns: 1fr;
    }
    .header-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn-custom {
        width: 100%;
        justify-content: center;
    }
    .headline-main {
        font-size: 2.2rem;
    }
    .logo-title {
        font-size: 1.2rem;
    }
    .logo-svg {
        width: 30px;
        height: 30px;
    }
    .bottom-blocks {
        flex-direction: column;
    }
    .qr-section {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   WORD PRESS SPECIFIC
   ============================================ */

/* استایل برای ویجت‌های وردپرس */
.widget {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1rem;
    margin-bottom: 10px;
}

/* تصاویر واکنش‌گرا */
img {
    max-width: 100%;
    height: auto;
}

/* لینک‌های داخل محتوا */
.entry-content a {
    color: #1e5bef;
}

.entry-content a:hover {
    color: #164bbd;
    text-decoration: underline;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

.hidden-mobile {
    display: block;
}

@media (max-width: 768px) {
    .hidden-mobile {
        display: none;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .moein-header,
    .section-bg,
    .footer-grid,
    .bottom-blocks,
    .bottom-bar {
        background: #fff !important;
        color: #000 !important;
    }
    .btn-custom {
        display: none !important;
    }
    .devices-mockup {
        display: none !important;
    }
    .bg-glow-line {
        display: none !important;
    }
}