/* הגדרות בסיסיות לכל האתר */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #1a1a1a;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    overflow-x: hidden;
}

/* שורה עליונה (Banner) - עיצוב מדהים וקומפקטי */
.banner {
    background-color: #5b21b6;
    background-image: linear-gradient(90deg, #5b21b6, #8b5cf6);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 1.1em;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.4s ease-in-out;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* שינוי כדי לאפשר מיקום יחסי */
}

/* כפתור התחברות - עיצוב חדש */
.login-button {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: white;
    border: 1px solid white;
    padding: 6px 12px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.login-button:hover {
    background-color: white;
    color: #5b21b6;
}

/* כפתור נגישות */
.accessibility-button {
    color: white;
    text-decoration: none;
    background-color: #4b4b4b;
    padding: 8px 12px;
    border-radius: 5px;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1001;
}

/* כותרות - עיצוב מדהים ודרמטי */
h1, h2 {
    color: #1e1e1e;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

h2 {
    font-size: 3em;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background-color: #5b21b6;
    border-radius: 2px;
}

/* עיצוב כללי של קטעים - אפקט טעינה */
section {
    padding: 80px 5%;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding-top: 200px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, #f0f2f5 0%, #e2e8f0 100%);
}

.hero-section h1 {
    font-size: 4em;
    margin-bottom: 0.5em;
    color: #2c0b5c;
    letter-spacing: -1px;
}

.hero-section .subtitle {
    font-size: 1.5em;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.cta-button {
    display: inline-block;
    background-image: linear-gradient(to right, #5b21b6, #8b5cf6);
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 600;
    transition: background-image 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(91, 33, 182, 0.3);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(91, 33, 182, 0.4);
}

/* קטע איך זה עובד? - עיצוב מדהים ואפקטים */
.how-it-works-section {
    background-color: white;
    text-align: center;
}
.step-container {
    display: flex;
    justify-content: center;
    gap: 40px;
}
.step {
    max-width: 300px;
    text-align: center;
    padding: 30px;
    background-color: #f9fafb;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.step-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #5b21b6;
    background-color: #e2d7f9;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}
.step:hover .step-number {
    transform: scale(1.1);
    background-image: linear-gradient(45deg, #5b21b6, #8b5cf6);
    color: white;
}

/* Feature Section */
.features-section {
    background-color: #f9fafb;
    text-align: center;
    padding-bottom: 100px;
}

.feature-item {
    display: inline-block;
    width: 40%;
    margin: 1% 4%;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    background-color: white;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.feature-item img {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

/* גלריית דוגמאות */
.examples-section {
    text-align: center;
    background-color: #e2e8f0;
}
.example-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.example-video-placeholder {
    width: 300px;
    height: 180px;
    background-color: #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.example-video-placeholder:hover {
    transform: scale(1.05);
}

/* שאלות נפוצות */
.faq-section {
    background-color: white;
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid #e2e2e2;
    padding: 20px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.faq-item:hover {
    background-color: #f9f9f9;
}
.faq-item h3 {
    margin: 0;
    font-size: 1.2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item .answer {
    display: none;
    margin-top: 10px;
    padding-right: 15px;
    border-right: 3px solid #5b21b6;
}

/* עיצוב כללי של עמוד בקשת הגישה */
.page-header {
    text-align: center;
    padding: 100px 5%;
    background: linear-gradient(135deg, #f0f2f5 0%, #e2e8f0 100%);
}

.form-section {
    padding: 50px 5%;
    background-color: white;
    text-align: center;
}

.access-form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.access-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #4cae4c;
}

/* פוטר */
footer {
    text-align: center;
    padding: 30px;
    background-color: #1e1e1e;
    color: white;
}

/* עיצוב פאנל המשתמש */
.dashboard-header {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

.dashboard-content {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* עיצוב ספציפי לפאנל המשתמש */
.page-header {
    background-color: #3b82f6; /* צבע כחול */
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-header h1 {
    font-size: 2.8em;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2em;
}

.dashboard-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.dashboard-content h2 {
    color: #1a1a1a;
    font-size: 2em;
    text-align: right;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.access-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.access-form textarea,
.access-form input[type="text"],
.access-form input[type="file"],
.access-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    text-align: right;
    direction: rtl;
    transition: border-color 0.3s ease;
}

.access-form textarea:focus,
.access-form input:focus,
.access-form select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.access-form label {
    font-weight: 600;
    color: #4b5563;
    margin-top: 5px;
}

.submit-button {
    background-color: #10b981; /* צבע ירוק-טורקיז */
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #059669;
}

#logoutButton {
    background-color: #ef4444; /* צבע אדום */
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 15px;
    font-size: 0.9em;
}

#logoutButton:hover {
    background-color: #dc2626;
}

#videoStatusMessage {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

#videosList {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

#videosList h3 {
    font-size: 1.5em;
    color: #1f2937;
    margin-bottom: 5px;
}

#videosList a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: bold;
}

/* עיצוב עבור אינדיקטור טעינה והודעות */
.message-container {
    text-align: center;
    margin-top: 20px;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #5b21b6;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-text {
    font-size: 1.1em;
    color: #4b5563;
}

/* עיצוב עבור הודעות הצלחה ושגיאה */
.message-div {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 1em;
    font-weight: 600;
}

.success {
    background-color: #d1f7d1;
    color: #1a7e1a;
}

.error {
    background-color: #f7d1d1;
    color: #9b2020;
}