/*
 * ملعبنا – Supplementary Styles
 * Additions on top of style.css
 * @package malabna
 */

/* ─── Sticky Header ─────────────────────────────────────────── */
.site-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease;
}
.site-header.header-hidden { transform: translateY(-100%); transition: transform 0.3s ease; }
.site-header.sticky { transition: transform 0.3s ease; }
body:has(.site-header.sticky) { padding-top: 80px; }

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

/* ─── Mobile Menu Button ────────────────────────────────────── */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
}

/* ─── Mobile Nav ────────────────────────────────────────────── */
.mobile-nav {
    background: #0f2840;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 12px 0;
}
.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-nav ul li a {
    display: block;
    color: rgba(255,255,255,0.82);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s ease;
}
.mobile-nav ul li a:hover {
    color: var(--color-orange);
    background: rgba(255,107,0,0.05);
    padding-right: 32px;
}

/* ─── Header Search Panel ───────────────────────────────────── */
.header-search {
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.header-search .search-form {
    display: flex;
    gap: 8px;
    align-items: center;
}
.header-search .search-field {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    outline: none;
}
.header-search .search-field::placeholder { color: rgba(255,255,255,0.4); }
.header-search .search-field:focus { border-color: var(--color-orange); }
.header-search .search-submit {
    background: var(--color-orange);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-primary);
    transition: background 0.2s ease;
}
.header-search .search-submit:hover { background: var(--color-orange-hover); }

/* ─── Category Colors ───────────────────────────────────────── */
.cat-كرة-القدم  { background: #0d2137; }
.cat-كرة-السلة { background: #c0392b; }
.cat-تنس        { background: #27ae60; }
.cat-سباقات     { background: #8e44ad; }

/* ─── Article Card Full-width variant ──────────────────────── */
.article-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.article-card--featured .article-card__image { height: 100%; min-height: 240px; }
.article-card--featured .article-card__body { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.article-card--featured .article-card__title { font-size: 1.2rem; -webkit-line-clamp: 3; }

/* ─── Comment form styles ───────────────────────────────────── */
.comment-list { list-style: none; padding: 0; }
.comment-body {
    background: #fff;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.comment-author .fn { font-weight: 700; color: var(--color-navy-dark); }
.comment-content { margin-top: 8px; font-size: 0.9rem; line-height: 1.7; }
.comment-reply-link {
    color: var(--color-orange);
    font-size: 0.78rem;
    font-weight: 600;
}
#commentform input,
#commentform textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.2s;
}
#commentform input:focus,
#commentform textarea:focus { border-color: var(--color-orange); }
#commentform .submit {
    background: var(--color-orange);
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.9rem;
}

/* ─── 404 Page ──────────────────────────────────────────────── */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}
.error-404 h1 {
    font-size: 6rem;
    font-weight: 900;
    color: var(--color-orange);
    line-height: 1;
}
.error-404 h2 { font-size: 1.4rem; color: var(--color-navy-dark); margin-bottom: 16px; }
.error-404 p  { color: var(--color-text-medium); margin-bottom: 24px; }

/* ─── No Posts ──────────────────────────────────────────────── */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.no-posts h2 { color: var(--color-navy-dark); margin-bottom: 12px; }
.no-posts p  { color: var(--color-text-medium); }

/* ─── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb a { color: var(--color-navy-dark); }
.breadcrumb a:hover { color: var(--color-orange); }

/* ─── Print ─────────────────────────────────────────────────── */
@media print {
    .topbar, .site-header, .hero-slider, .sidebar, .breaking-news,
    .site-footer, .hero-dots, .pagination, .entry-share, .widget-ad { display: none !important; }
    .content-layout { grid-template-columns: 1fr !important; }
    .entry-title { font-size: 1.5rem; }
    .entry-content { font-size: 12pt; line-height: 1.6; }
}
