/*
Theme Name: harekatbar
Theme URI: https://example.com/
Author: Codex CLI
Description: قالب بسیار سبک برای ورود با موبایل و داشبورد راننده / صاحب بار.
Version: 1.0.0
Text Domain: harekatbar
*/

@font-face {
    font-family: 'IRANSans';
    src: url('fonts/IRANSans.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'IRANSans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #ededed;
    color: #111827;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: #1d4ed8;
}
button{
    font-family: 'IRANSans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    color: #111827;
    height: 54px;
    padding: 0 1rem;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.site-header-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    height: 100%;
}

.site-branding a {
    font-weight: 600;
    font-size: 1.05rem;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-logo {
    border-radius: 12px;
    max-height: 36px;
    height: auto;
    width: auto;
}

.site-header-action {
    display: flex;
    align-items: center;
}

.role-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: #111827;
}

.role-home-link:hover {
    background: #e5e7eb;
    color: #111827;
}

.site-main {
    max-width: 1080px;
    margin: 1.5rem auto;
    padding: 0 1rem 4.5rem;
}

.logout-btn {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background: #ef4444;
    color: #fff;
    font-size: 0.9rem;
    border: none;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.logout-btn:hover {
    background: #dc2626;
}

.site-footer {
    background: #ffffff;
    color: #111827;
    padding: 0.35rem 0.75rem;
    text-align: center;
    margin-top: 0;
    box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.08);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
}

.site-footer a {
    color: inherit;
}

.bottom-nav {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.5rem;
}

.bottom-nav-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.25rem 0.3rem;
    font-size: 12px;
    color: #6b7280;
}

.bottom-nav-icon {
    display: block;
    margin-bottom: 0.15rem;
    color: #4b5563;
}

.bottom-nav-icon svg {
    width: 26px;
    height: 26px;
}

.bottom-nav-label {
    display: block;
}

.site-footer-text {
    font-size: 0.75rem;
}

.home-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.home-hero-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem 1.5rem 1.4rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    text-align: center;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.home-hero-box h2 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1.15rem;
    color: #0f172a;
}

.home-hero-box p {
    margin: 0 0 0.9rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.home-hero-box a {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #111827, #020617);
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.28);
}

.home-hero-box a:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.32);
}

.home-content {
    grid-column: 1 / -1;
    margin-top: 1rem;
}

.entry-content1 {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.entry-content p {
    line-height: 1.7;
    color: #374151;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
    color: #111827;
}

.mobile-otp-card {
    margin-top: 1.25rem;
}
/* فقط موبایل (مثلاً عرض تا 768px) */
@media (max-width: 768px) {
    h1{
        font-size: 22px;
        text-align: center;
    }

  /* مثال: مخفی کردن یک عنصر در دسکتاپ و نمایش در موبایل */
  .mobile-only { display: block; }
  .desktop-only { display: none; }
}
