/* ============================================================================
   HOME SCREEN — Arabic landing page

   Intentionally minimal: identity, one line of description, a search box, and
   a way into the library. The stats grid, genre tags, and date-range strip
   that used to live here were removed along with their markup.
   ============================================================================ */

/* ============================================================================
   MAIN CONTAINER
   ============================================================================ */

/* `min-height: 100vh` here was the scrollbar: this sits inside .app-main,
   which is already sized to calc(100vh - nav-height), so demanding a full
   viewport of height guaranteed ~60px of overflow no matter how little
   content there was. 100% fills the parent exactly.

   Flex-centred rather than top-aligned, so the little content there is sits
   optically centred instead of stranded under the nav. min-height (not
   height) means a very short window still scrolls rather than clipping. */
.home-screen {
    width: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-home);
    padding: var(--space-6, 24px) var(--space-5, 20px);
    direction: rtl;
}

.home-content {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

/* Padding trimmed hard: the section was sized for a page that also carried
   a stats grid, genre tags and a date range. With only four elements left,
   the old spacing was what pushed the content past one screen. */
.home-hero {
    text-align: center;
    padding: 0 0 var(--space-6, 24px);
}

.home-title {
    font-family: var(--font-primary);
    font-size: var(--font-size-6xl, 3.75rem);
    color: var(--color-primary-darker);
    margin: 0 0 var(--space-1, 4px);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
}

.home-title-latin {
    font-size: 1.1rem;
    letter-spacing: 0.14em;
    color: var(--color-text-secondary);
    margin: 0 0 var(--space-4, 16px);
    direction: ltr;
}

.home-subtitle {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg, 1.125rem);
    color: var(--color-text-secondary);
    line-height: var(--line-height-arabic, 2);
    max-width: 480px;
    margin: 0 auto var(--space-8, 32px);
}

/* ============================================================================
   SEARCH BAR
   ============================================================================ */

.home-search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    border-radius: var(--radius-lg, 8px);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.home-search-input {
    flex: 1;
    padding: var(--space-3, 12px) var(--space-4, 16px);
    border: 2px solid var(--color-border-secondary, #ddd);
    border-inline-end: none;
    border-radius: var(--radius-lg, 8px) 0 0 var(--radius-lg, 8px);
    font-family: var(--font-primary);
    font-size: var(--font-size-base, 1rem);
    color: var(--color-text-primary);
    background: var(--color-white, #fff);
    outline: none;
    direction: rtl;
}

.home-search-input:focus {
    border-color: var(--color-primary);
}

.home-search-input::placeholder {
    color: var(--color-text-secondary);
}

.home-search-btn {
    padding: var(--space-3, 12px) var(--space-6, 24px);
    background: var(--color-primary);
    color: var(--color-white, #fff);
    border: none;
    font-family: var(--font-ui, sans-serif);
    font-size: var(--font-size-base, 1rem);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: background var(--duration-fast, 150ms) var(--ease-out, ease-out);
}

.home-search-btn:hover {
    background: var(--color-primary-hover, #6B3410);
}

/* ============================================================================
   CALL TO ACTION
   ============================================================================ */

.home-actions {
    display: flex;
    gap: var(--space-4, 16px);
    justify-content: center;
    padding-bottom: 0;
}

.home-cta-btn {
    padding: var(--space-3, 12px) var(--space-8, 32px);
    font-family: var(--font-primary);
    font-size: var(--font-size-lg, 1.125rem);
    font-weight: var(--font-weight-semibold);
    border: none;
    border-radius: var(--radius-lg, 8px);
    cursor: pointer;
    transition: transform var(--duration-fast, 150ms) var(--ease-out, ease-out),
                box-shadow var(--duration-fast, 150ms) var(--ease-out, ease-out);
}

.home-cta-btn:hover {
    transform: translateY(-2px);
}

.home-cta-primary {
    background: var(--color-primary);
    color: var(--color-white, #fff);
    box-shadow: var(--shadow-md);
}

.home-cta-primary:hover {
    box-shadow: var(--shadow-lg);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .home-screen {
        padding: var(--space-6, 24px) var(--space-4, 16px) var(--space-10, 40px);
    }

    .home-title {
        font-size: var(--font-size-4xl, 2.25rem);
    }

    .home-actions {
        flex-direction: column;
        align-items: center;
    }

    .home-cta-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .home-title {
        font-size: var(--font-size-3xl, 1.875rem);
    }

    .home-search-form {
        flex-direction: column;
        border-radius: var(--radius-lg, 8px);
    }

    .home-search-input {
        border-inline-end: 2px solid var(--color-border-secondary, #ddd);
        border-radius: var(--radius-lg, 8px) var(--radius-lg, 8px) 0 0;
    }

    .home-search-btn {
        border-radius: 0 0 var(--radius-lg, 8px) var(--radius-lg, 8px);
    }
}
