/**
 * Oshrib Ehud Simulator - CSS Styles
 * Version: 1.5.0
 */

/* עיצוב כללי לתוצאות */
.met, .notmet {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    margin: 30px auto;
    max-width: 800px;
    line-height: 1.8;
    font-size: 18px;
}

/* תוצאה חיובית - עבר את התנאים */
.met {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #1b5e20;
    border: 3px solid #4caf50;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.met strong {
    color: #2e7d32;
    font-weight: bold;
}

/* תוצאה שלילית - לא עבר את התנאים */
.notmet {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #b71c1c;
    border: 3px solid #f44336;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.2);
}

.notmet strong {
    color: #c62828;
    font-weight: bold;
}

/* עיצוב wrapper לכפתורים */
.button-wrapper, .phone-button-wrapper {
    margin: 30px auto;
    text-align: center;
    display: block;
}

/* עיצוב כפתור הטלפון */
.phone-button {
    display: inline-block;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
    color: white !important;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    border: none;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.phone-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.phone-button:hover::before {
    left: 100%;
}

.phone-button:hover {
    background: linear-gradient(135deg, #45a049 0%, #388e3c 100%) !important;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
    transform: translateY(-3px) scale(1.05);
}

.phone-button:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

/* עיצוב כפתור אלטרנטיבי (להלוואה אחרת) */
.button.small.failed-error {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff5722 0%, #f44336 100%);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.3);
}

.button.small.failed-error:hover {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    box-shadow: 0 7px 20px rgba(244, 67, 54, 0.4);
    transform: translateY(-2px);
}

.button.small.failed-error img.thumb {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.button.small.failed-error:hover img.thumb {
    transform: translateX(-5px);
}

/* תמיכה ב-RTL */
[dir="rtl"] .phone-button,
[dir="rtl"] .button.small.failed-error {
    direction: rtl;
}

[dir="rtl"] .button.small.failed-error:hover img.thumb {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .met, .notmet {
        padding: 20px 15px;
        font-size: 16px;
        margin: 20px 10px;
    }
    
    .phone-button {
        padding: 15px 30px;
        font-size: 18px;
        width: 90%;
        max-width: 350px;
    }
    
    .button.small.failed-error {
        padding: 12px 25px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .met, .notmet {
        font-size: 14px;
        padding: 15px 10px;
    }
    
    .phone-button {
        font-size: 16px;
        padding: 12px 25px;
    }
}

/* אנימציות */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.met, .notmet, .phone-button, .button-wrapper {
    animation: fadeIn 0.5s ease-out;
}

/* מצב טעינה */
.phone-button.loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.phone-button.loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}