/*
 * 베스트픽 2026-09 UI/SEO 공통 정리
 * - 사이트 전체 타이포그래피 통일
 * - breadcrumb 위치를 모든 공개 페이지에서 좌측 상단으로 통일
 * - 본문과 footer 사이의 하단 여백 확보
 */
:root {
    --bp-font-stack: Pretendard, "Pretendard Variable", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", Arial, sans-serif;
}

html,
body,
button,
input,
select,
textarea,
table,
option {
    font-family: var(--bp-font-stack) !important;
    font-synthesis: none;
}

body,
body * {
    font-family: var(--bp-font-stack) !important;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* 공개 페이지 본문 시작/끝 리듬 */
.bp-main,
.bp-info-page,
.bp-patch-page,
.bp-advertise-page,
.bp-policy-page {
    padding-top: 24px !important;
    padding-bottom: 72px !important;
}

/* 종목 CSS의 grid gap 안에서도 breadcrumb가 항상 첫 줄 좌측 상단에 오도록 통일 */
.bp-main > .bp-breadcrumbs:first-child,
.bp-info-page > .bp-breadcrumbs:first-child,
.bp-patch-page > .bp-breadcrumbs:first-child,
.bp-entity-visible-breadcrumb > .bp-breadcrumbs,
.bp-games-visible-breadcrumb > .bp-breadcrumbs,
.bp-match-seo-heading > .bp-breadcrumbs {
    width: 100% !important;
    margin: 0 0 18px !important;
    padding: 0 2px !important;
    text-align: left !important;
    justify-self: stretch;
    align-self: start;
}

.bp-breadcrumbs {
    width: 100% !important;
    margin: 0 0 18px !important;
    padding: 0 2px !important;
    text-align: left !important;
}

.bp-breadcrumbs ol {
    width: 100% !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

.bp-breadcrumbs li,
.bp-breadcrumbs a,
.bp-breadcrumbs span {
    text-align: left !important;
}

/* 기존 wrapper가 breadcrumb 자체를 감싸는 경우 불필요한 가운데 정렬 제거 */
.bp-entity-visible-breadcrumb,
.bp-games-visible-breadcrumb {
    width: 100%;
    margin: 0;
    text-align: left !important;
}

/* AI 정보 플랫폼 공통 강조 패널 */
.bp-ai-intelligence-panel {
    margin: 26px 0 8px;
    padding: 24px 26px;
    border: 1px solid rgba(62, 177, 255, .24);
    border-radius: 18px;
    background:
        radial-gradient(circle at 8% 0%, rgba(50, 174, 255, .12), transparent 35%),
        linear-gradient(145deg, rgba(14, 28, 47, .96), rgba(9, 17, 29, .98));
}

.bp-ai-intelligence-panel .bp-ai-kicker {
    margin: 0 0 8px;
    color: #57c9ff;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.bp-ai-intelligence-panel h2 {
    margin: 0;
    color: #f6fbff;
    font-size: 1.35rem;
    line-height: 1.35;
    letter-spacing: -.035em;
}

.bp-ai-intelligence-panel > p {
    margin: 11px 0 0;
    color: #aebfd3;
    font-size: 1rem;
    line-height: 1.75;
}

.bp-ai-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.bp-ai-process-grid > div {
    min-width: 0;
    padding: 15px;
    border: 1px solid rgba(112, 159, 202, .18);
    border-radius: 13px;
    background: rgba(5, 14, 25, .52);
}

.bp-ai-process-grid strong {
    display: block;
    margin-bottom: 6px;
    color: #e9f6ff;
    font-size: .95rem;
}

.bp-ai-process-grid span {
    display: block;
    color: #879bb2;
    font-size: .82rem;
    line-height: 1.55;
}

.bp-ai-inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.bp-ai-inline-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid rgba(71, 187, 247, .28);
    border-radius: 9px;
    background: rgba(37, 143, 198, .07);
    color: #75d4ff;
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
}

.bp-ai-inline-links a:hover {
    border-color: rgba(85, 202, 255, .6);
    color: #fff;
}

/* footer와 본문이 붙어 보이지 않도록 최종 간격 통일 */
.bp-footer {
    margin-top: 0 !important;
}

@media (max-width: 900px) {
    .bp-main,
    .bp-info-page,
    .bp-patch-page,
    .bp-advertise-page,
    .bp-policy-page {
        padding-top: 18px !important;
        padding-bottom: 56px !important;
    }

    .bp-ai-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .bp-main,
    .bp-info-page,
    .bp-patch-page,
    .bp-advertise-page,
    .bp-policy-page {
        padding-top: 14px !important;
        padding-bottom: 44px !important;
    }

    .bp-breadcrumbs {
        margin-bottom: 14px;
        padding: 0;
    }

    .bp-ai-intelligence-panel {
        padding: 20px 16px;
    }

    .bp-ai-process-grid {
        grid-template-columns: 1fr;
    }
}
