/* استایل‌های عمومی پلاگین */
* {
    box-sizing: border-box;
}


/* استایل‌های تبلیغات داخل محتوا */
.math-ads-content-box {
    direction: rtl;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
    padding: 20px;
    border-right: 4px solid #4285f4;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.math-ads-feature h4 {
    color: #1a73e8;
    margin-top: 0;
    font-size: 18px;
}

.math-ads-feature p {
    color: #202124;
    font-size: 16px;
    margin-bottom: 10px;
}

.math-ads-cta {
    margin-top: 15px;
}

.math-ads-cta p {
    font-weight: bold;
    color: #202124;
    margin-bottom: 10px;
}

.math-ads-consult-btn {
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.math-ads-consult-btn:hover {
    background-color: #0d5bdd;
}

/* استایل‌های تبلیغات شناور */
.math-ads-floating {
    direction: rtl;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s, transform 0.5s;
    display: none;
}

.math-ads-floating.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.math-ads-floating-header {
    background-color: #1a73e8;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.math-ads-floating-header h4 {
    margin: 0;
    font-size: 16px;
}

.math-ads-close {
    cursor: pointer;
    font-size: 24px;
}

.math-ads-floating-content {
    padding: 15px;
}

.math-ads-feature-slider {
    overflow: hidden;
    margin-bottom: 15px;
}

.math-ads-features-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.math-ads-feature-item {
    min-width: 100%;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 15px;
}

.math-ads-floating-cta {
    text-align: center;
}

/* استایل‌های مودال */
.math-ads-modal {
    direction: rtl;
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.math-ads-modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: right;
    position: relative;
}

.math-ads-modal-close {
    position: absolute;
    left: 25px;
    top: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.math-ads-modal-close:hover {
    color: #555;
}

.math-ads-modal h3 {
    color: #1a73e8;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
}

.math-ads-form {
    display: flex;
    margin-top: 20px;
}

.math-ads-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
    direction: ltr;
    text-align: left;
}

.math-ads-form button {
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

.math-ads-form button:hover {
    background-color: #0d5bdd;
}

#math-ads-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

#math-ads-message.error {
    background-color: #ffebee;
    color: #c62828;
}

#math-ads-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

/* استایل‌های واکنش‌گرا برای موبایل */
@media (max-width: 768px) {
    .math-ads-content-box {
        padding: 15px;
    
    }
    
    .math-ads-floating {
        width: 100%;
        max-width: 100%;
        right: 0;
        left: 0;
        transform: translateY(-20px);
        top: 0;
        bottom: auto;
        font-size: 14px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        border-radius: 0 0 10px 10px;
        max-height: 30vh;
        overflow-y: auto;
    }
    
    .math-ads-floating.show {
        transform: translateY(0);
    }
    
    .math-ads-floating-header {
        padding: 8px 15px;
        position: sticky;
        top: 0;
        background-color: #1a73e8;
        z-index: 10;
    }
    
    .math-ads-floating-header h4 {
        font-size: 15px;
    }
    
    .math-ads-floating-content {
        padding: 8px;
    }
    
    .math-ads-feature-slider {
        margin-bottom: 8px;
    }
    
    .math-ads-feature-item {
        padding: 5px;
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .math-ads-timer-container {
        margin: 5px 0;
        padding: 3px 8px;
        font-size: 12px;
    }
    
    .math-ads-countdown {
        font-size: 14px;
        min-width: 40px;
        padding: 1px 4px;
    }
    
    .math-ads-consult-btn {
        padding: 6px 14px;
        font-size: 14px;
    }
    
    .math-ads-form {
        flex-direction: column;
    }
    
    .math-ads-form input {
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    .math-ads-form button {
        border-radius: 5px;
    }
    
    .math-ads-modal-content {
        margin: 15% auto;
        padding: 20px;
        width: 92%;
    }
    
    .math-ads-modal h3 {
        font-size: 18px;
    }
}

/* استایل افکت تایپ */
.math-ads-typewriter {
    display: inline-block;
    overflow: hidden;
    border-right: 2px solid;
    white-space: nowrap;
    animation: blink-caret 0.75s step-end infinite;
    margin: 0 auto;
    letter-spacing: 0.15em;
}

.math-ads-typewriter.completed {
    border-right: none;
    animation: none;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: black; }
}

.math-ads-people-counter-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.math-ads-people-counter {
    color: #e53935;
    font-weight: bold;
}

.math-ads-people-counter-icon {
    font-size: 18px;
    margin-right: 3px;
}

.math-ads-timer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 10px 0;
    background-color: #fff3e0;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}

.math-ads-timer-label {
    white-space: nowrap;
}

.math-ads-countdown {
    color: #e53935;
    font-weight: bold;
    font-size: 18px;
    min-width: 50px;
    text-align: center;
    background: rgba(255,255,255,0.6);
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.math-ads-countdown.expired {
    color: #9e9e9e;
}

.math-ads-advanced-box {
    background-color: #f1f8ff;
    border-right: none;
    border-top: 4px solid #4285f4;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    padding-top: 30px;
}

.math-ads-advanced-box::before {
    content: "پیشنهاد ویژه";
    position: absolute;
    top: 10px;
    right: -35px;
    transform: rotate(45deg);
    background-color: #e53935;
    color: white;
    padding: 3px 40px;
    font-size: 12px;
}

.math-ads-advanced-title {
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 17px;
}

.math-ads-advanced-feature {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.math-ads-advanced-feature-icon {
    font-size: 24px;
    background-color: #e8f0fe;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    flex-shrink: 0;
}

.math-ads-advanced-cta {
    text-align: center;
    margin-top: 15px;
}

.math-ads-pulsing-btn {
    animation: pulse 1.5s infinite;
    font-size: 18px;
    padding: 12px 24px;
    background-color: #e53935;
    box-shadow: 0 4px 20px rgba(229, 57, 53, 0.4);
}

.math-ads-pulsing-btn:hover {
    background-color: #d32f2f;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
} 