/**
 * استایل اصلی باکس مشاوره تخصصی
 * نسخه: 2.0.0
 */

/* استایل پایه */
.ecb-consultation-box {
    max-width: 800px;
    margin: 40px auto;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    font-family: inherit;
    direction: rtl;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

/* انیمیشن ورود */
.ecb-animated {
    animation: ecbFadeInUp 0.6s ease-out;
}

@keyframes ecbFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* طرح‌های رنگی مختلف */
.ecb-scheme-blue {
    background: linear-gradient(135deg, #2c7da0 0%, #764ba2 100%);
    color: white;
}

.ecb-scheme-green {
    background: linear-gradient(135deg, #2c7da0 0%, #38ef7d 100%);
    color: white;
}

.ecb-scheme-purple {
    background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
    color: white;
}

.ecb-scheme-orange {
    background: linear-gradient(135deg, #f12711 0%, #f5af19 100%);
    color: white;
}

.ecb-scheme-red {
    background: linear-gradient(135deg, #cb356b 0%, #bd3f32 100%);
    color: white;
}

.ecb-scheme-dark {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
}

/* هدر باکس */
.ecb-header {
    text-align: center;
    padding: 30px 30px 15px;
}

.ecb-header h3 {
    font-size: 28px;
    margin: 0 0 10px;
    font-weight: 700;
    color: inherit;
    line-height: 1.3;
}

.ecb-header p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
}

/* محتوای اصلی */
.ecb-content {
    background: rgba(255,255,255,0.1);
    padding: 25px 30px;
    backdrop-filter: blur(10px);
}

/* اطلاعات مشاور */
.ecb-consultant-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.ecb-consultant-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255,255,255,0.3);
}

.ecb-initials {
    font-size: 32px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ecb-consultant-details {
    flex: 1;
}

.ecb-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.3;
}

.ecb-title {
    font-size: 16px;
    opacity: 0.9;
    font-style: italic;
}

/* زمینه‌های تخصصی */
.ecb-expertise {
    margin-bottom: 25px;
}

.ecb-expertise h4 {
    font-size: 18px;
    margin: 0 0 15px;
    color: inherit;
    font-weight: 600;
}

.ecb-expertise ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ecb-expertise li {
    background: rgba(255,255,255,0.2);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* اطلاعات تماس */
.ecb-contact-info {
    margin-bottom: 25px;
}

.ecb-contact-info h4 {
    font-size: 18px;
    margin: 0 0 15px;
    font-weight: 600;
}

.ecb-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.ecb-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.ecb-contact-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.ecb-contact-item a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    direction: ltr;
    display: inline-block;
}

.ecb-contact-item a:hover {
    text-decoration: underline;
}

.ecb-icon {
    font-size: 20px;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
}

.ecb-label {
    opacity: 0.8;
    font-size: 13px;
}

/* ساعات کاری */
.ecb-working-hours {
    background: rgba(255,255,255,0.1);
    padding: 18px 20px;
    border-radius: 15px;
    margin: 25px 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.ecb-working-hours h4 {
    font-size: 18px;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.ecb-working-hours p {
    margin: 0;
    line-height: 1.8;
    font-size: 15px;
    opacity: 0.95;
}

/* دکمه فراخوان */
.ecb-cta {
    text-align: center;
    margin-top: 25px;
}

.ecb-highlight {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    animation: ecbPulse 2s infinite;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.ecb-highlight:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

@keyframes ecbPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255,255,255,0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(255,255,255,0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255,255,255,0);
    }
}

/* نشان (بج) */
.ecb-badge {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px 30px;
    background: rgba(0,0,0,0.2);
    font-size: 14px;
    font-weight: 500;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.ecb-badge span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* استایل پیش‌نمایش در ادمین */
.ecb-preview {
    margin: 20px 0;
    position: relative;
    border: 2px dashed #0073aa;
}

.ecb-preview::before {
    content: "پیش‌نمایش";
    position: absolute;
    top: -12px;
    right: 20px;
    background: #0073aa;
    color: white;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .ecb-consultation-box {
        margin: 20px 15px;
        border-radius: 15px;
    }
    
    .ecb-header {
        padding: 20px 20px 10px;
    }
    
    .ecb-header h3 {
        font-size: 22px;
    }
    
    .ecb-header p {
        font-size: 14px;
    }
    
    .ecb-content {
        padding: 20px;
    }
    
    .ecb-consultant-info {
        gap: 15px;
    }
    
    .ecb-consultant-avatar {
        width: 60px;
        height: 60px;
    }
    
    .ecb-initials {
        font-size: 24px;
    }
    
    .ecb-name {
        font-size: 20px;
    }
    
    .ecb-title {
        font-size: 14px;
    }
    
    .ecb-contact-grid {
        grid-template-columns: 1fr;
    }
    
    .ecb-badge {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .ecb-expertise ul {
        justify-content: center;
    }
    
    .ecb-expertise li {
        width: 100%;
        text-align: center;
    }
    
    .ecb-highlight {
        width: 100%;
        padding: 12px 20px;
    }
}