/* 
|--------------------------------------------------------------------------
| style.css - التصميم الموحد لموقع YallaTV
|--------------------------------------------------------------------------
*/

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #f4f6f9;
    color: #1a1a1a;
    font-family: "Segoe UI", Tahoma, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
}

/* الهيدر */
.header {
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-weight: 700;
    color: #00b36b;
    font-size: 1.5rem;
    text-decoration: none;
}
.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}
.nav-links a {
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}
.nav-links a:hover { color: #00b36b; }
.nav-links a.active { color: #00b36b; }
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: #00b36b;
    border-radius: 3px;
}

/* بطاقة مقال */
.article-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: 0.3s;
    cursor: pointer;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.article-card .category {
    display: inline-block;
    background: #e8f5e9;
    color: #00b36b;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.78rem;
    margin-bottom: 10px;
}
.article-card h2, .article-card h3 {
    color: #1a1a1a;
    font-size: 1.2rem;
    margin-bottom: 8px;
    line-height: 1.4;
}
.article-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}
.article-card .meta {
    color: #999;
    font-size: 0.8rem;
    margin-top: 10px;
    display: flex;
    gap: 15px;
}

/* شبكة المقالات */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* صفحة المقال */
.article-full {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.article-full h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #1a1a1a;
}
.article-full .article-body {
    font-size: 1.1rem;
    line-height: 2;
    color: #444;
    margin: 25px 0;
}

/* أزرار */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background: #00b36b;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}
.btn:hover { background: #00994d; transform: translateY(-2px); }

/* فوتر */
.footer {
    width: 100%;
    background: #1a1a2e;
    color: #ccc;
    padding: 30px 20px;
    text-align: center;
    margin-top: 40px;
}
.footer a {
    color: #00b36b;
    text-decoration: none;
    margin: 0 10px;
}
.footer a:hover { text-decoration: underline; }

/* صفحات ثابتة */
.static-page {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    max-width: 800px;
    margin: 20px auto;
}
.static-page h1 {
    color: #1a1a1a;
    margin-bottom: 25px;
    font-size: 1.8rem;
}
.static-page h2 {
    color: #333;
    margin: 20px 0 10px;
}
.static-page p, .static-page li {
    color: #555;
    line-height: 1.9;
    margin-bottom: 15px;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #00b36b, #00994d);
    color: #fff;
    padding: 50px 30px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 30px;
}
.hero h1 { font-size: 2.2rem; margin-bottom: 10px; }
.hero p { font-size: 1.1rem; opacity: 0.9; }

/* إعلانات */
.ad-space {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 25px 0;
    padding: 15px;
}

/* تواصل */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}
.contact-form textarea { resize: vertical; min-height: 150px; }

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
}
.breadcrumb a { color: #00b36b; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 600px) {
    .header-inner { flex-direction: column; gap: 10px; }
    .nav-links { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .articles-grid { grid-template-columns: 1fr; }
    .hero { padding: 30px 20px; }
    .hero h1 { font-size: 1.6rem; }
    .article-full h1 { font-size: 1.5rem; }
}