/* family-business-infographic.css */
:root {
    /* متغیرهای پیش‌فرض برای حالت لایت */
    --infographic-bg-primary: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
    --infographic-header-bg: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    --infographic-header-color: #ffffff;
    --infographic-text-color: #333333;
    --infographic-text-secondary: #666666;
    --infographic-card-bg: #ffffff;
    --infographic-card-shadow: rgba(0, 0, 0, 0.15);
    --infographic-card-hover-shadow: rgba(0, 0, 0, 0.25);
    --infographic-border-color: #3182ce;
    --infographic-accent-light: rgba(49, 130, 206, 0.1);
    --infographic-accent-lighter: rgba(49, 130, 206, 0.05);
    --infographic-accent-color: #2c5282;
    --infographic-success-bg: linear-gradient(135deg, #2f855a 0%, #38a169 100%);
    --infographic-success-color: #ffffff;
    --infographic-conclusion-bg: linear-gradient(135deg, #2c5282 0%, #4299e1 100%);
    --infographic-conclusion-color: #ffffff;
    --infographic-stat-bg: rgba(255, 255, 255, 0.15);
    --infographic-benefit-bg: rgba(255, 255, 255, 0.15);
    --infographic-benefit-hover-bg: rgba(255, 255, 255, 0.25);
    --infographic-conclusion-point-bg: rgba(255, 255, 255, 0.15);
    --infographic-success-secret-bg: rgba(255, 255, 255, 0.2);
    --infographic-challenge-number-bg: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    --infographic-challenge-number-color: #ffffff;
    --infographic-solution-bg: linear-gradient(135deg, #f0f9ff 0%, #e6f7ff 100%);
    --infographic-solution-border: #3182ce;
}

/* حالت دارک - اگر کلاس دارک در بادی وجود داشت */
body.dark-mode,
body[data-theme="dark"],
body.theme-dark,
.dark,
.wp-dark-theme {
    --infographic-bg-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --infographic-header-bg: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
    --infographic-header-color: #ffffff;
    --infographic-text-color: #e0e0e0;
    --infographic-text-secondary: #a0a0a0;
    --infographic-card-bg: #1e1e2e;
    --infographic-card-shadow: rgba(0, 0, 0, 0.3);
    --infographic-card-hover-shadow: rgba(0, 0, 0, 0.4);
    --infographic-border-color: #4a90e2;
    --infographic-accent-light: rgba(74, 144, 226, 0.2);
    --infographic-accent-lighter: rgba(74, 144, 226, 0.1);
    --infographic-accent-color: #4a90e2;
    --infographic-success-bg: linear-gradient(135deg, #2d5a42 0%, #3a7a5a 100%);
    --infographic-success-color: #ffffff;
    --infographic-conclusion-bg: linear-gradient(135deg, #2d4a6a 0%, #3a6a9a 100%);
    --infographic-conclusion-color: #ffffff;
    --infographic-stat-bg: rgba(255, 255, 255, 0.1);
    --infographic-benefit-bg: rgba(255, 255, 255, 0.1);
    --infographic-benefit-hover-bg: rgba(255, 255, 255, 0.2);
    --infographic-conclusion-point-bg: rgba(255, 255, 255, 0.1);
    --infographic-success-secret-bg: rgba(255, 255, 255, 0.15);
    --infographic-challenge-number-bg: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
    --infographic-challenge-number-color: #ffffff;
    --infographic-solution-bg: linear-gradient(135deg, #1a2b40 0%, #1e324a 100%);
    --infographic-solution-border: #4a90e2;
}

/* حالت دارک برای پلاگین‌های رایج */
body.admin-color-dark,
body.admin-color-blue,
body.admin-color-coffee,
body.admin-color-ectoplasm,
body.admin-color-light,
body.admin-color-midnight,
body.admin-color-ocean,
body.admin-color-sunrise {
    --infographic-bg-primary: linear-gradient(135deg, #23282d 0%, #2c3338 100%);
    --infographic-header-bg: linear-gradient(135deg, #1a1d20 0%, #23282d 100%);
    --infographic-header-color: #ffffff;
    --infographic-text-color: #e0e0e0;
    --infographic-text-secondary: #b0b0b0;
    --infographic-card-bg: #2c3338;
    --infographic-card-shadow: rgba(0, 0, 0, 0.4);
    --infographic-card-hover-shadow: rgba(0, 0, 0, 0.5);
    --infographic-border-color: #5a8de2;
    --infographic-accent-light: rgba(90, 141, 226, 0.25);
    --infographic-accent-lighter: rgba(90, 141, 226, 0.15);
    --infographic-accent-color: #5a8de2;
    --infographic-success-bg: linear-gradient(135deg, #2a4a3a 0%, #356a55 100%);
    --infographic-success-color: #ffffff;
    --infographic-conclusion-bg: linear-gradient(135deg, #2a3a5a 0%, #355a8a 100%);
    --infographic-conclusion-color: #ffffff;
    --infographic-stat-bg: rgba(255, 255, 255, 0.15);
    --infographic-benefit-bg: rgba(255, 255, 255, 0.15);
    --infographic-benefit-hover-bg: rgba(255, 255, 255, 0.25);
    --infographic-conclusion-point-bg: rgba(255, 255, 255, 0.15);
    --infographic-success-secret-bg: rgba(255, 255, 255, 0.2);
    --infographic-challenge-number-bg: linear-gradient(135deg, #1a1d20 0%, #23282d 100%);
    --infographic-challenge-number-color: #ffffff;
    --infographic-solution-bg: linear-gradient(135deg, #23282d 0%, #2a3338 100%);
    --infographic-solution-border: #5a8de2;
}

.family-business-infographic-wrapper {
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
    background: var(--infographic-bg-primary);
    color: var(--infographic-text-color);
    line-height: 1.7;
    padding: 20px;
    min-height: 100vh;
}

.family-business-infographic-container {
    max-width: 1400px;
    margin: 0 auto;
}

.infographic-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px;
    background: var(--infographic-header-bg);
    color: var(--infographic-header-color);
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.infographic-header::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.3;
}

.infographic-main-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.infographic-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.infographic-stats-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.infographic-stat-item {
    background: var(--infographic-stat-bg);
    padding: 12px 20px;
    border-radius: 15px;
    text-align: center;
}

.infographic-stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
}

.infographic-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.infographic-intro {
    background: var(--infographic-card-bg);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px var(--infographic-card-shadow);
    border-right: 5px solid var(--infographic-border-color);
    position: relative;
}

.infographic-intro-text {
    font-size: 1.15rem;
    text-align: center;
    font-weight: 500;
    color: var(--infographic-text-color);
    max-width: 900px;
    margin: 0 auto;
}

.infographic-challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.infographic-challenge-card {
    background: var(--infographic-card-bg);
    border-radius: 22px;
    padding: 35px;
    box-shadow: 0 10px 30px var(--infographic-card-shadow);
    transition: all 0.4s ease;
    border-top: 5px solid;
    position: relative;
    overflow: hidden;
}

.infographic-challenge-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--infographic-card-hover-shadow);
}

.infographic-challenge-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* رنگ‌های چالش‌ها - این‌ها ثابت می‌مانند چون بخشی از طراحی هستند */
.infographic-challenge-card:nth-child(1) { border-color: #e53e3e; }
.infographic-challenge-card:nth-child(2) { border-color: #dd6b20; }
.infographic-challenge-card:nth-child(3) { border-color: #38a169; }
.infographic-challenge-card:nth-child(4) { border-color: #805ad5; }
.infographic-challenge-card:nth-child(5) { border-color: #3182ce; }
.infographic-challenge-card:nth-child(6) { border-color: #d69e2e; }
.infographic-challenge-card:nth-child(7) { border-color: #c53030; }
.infographic-challenge-card:nth-child(8) { border-color: #2b6cb0; }

.infographic-challenge-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--infographic-challenge-number-bg);
    color: var(--infographic-challenge-number-color);
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.infographic-challenge-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--infographic-text-color);
    line-height: 1.3;
}

.infographic-challenge-section {
    margin-bottom: 18px;
}

.infographic-challenge-label {
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: var(--infographic-text-color);
}

.infographic-challenge-label.challenge::before {
    content: "⚠️";
    margin-left: 10px;
}

.infographic-challenge-label.solution::before {
    content: "✅";
    margin-left: 10px;
    color: #38a169;
}

.infographic-challenge-content {
    padding-right: 25px;
    color: var(--infographic-text-secondary);
    font-size: 1.05rem;
}

.infographic-solutions-list {
    list-style: none;
}

.infographic-solutions-list li {
    background: var(--infographic-solution-bg);
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 10px;
    border-left: 3px solid var(--infographic-solution-border);
    display: flex;
    align-items: center;
    color: var(--infographic-text-color);
}

.infographic-solutions-list li::before {
    content: "🎯";
    margin-left: 10px;
    font-size: 1.1rem;
}

.infographic-quote {
    font-style: italic;
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: var(--infographic-accent-light);
    border-radius: 12px;
    color: var(--infographic-accent-color);
    font-weight: 600;
    position: relative;
}

.infographic-quote::before, .infographic-quote::after {
    content: """;
    font-size: 2rem;
    color: var(--infographic-accent-color);
    opacity: 0.3;
    position: absolute;
}

.infographic-quote::before {
    top: -10px;
    right: 10px;
}

.infographic-quote::after {
    bottom: -20px;
    left: 10px;
    transform: rotate(180deg);
}

.infographic-benefits-section {
    background: var(--infographic-success-bg);
    color: var(--infographic-success-color);
    padding: 50px;
    border-radius: 25px;
    text-align: center;
    margin-bottom: 50px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.infographic-benefits-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.infographic-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.infographic-benefit-item {
    background: var(--infographic-benefit-bg);
    padding: 25px;
    border-radius: 18px;
    transition: transform 0.3s ease;
    color: var(--infographic-success-color);
}

.infographic-benefit-item:hover {
    transform: scale(1.05);
    background: var(--infographic-benefit-hover-bg);
}

.infographic-benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.infographic-benefit-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.infographic-conclusion {
    background: var(--infographic-conclusion-bg);
    color: var(--infographic-conclusion-color);
    padding: 50px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.infographic-conclusion-title {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.infographic-conclusion-points {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
    font-size: 1.2rem;
}

.infographic-conclusion-point {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: var(--infographic-conclusion-point-bg);
    padding: 15px;
    border-radius: 15px;
    color: var(--infographic-conclusion-color);
}

.infographic-conclusion-point::before {
    content: "✓";
    background: var(--infographic-conclusion-color);
    color: var(--infographic-conclusion-bg);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.infographic-success-secret {
    background: var(--infographic-success-secret-bg);
    padding: 25px;
    border-radius: 20px;
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 20px;
    color: var(--infographic-conclusion-color);
}

.infographic-success-secret::before {
    content: "💡";
    margin-left: 15px;
    font-size: 1.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .infographic-main-title { font-size: 2.2rem; }
    .infographic-subtitle { font-size: 1.2rem; }
    .infographic-challenges-grid { grid-template-columns: 1fr; }
    .infographic-benefits-grid { grid-template-columns: 1fr; }
    .infographic-header, .infographic-benefits-section, .infographic-conclusion { padding: 30px 20px; }
}

@media (max-width: 480px) {
    .infographic-header { padding: 25px 15px; }
    .infographic-main-title { font-size: 1.8rem; }
    .infographic-subtitle { font-size: 1rem; }
    .infographic-challenge-card { padding: 25px; }
    .infographic-challenge-title { font-size: 1.3rem; }
    .infographic-challenge-number { width: 40px; height: 40px; line-height: 40px; font-size: 1.2rem; }
    .infographic-stats-bar { gap: 15px; }
    .infographic-stat-number { font-size: 1.4rem; }
}