* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Tahoma', sans-serif; }

body { background: #f5f5f5; color: #111827; line-height: 1.6; }

/* الهيدر */
header {
    background: #dc2626;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    gap: 20px;
}

.logo-container { display: flex; align-items: center; gap: 15px; }
.logo { width: 60px; height: 60px; background: white; border-radius: 50%; padding: 3px; }
.logo-text h1 { font-size: 24px; color: white; margin-bottom: 2px; }
.logo-text p { font-size: 12px; color: #fee2e2; }

.header-search {
    display: flex;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    flex: 1;
    max-width: 350px;
}
.header-search input {
    border: none;
    padding: 10px 18px;
    width: 100%;
    outline: none;
    font-size: 14px;
}
.header-search button {
    background: #991b1b;
    color: white;
    border: none;
    padding: 0 18px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}
.header-search button:hover { background: #7f1d1d; }

nav a {
    color: white;
    text-decoration: none;
    margin: 0 8px;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
    white-space: nowrap;
}
nav a:hover { color: #fecaca; }

/* الرئيسية */
.hero {
    text-align: center;
    padding: 70px 20px;
    background: linear-gradient(135deg, #ffffff, #fee2e2);
    border-bottom: 4px solid #dc2626;
}
.hero h2 { font-size: 34px; margin-bottom: 15px; color: #991b1b; }
.hero p { font-size: 18px; color: #374151; }

section { padding: 60px 40px; }
h2 { text-align: center; margin-bottom: 35px; color: #991b1b; font-size: 28px; }

/* الكروت */
.cards { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; }
.card {
    background: white;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
    width: 240px;
    overflow: hidden;
    border-top: 5px solid #dc2626;
    cursor: pointer;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 8px 25px rgba(220,38,38,0.25); }
.card img { width: 100%; height: 160px; object-fit: cover; }
.card h3 { margin: 15px 0 8px; color: #111827; }
.card p { padding: 0 15px 20px; color: #6b7280; font-size: 14px; }

/* صفحة العمال */
.page-title {
    text-align: center;
    padding: 50px 20px 20px;
    background: linear-gradient(135deg, #ffffff, #fee2e2);
}
.page-title h2 { margin-bottom: 10px; }
.page-title p { color: #6b7280; font-size: 16px; }

.filter-section { padding: 20px 40px 0; }
.filter { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.filter input, .filter select {
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    min-width: 200px;
}
.filter input:focus, .filter select:focus { border-color: #dc2626; }

/* العمال */
.workers-section { padding: 40px; }
.workers { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; }
.worker {
    background: white;
    padding: 22px 18px;
    border-radius: 15px;
    text-align: center;
    width: 250px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
    border-bottom: 4px solid #dc2626;
}
.worker:hover { transform: translateY(-5px); }
.worker .avatar {
    font-size: 55px;
    background: #fee2e2;
    width: 85px;
    height: 85px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.worker h3 { color: #111827; margin-bottom: 8px; }
.worker p { color: #374151; font-size: 13px; margin-bottom: 4px; text-align: right; padding-right: 10px; }
.worker p.price {
    color: #dc2626;
    font-size: 14px;
    font-weight: bold;
    background: #fee2e2;
    padding: 6px 10px;
    border-radius: 8px;
    margin: 8px 0;
    text-align: center;
    padding-right: 0;
}
.worker button {
    background: #dc2626;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
    margin-top: 10px;
}
.worker button:hover { background: #b91c1c; }

/* قسم تسجيل الدخول */
.auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #ffffff, #fee2e2);
}
.auth-box {
    background: white;
    padding: 40px 35px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.15);
    width: 100%;
    max-width: 450px;
    border-top: 5px solid #dc2626;
}
.auth-box h2 {
    text-align: center;
    color: #991b1b;
    margin-bottom: 8px;
    font-size: 26px;
}
.auth-sub {
    text-align: center;
    color: #6b7280;
    margin-bottom: 25px;
    font-size: 14px;
}
.auth-box form { display: flex; flex-direction: column; gap: 6px; }
.auth-box label {
    font-size: 14px;
    font-weight: bold;
    color: #374151;
    margin-top: 8px;
    margin-bottom: 2px;
}
.auth-box input,
.auth-box select {
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
    font-family: inherit;
    background: #fafafa;
}
.auth-box input:focus,
.auth-box select:focus {
    border-color: #dc2626;
    background: white;
}
.auth-box button {
    margin-top: 20px;
    background: #dc2626;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s;
}
.auth-box button:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}
.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: #6b7280;
    font-size: 14px;
}
.auth-switch a {
    color: #dc2626;
    text-decoration: none;
    font-weight: bold;
}
.auth-switch a:hover { text-decoration: underline; }

footer { text-align: center; padding: 25px; background: #111827; color: white; margin-top: 50px; }

/* تأثير التمرير */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* موبايل */
@media (max-width: 900px) {
    header { flex-direction: column; gap: 10px; padding: 12px; }
    .header-search { max-width: 100%; width: 100%; }
    nav a { font-size: 14px; margin: 0 5px; }
}
