﻿/* Public layout – homepage hero aligned with member pages */

#mt-main.ah-home-page {
    overflow-x: clip;
    padding-top: .125rem;
    padding-bottom: 1.75rem;
    background: #fff;
    color: var(--ah-text);
    min-height: auto;
}

/* Shared orange hero block (matches .ah-up-hero on member pages) */
.ah-home-page .ah-up-hero {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(135deg, #f6a400 0%, #f7b733 52%, #f6cd67 100%);
    color: #fff;
    box-shadow: 0 20px 44px rgba(245, 159, 0, .22);
}

.ah-home-page .ah-up-hero::after {
    content: "";
    position: absolute;
    inset: auto -60px -60px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
    filter: blur(2px);
    pointer-events: none;
}

.ah-home-page .ah-home-hero {
    padding: .65rem 1rem;
    border-radius: 1.3rem;
}

.ah-home-page .ah-home-hero-content {
    z-index: 2;
    min-width: 0;
}

.ah-home-page .ah-home-hero .ah-hero-icon {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 14px;
    background: rgba(255, 255, 255, .18);
}

.ah-home-page .ah-home-hero .ah-hero-icon i {
    font-size: 1.25rem !important;
    line-height: 1;
}

.ah-home-page .ah-home-hero .title {
    margin-bottom: .15rem !important;
    color: #fff;
    font-size: clamp(1.4rem, 1.2rem + .55vw, 1.7rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.ah-home-page .ah-home-hero .sub {
    color: rgba(255, 255, 255, .92);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.25;
}

.ah-home-page .ah-home-filter-toggle {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    box-shadow: none;
    transition: background-color .18s ease, border-color .18s ease;
}

.ah-home-page .ah-home-filter-toggle:hover,
.ah-home-page .ah-home-filter-toggle:focus-visible {
    border-color: rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.ah-home-page .ah-home-layout {
    margin-top: 0;
}

/* Legacy main.css adds padding-top: 20px to #sidebar — removed for public shell */
.ah-home-page #sidebar.sidebarkategoriler {
    padding-top: 0 !important;
}

.ah-sticky-lg {
    position: sticky;
    top: 1.5rem;
}

.ah-sidebar-stack {
    gap: 1rem;
}

.ah-sidebar-block--filter {
    margin-top: -.1rem;
}

.ah-sidebar-block--highlights {
    margin-top: .5rem;
}

@media (max-width: 991.98px) {
    .ah-sticky-lg {
        position: static;
        top: auto;
    }
}

@media (max-width: 575.98px) {
    #mt-main.ah-home-page {
        padding-top: 0;
        padding-bottom: 1rem;
    }

    #mt-main.ah-home-page > .container {
        padding-right: .75rem;
        padding-left: .75rem;
    }

    .ah-home-page .ah-home-hero {
        padding: .55rem .7rem;
        border-radius: 1.05rem;
    }

    .ah-home-page .ah-home-hero-content {
        gap: .6rem !important;
    }

    .ah-home-page .ah-home-hero .ah-hero-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .ah-home-page .ah-home-hero .ah-hero-icon i {
        font-size: 1.05rem !important;
    }

    .ah-home-page .ah-home-hero .title {
        margin-bottom: .08rem !important;
        font-size: 1.12rem;
        line-height: 1.08;
    }

    .ah-home-page .ah-home-hero .sub {
        font-size: .74rem;
        line-height: 1.2;
    }

    .ah-home-page .ah-home-layout {
        --bs-gutter-x: 0;
        --bs-gutter-y: .85rem;
    }
}

/* Legacy hero – kept for search/other public pages still using ah-page-hero */
#mt-main:not(.ah-home-page) {
    background:
        radial-gradient(circle at top right, rgba(245, 159, 0, .08), transparent 25%),
        linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    min-height: 100vh;
}

.ah-page-hero {
    position: relative;
    overflow: hidden;
    margin-top: 4px;
    padding: 1.5rem 1.25rem;
    color: #fff;
    border-radius: 1.75rem;
    box-shadow: var(--ah-shadow);
    background:
        linear-gradient(135deg, rgba(255, 165, 0, .96), rgba(242, 160, 0, .86)),
        linear-gradient(180deg, #fff, #f8fafc);
}

.ah-page-hero::after {
    content: "";
    position: absolute;
    inset: auto -3rem -3rem auto;
    width: 10rem;
    height: 10rem;
    background: rgba(255, 255, 255, .12);
    border-radius: 50%;
}

.ah-page-hero--compact {
    margin-bottom: .5rem !important;
}

.ah-page-hero__title {
    margin: 0;
    font-size: clamp(1.6rem, 2vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.02em;
}

@media (max-width: 991.98px) {
    .ah-page-hero--compact {
        margin-bottom: .5rem !important;
    }
}
