﻿/* ============================================= */
/* Custom Course Form                             */
/* ============================================= */

.custom-course-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f0f6ff, #e8f0fe);
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.custom-banner-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.custom-banner-btn:hover {
    background: #0b5ed7;
}

.custom-course-form {
    padding: 32px 28px;
    max-width: 500px;
    margin: 0 auto;
}

.custom-form-back-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.custom-form-back-btn:hover {
    color: #0b5ed7;
}

.custom-form-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 6px 0;
}

.custom-form-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
}

.custom-form-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.custom-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.custom-form-group label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.required-star {
    color: var(--danger-color);
}

.custom-input {
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
    width: 100%;
}

.custom-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.custom-input::placeholder {
    color: #adb5bd;
}

.custom-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.custom-form-error {
    display: none;
    color: var(--danger-color);
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

.custom-form-submit-btn {
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.custom-form-submit-btn:hover {
    background: #0b5ed7;
}

.custom-form-submit-btn:active {
    transform: scale(0.98);
}

/* Success State */
.custom-success-msg {
    text-align: center;
    padding: 60px 28px;
}

.custom-success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.custom-success-msg h4 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.custom-success-msg p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
}

.custom-success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.custom-success-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--primary-color);
    color: white;
}

.custom-success-btn:hover {
    background: #0b5ed7;
}

.custom-success-btn.secondary {
    background: var(--bg-main);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.custom-success-btn.secondary:hover {
    background: #e9ecef;
}

/* Custom Badge */
.custom-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 10px;
    background: #fff8e1;
    color: #f59e0b;
    border: 1px solid #fcd34d;
    margin-right: 6px;
    vertical-align: middle;
}

/* Mobile */
@media (max-width: 768px) {
    .custom-course-form {
        padding: 24px 20px;
    }

    .custom-form-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .custom-course-banner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 14px 16px;
    }

    .custom-banner-btn {
        width: 100%;
    }

    .custom-success-actions {
        flex-direction: column;
    }
}
/* ============================================= */
/* Top Disclaimer Banner                          */
/* ============================================= */

.top-disclaimer-banner {
    display: flex;
    align-items: center;
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 24px;
    color: #92400e;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.05);
    gap: 12px;
}

.disclaimer-icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
}

.disclaimer-text-content {
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

.close-disclaimer-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: #92400e;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
    font-family: sans-serif;
}

.close-disclaimer-btn:hover {
    opacity: 1;
}

/* התאמה למובייל */
@media (max-width: 768px) {
    .top-disclaimer-banner {
        align-items: flex-start;
    }
}
.beta-badge {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    line-height: 1.2;
    margin-right: -2px; /* מצמצם טיפה את הרווח מהטקסט */
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
}

/* במובייל הטקסט של הלוגו נעלם, אז נעלים גם את הבטא כדי לחסוך מקום במסך */
@media (max-width: 768px) {
    .beta-badge {
        display: none;
    }
}
/* הצגת תגית הבטא גם במובייל */
@media (max-width: 768px) {
    .logo .beta-badge {
        display: inline-block !important;
        margin-right: 8px; /* עושה קצת רווח מהאייקון כי הטקסט של הלוגו נעלם */
    }
}

.row-review-star {
    cursor: pointer;
    font-size: 12px;
    margin-inline-start: 6px;
    opacity: 0.7; /* אפור/שקוף בברירת מחדל */
    transition: all 0.2s ease;
    vertical-align: middle;
    display: inline-flex;
}



.row-review-star:hover {
    opacity: 1 !important;
    transform: scale(1.3);
    filter: drop-shadow(0 0 2px rgba(245, 166, 35, 0.5));
}

/* ============================================= */
/* ===== Welcome / Onboarding Screen            */
/* ============================================= */

.welcome-hero-state {
    text-align: center;
    padding: 80px 24px 60px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

.welcome-hero-state .welcome-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.25);
}

.welcome-hero-state .welcome-icon svg {
    color: white;
}

.welcome-hero-state h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px;
    line-height: 1.3;
}

.welcome-hero-state .welcome-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 40px;
    line-height: 1.6;
}

.welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.welcome-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 340px;
    padding: 14px 24px;
    border-radius: 12px;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.welcome-btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.3);
}

.welcome-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(13, 110, 253, 0.4);
}

.welcome-btn-secondary {
    background: var(--bg-main);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.welcome-btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.welcome-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 340px;
    margin: 8px 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.welcome-divider::before,
.welcome-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.welcome-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 340px;
    padding: 12px 24px;
    border-radius: 12px;
    background: white;
    border: 1px solid var(--border-color);
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.welcome-google-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.welcome-google-btn svg {
    flex-shrink: 0;
}

/* ============================================= */
/* ===== Demo Mode Banner                        */
/* ============================================= */

.demo-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    font-size: 14px;
    font-weight: 600;
    max-width: 90%;
    animation: demo-banner-slide-up 0.4s ease-out;
}

@keyframes demo-banner-slide-up {
    from { transform: translateX(-50%) translateY(100px); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0);     opacity: 1; }
}

.demo-banner span {
    flex: 1;
    text-align: right;
}

.demo-banner button {
    background: white;
    color: #1e293b;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-family: var(--font-family);
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    transition: background 0.2s;
}

.demo-banner button:hover {
    background: #e2e8f0;
}

@media (max-width: 768px) {
    .welcome-hero-state {
        padding: 50px 20px 40px;
    }

    .welcome-hero-state h2 {
        font-size: 22px;
    }

    .welcome-hero-state .welcome-subtitle {
        font-size: 14px;
    }

    .demo-banner {
        bottom: 80px; /* above the bottom nav on mobile */
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 14px 20px;
    }

    .demo-banner span {
        text-align: center;
    }
}
