/*
Theme Name: PetroLynk Premium Theme
Theme URI: https://petrolynk.ir
Description: پلتفرم اختصاصی، هوشمند و امن تأمین و معاوضه مواد اولیه صنعتی (پلیمر و شیمیایی)
Version: 1.0.6
Author: PetroLynk Core Team
Text Domain: petrolynk
*/

:root {
    --primary-color: #0f172a; 
    --secondary-color: #f97316; 
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --border-color: #e2e8f0;
}

body {
    direction: rtl !important;
    text-align: right !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a { text-decoration: none; color: inherit; }

/* هدر سایت */
.site-header {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    padding: 18px 0;
    border-bottom: 3px solid var(--secondary-color);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo h1 { margin: 0; font-size: 26px; font-weight: bold; color: #ffffff; }
.logo span { color: var(--secondary-color); }

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.main-navigation a {
    color: #cbd5e1 !important;
    font-size: 15px;
    font-weight: 500;
}

.main-navigation a:hover { color: var(--secondary-color) !important; }

.auth-btn {
    background-color: var(--secondary-color) !important;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
}

/* بخش هیرو صفحه اصلی */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    color: #ffffff !important;
    padding: 120px 0;
    text-align: center;
}

.hero-section h2 { font-size: 38px; margin-bottom: 20px; font-weight: 800; color: #ffffff; line-height: 1.4; }
.hero-section p { font-size: 18px; color: #94a3b8; margin-bottom: 45px; line-height: 1.6; }

.hero-ctas { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    display: inline-block;
    text-align: center;
}

.btn-primary { background-color: var(--secondary-color) !important; color: #ffffff !important; }
.btn-secondary { background-color: transparent !important; color: #ffffff !important; border: 2px solid #ffffff !important; }

/* گیت‌های دسته‌بندی */
.category-gateways { padding: 80px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }

.card {
    background: #ffffff !important;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 35px;
}

.card h3 { margin-top: 0; color: var(--primary-color); font-size: 22px; padding-bottom: 15px; }
.card p { color: #64748b; font-size: 15px; line-height: 1.6; }
.card ul { padding-right: 20px; color: #475569; line-height: 1.8; }
.card .btn { margin-top: 25px; width: 100%; text-align: center; box-sizing: border-box; }

/* فوتر */
.site-footer {
    background-color: #0f172a !important;
    color: #64748b !important;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #1e293b;
}

/* ==========================================================================
   کدهای جادویی ریسپانسیو (Responsive Media Queries) برای موبایل و تبلت
   ========================================================================== */

@media (max-width: 992px) {
    .header-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
    }
    .main-navigation ul {
        justify-content: center;
        gap: 15px;
    }
    .hero-section {
        padding: 80px 0;
    }
    .hero-section h2 {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 10px 0;
    }
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        gap: 15px;
    }
    .hero-ctas .btn {
        width: 100%;
    }
    .grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .hero-section h2 {
        font-size: 24px;
    }
    .hero-section p {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .card {
        padding: 20px;
    }
}