/* קובץ: style-components.css */
/* תיאור: סגנונות עבור רכיבים ספציפיים כמו כפתורים, קרוסלה, מאמרים ותפריט נפתח */

/* כפתורים */
.auth-buttons a {
    display: block;
    width: 90%;
    background: #1f2937;
    color: #ffffff;
    border: none;
    padding: 12px 10px;
    margin: 5px 0;
    cursor: pointer;
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.auth-buttons a:hover {
    background: #3b82f6;
    color: #ffffff;
}

/* כפתור הרשמה בדף נחיתה */
.signup-button {
    display: block;
    width: 200px; /* רוחב קבוע לכפתור */
    background: #1f2937;
    color: #ffffff;
    border: none;
    padding: 12px 10px;
    margin: 20px auto; /* מרכז את הכפתור */
    cursor: pointer;
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.signup-button:hover {
    background: #3b82f6;
    color: #ffffff;
}

/* סגנון כללי לדף נחיתה */
.landing-content {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    text-align: right;
}

.landing-content h2 {
    color: #1f2937;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.landing-content p {
    color: #374151;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.landing-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.landing-content ul li {
    margin-bottom: 10px;
    color: #374151;
}

.landing-content ul li strong {
    color: #1f2937;
}

.call-to-action {
    text-align: center;
    margin-top: 20px;
}

/* שאר הסגנונות נשארים כפי שהיו */
.user-greeting {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    padding: 10px;
    background: #3b82f6;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    font-family: 'Rubik', sans-serif;
}

/* טופס התחברות */
.login-container {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.login-container h1 {
    color: #1f2937;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.login-container label {
    color: #1f2937;
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

.login-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    color: #1f2937;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background: #1f2937;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-container button:hover {
    background: #3b82f6;
}

.login-container .error {
    color: #e74c3c;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

/* קרוסלה */
.carousel {
    margin-top: 20px;
    padding: 10px;
    background: #ffffff;
    text-align: center;
    width: 80%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 200px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e0e0e0;
}

.carousel-content {
    animation: scroll 20s linear infinite;
    min-height: 400px;
}

.carousel:hover .carousel-content {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.carousel h2 {
    margin-bottom: 15px;
    font-size: 1.5em;
    color: #1f2937;
}

.carousel h3 {
    margin: 10px 0;
    font-size: 1.2em;
    color: #374151;
}

.carousel p {
    margin: 10px 0;
    color: #374151;
}

.carousel a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.carousel a:hover {
    color: #2563eb;
}

/* מאמרים */
.articles {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 10px;
}

.article {
    background: #ffffff;
    width: 30%;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.3s ease;
}

.article:hover {
    transform: translateY(-5px);
}

.article h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #1f2937;
}

.article p {
    margin-bottom: 10px;
    color: #374151;
    font-size: 0.9em;
    line-height: 1.4;
}

.article a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    margin-top: auto;
}

.article a:hover {
    color: #2563eb;
}

/* תמונה בתוך כתבה */
.article-image {
    width: 100%;
    height: 150px;
    background: #e0e0e0;
    border-radius: 8px;
    object-fit: cover;
}

/* תפריט נפתח */
.nav ul.dropdown {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    position: relative;
}

.nav ul.dropdown li.dropdown-toggle {
    display: block;
    color: #ffffff;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 20px;
    cursor: pointer;
}

.nav ul.dropdown li.dropdown-toggle:hover {
    color: #3b82f6;
}

.nav ul.dropdown ul.dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    right: 0;
    background: #4b5563;
    list-style: none;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    min-width: 150px;
}

.nav ul.dropdown li.dropdown-toggle:hover ul.dropdown-menu {
    display: block !important;
}

.nav ul.dropdown ul.dropdown-menu li {
    margin: 0;
}

.nav ul.dropdown ul.dropdown-menu li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 15px;
    display: block;
    transition: all 0.3s ease;
}

.nav ul.dropdown ul.dropdown-menu li a:hover {
    color: #3b82f6;
    background: rgba(255, 255, 255, 0.1);
}

/* תיבת פירוט חישוב (DEBUG) */
#debugContainer {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 14px;
    color: #374151;
}

/* סוף קובץ: style-components.css */