/*
 * Iran Basketball House — shared public shell
 * Header, footer and shop baseline. Loaded after legacy public styles.
 */

:root {
    --ibh-shell-wide: 1680px;
    --ibh-shell-content: 1240px;
    --ibh-shell-gutter: clamp(16px, 2.4vw, 40px);
    --ibh-shell-navy: #071b35;
    --ibh-shell-navy-soft: #102d51;
    --ibh-shell-orange: #f97316;
    --ibh-shell-cream: #fffdf8;
    --ibh-shell-line: rgba(148, 163, 184, 0.2);
}

body.ibh-public-body > .ib-site-header {
    width: 100% !important;
    border-radius: 0 !important;
}

body.ibh-public-body .ib-site-header .ib-header-inner {
    width: min(calc(100% - (2 * var(--ibh-shell-gutter))), var(--ibh-shell-wide)) !important;
    max-width: var(--ibh-shell-wide) !important;
    min-height: 78px !important;
    margin-inline: auto !important;
}

body.ibh-public-body .ibh-public-nav-shop {
    gap: 6px !important;
}

body.ibh-public-body .ibh-public-nav-shop svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: currentColor;
}

body.ibh-public-body .ibh-public-nav-shop.is-active {
    color: var(--ibh-shell-orange) !important;
    background: #fff3e9 !important;
}

body.ibh-menu-open {
    overflow: hidden;
}

.ibh-global-sponsor {
    width: min(calc(100% - (2 * var(--ibh-shell-gutter))), var(--ibh-shell-content));
    margin: 42px auto 0;
}

.ibh-global-sponsor:empty,
.ibh-global-sponsor:not(:has(.ib-section-sponsor-card)) {
    display: none;
}

body.ibh-public-body .ib-site-footer {
    width: 100% !important;
    margin: 56px 0 0 !important;
    padding: 56px var(--ibh-shell-gutter) 20px !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #eaf0f8 !important;
    background:
        radial-gradient(circle at 10% 0%, rgba(249, 115, 22, 0.16), transparent 28%),
        linear-gradient(145deg, #06172e 0%, #0a2548 58%, #071b35 100%) !important;
    box-shadow: none !important;
}

body.ibh-public-body .ib-site-footer-inner {
    width: min(100%, var(--ibh-shell-wide)) !important;
    max-width: var(--ibh-shell-wide) !important;
    margin-inline: auto !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 2fr) !important;
    gap: 48px clamp(34px, 4vw, 72px) !important;
    align-items: start !important;
}

body.ibh-public-body .ibh-footer-intro {
    min-width: 0;
}

body.ibh-public-body .ibh-footer-logo-link {
    display: inline-flex;
    padding: 10px 12px;
    border-radius: 16px;
    background: #fff;
}

body.ibh-public-body .ibh-footer-logo {
    display: block;
    width: min(100%, 220px);
    height: auto;
}

body.ibh-public-body .ibh-footer-intro h2 {
    margin: 24px 0 8px;
    color: #fff !important;
    font-size: clamp(20px, 2vw, 27px) !important;
    line-height: 1.55;
}

body.ibh-public-body .ibh-footer-intro p {
    max-width: 420px;
    margin: 0;
    color: rgba(226, 235, 248, 0.76) !important;
    font-size: 13.5px;
    line-height: 2;
}

body.ibh-public-body .ibh-footer-primary-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

body.ibh-public-body .ibh-footer-primary-actions a {
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 11px;
    color: #fff !important;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}

body.ibh-public-body .ibh-footer-primary-actions .ibh-footer-primary-cta {
    border-color: var(--ibh-shell-orange);
    background: var(--ibh-shell-orange);
}

body.ibh-public-body .ib-site-footer-architecture {
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 30px 26px !important;
    text-align: right !important;
}

body.ibh-public-body .ib-footer-col {
    min-width: 0;
    display: flex !important;
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 8px !important;
}

body.ibh-public-body .ib-footer-col strong {
    margin-bottom: 6px;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 900;
}

body.ibh-public-body .ib-footer-col a {
    padding: 2px 0 !important;
    color: rgba(226, 235, 248, 0.72) !important;
    font-size: 12.5px !important;
    line-height: 1.7 !important;
    text-decoration: none;
    transition: color 160ms ease, transform 160ms ease;
}

body.ibh-public-body .ib-footer-col a:hover {
    color: #fff !important;
    transform: translateX(-3px);
}

body.ibh-public-body .ibh-footer-connect {
    grid-column: 1 / -1;
    padding-top: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 24px;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body.ibh-public-body .ibh-footer-connect > div > strong,
body.ibh-public-body .ibh-footer-connect .ib-footer-enamad > span {
    display: block;
    margin-bottom: 10px;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 900;
}

body.ibh-public-body .ib-site-footer-social {
    display: flex !important;
    flex-wrap: wrap;
    gap: 7px !important;
}

body.ibh-public-body .ib-site-footer-social a,
body.ibh-public-body .ib-footer-podcast-links a {
    min-height: 36px !important;
    padding: 4px 9px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    color: rgba(235, 242, 250, 0.86) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    text-decoration: none;
}

body.ibh-public-body .ib-social-icon,
body.ibh-public-body .ib-podcast-mark {
    width: 24px !important;
    height: 24px !important;
    flex-basis: 24px !important;
    border-radius: 7px !important;
    color: #fff !important;
    background: var(--ibh-shell-orange) !important;
}

body.ibh-public-body .ib-social-label {
    color: inherit !important;
    font-size: 10.5px;
}

body.ibh-public-body .ib-footer-podcast-links {
    display: block !important;
}

body.ibh-public-body .ib-footer-podcast-links > div {
    display: flex;
    gap: 7px;
}

body.ibh-public-body .ib-footer-enamad {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.ibh-public-body .ib-footer-enamad > span {
    max-width: 72px;
    margin: 0 !important;
    line-height: 1.7;
}

body.ibh-public-body .ib-footer-enamad a {
    width: 72px !important;
    min-height: 72px !important;
    padding: 5px !important;
    border-radius: 13px !important;
    background: #fff !important;
}

body.ibh-public-body .ib-footer-enamad img {
    width: 60px !important;
    height: 60px !important;
}

body.ibh-public-body .ib-footer-copyright-wrap {
    width: min(100%, var(--ibh-shell-wide));
    margin: 32px auto 0 !important;
    padding: 18px 0 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

body.ibh-public-body .ib-footer-copyright,
body.ibh-public-body .ib-footer-copyright-en {
    margin: 0 auto !important;
    color: rgba(226, 235, 248, 0.58) !important;
    font-size: 11.5px !important;
    line-height: 1.9 !important;
    text-align: center !important;
}

body.ibh-public-body .ib-footer-copyright-en {
    direction: ltr;
    letter-spacing: 0.04em;
}

.ibh-shop-main {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 32px var(--ibh-shell-gutter) 76px !important;
    background: #f5f7fa;
}

.ibh-shop-page {
    width: min(100%, var(--ibh-shell-content)) !important;
    max-width: var(--ibh-shell-content) !important;
    margin-inline: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ibh-shop-hero {
    min-height: 470px;
    padding: clamp(28px, 5vw, 64px);
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    gap: 42px;
    align-items: center;
    overflow: hidden;
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 18%, rgba(249, 115, 22, 0.28), transparent 28%),
        linear-gradient(135deg, #061a36, #0a2b54);
    box-shadow: 0 28px 70px rgba(7, 27, 53, 0.18);
}

.ibh-shop-kicker,
.ibh-shop-section-heading > span,
.ibh-shop-notice > div > span {
    color: #fb923c;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.ibh-shop-hero h1 {
    max-width: 760px;
    margin: 12px 0;
    color: #fff !important;
    font-size: clamp(34px, 4.5vw, 62px) !important;
    line-height: 1.35;
}

.ibh-shop-hero-copy > p {
    max-width: 700px;
    margin: 0;
    color: rgba(235, 242, 250, 0.82);
    font-size: 15px;
    line-height: 2;
}

.ibh-shop-hero-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ibh-shop-button {
    min-height: 46px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 13px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.ibh-shop-button-primary {
    border-color: var(--ibh-shell-orange);
    color: #fff;
    background: var(--ibh-shell-orange);
}

.ibh-shop-button-secondary {
    color: inherit;
    background: rgba(255, 255, 255, 0.06);
}

.ibh-shop-hero-card {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.ibh-shop-hero-card > span {
    color: #fed7aa;
    font-size: 12px;
    font-weight: 850;
}

.ibh-shop-hero-card > strong {
    margin: 6px 0;
    display: block;
    color: #fff;
    font-size: 42px;
}

.ibh-shop-hero-card > p {
    color: rgba(235, 242, 250, 0.76);
    font-size: 13px;
    line-height: 1.9;
}

.ibh-shop-hero-card > div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.ibh-shop-hero-card > div span {
    padding: 7px 9px;
    border-radius: 9px;
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    font-size: 10.5px;
    font-weight: 800;
}

.ibh-shop-section {
    padding: 72px 0 24px;
}

.ibh-shop-section-heading {
    max-width: 760px;
    margin-bottom: 26px;
}

.ibh-shop-section-heading h2,
.ibh-shop-notice h2 {
    margin: 8px 0;
    color: var(--ibh-shell-navy) !important;
    font-size: clamp(26px, 3.3vw, 42px) !important;
    line-height: 1.45;
}

.ibh-shop-section-heading p,
.ibh-shop-notice p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 2;
}

.ibh-shop-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ibh-shop-category-card {
    min-height: 260px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(7, 27, 53, 0.05);
}

.ibh-shop-category-index {
    color: #fb923c;
    font-size: 12px;
    font-weight: 900;
}

.ibh-shop-category-card h3 {
    margin: 30px 0 8px;
    color: var(--ibh-shell-navy) !important;
    font-size: 20px !important;
}

.ibh-shop-category-card p {
    margin: 0 0 20px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.9;
}

.ibh-shop-category-state {
    margin-top: auto;
    padding: 7px 10px;
    border-radius: 9px;
    color: #c2410c;
    background: #fff3e9;
    font-size: 10.5px;
    font-weight: 850;
}

.ibh-shop-notice {
    margin-top: 36px;
    padding: 32px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #fff;
}

.ibh-shop-notice .ibh-shop-button-secondary {
    border-color: #dbe2eb;
    color: var(--ibh-shell-navy);
    background: #f8fafc;
}

@media (max-width: 1180px) {
    body.ibh-public-body .ib-site-header .ib-header-inner {
        min-height: 70px !important;
    }
}

@media (min-width: 1181px) and (max-width: 1360px) {
    body.ibh-public-body .ib-site-header .ib-header-inner {
        gap: 12px !important;
    }

    body.ibh-public-body .ib-site-header .ib-logo-horizontal {
        width: 176px !important;
        max-width: 176px !important;
    }

    body.ibh-public-body .ibh-public-nav {
        gap: 0 !important;
    }

    body.ibh-public-body .ibh-public-nav > a,
    body.ibh-public-body .ibh-public-nav-group > summary {
        padding-inline: 7px !important;
        font-size: 12.5px !important;
    }

    body.ibh-public-body .ibh-public-nav .ib-header-register-link,
    body.ibh-public-body .ibh-public-nav .ib-nav-dashboard-link,
    body.ibh-public-body .ibh-public-nav .ib-header-editorial-link,
    body.ibh-public-body .ibh-public-nav .ib-nav-logout {
        padding-inline: 10px !important;
    }
}

@media (max-width: 980px) {
    body.ibh-public-body .ib-site-footer-inner {
        grid-template-columns: 1fr !important;
    }

    body.ibh-public-body .ib-site-footer-architecture {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body.ibh-public-body .ibh-footer-connect {
        grid-template-columns: 1fr 1fr;
    }

    body.ibh-public-body .ibh-footer-connect > div:first-child {
        grid-column: 1 / -1;
    }

    .ibh-shop-hero {
        grid-template-columns: 1fr;
    }

    .ibh-shop-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    body.ibh-public-body .ib-site-header .ib-header-inner {
        width: calc(100% - 24px) !important;
        min-height: 64px !important;
    }

    body.ibh-public-body .ibh-public-nav-shop {
        justify-content: flex-start !important;
    }

    body.ibh-public-body .ib-site-footer {
        margin-top: 40px !important;
        padding: 42px 18px 92px !important;
    }

    body.ibh-public-body .ib-site-footer-inner {
        gap: 34px !important;
    }

    body.ibh-public-body .ib-site-footer-architecture {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 26px 18px !important;
    }

    body.ibh-public-body .ibh-footer-connect {
        grid-template-columns: 1fr;
        align-items: start;
    }

    body.ibh-public-body .ibh-footer-connect > div:first-child {
        grid-column: auto;
    }

    body.ibh-public-body .ib-site-footer-social {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.ibh-public-body .ib-footer-enamad {
        justify-content: flex-start;
    }

    .ibh-shop-main {
        padding: 18px 14px 50px !important;
    }

    .ibh-shop-hero {
        min-height: 0;
        padding: 30px 20px;
        gap: 26px;
        border-radius: 20px;
    }

    .ibh-shop-hero h1 {
        font-size: clamp(30px, 10vw, 43px) !important;
    }

    .ibh-shop-hero-card {
        padding: 20px;
    }

    .ibh-shop-category-grid {
        grid-template-columns: 1fr;
    }

    .ibh-shop-category-card {
        min-height: 220px;
    }

    .ibh-shop-notice {
        padding: 24px 20px;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    body.ibh-public-body .ib-site-footer-architecture {
        grid-template-columns: 1fr !important;
    }
}
