/* ============================================================
   Garin App - Common CSS
   index.php 기준 공통 스타일
   ============================================================ */

/* CSS 변수 (사이드 메뉴, 헤더 include 호환) */
:root {
    --menu-bg: #f1f4f7;
    --primary-blue: #585e6c;
    --border-color: #eaeef2;
}

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
}

/* Body */
body {
    background-color: #e5e7eb;
    min-height: 100dvh;
}

/* 스크롤바 숨김 */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* 배너 슬라이더 */
.banner-wrapper { display: flex; transition: transform 0.4s ease-in-out; height: 100%; }
.slide { min-width: 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

/* ── 공통 헤더 (garin_header.php include 호환) ── */
.app-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 4rem;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    background: rgba(248, 249, 251, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 28rem;
    margin: 0 auto;
}
.app-header .logo a img { height: 28px; width: auto; }
.app-header .header-icons { display: flex; align-items: center; gap: 1rem; }
.app-header .header-icons span { font-size: 1.25rem; cursor: pointer; color: #585e6c; }

/* ── 공통 푸터 (garin_footer.php include 호환) ── */
.app-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem 1rem 1rem;
    background: rgba(248, 249, 251, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    box-shadow: 0 -12px 32px -4px rgba(43, 52, 56, 0.06);
    max-width: 28rem;
    margin: 0 auto;
    z-index: 50;
}
.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(88, 94, 108, 0.35);
    cursor: pointer;
    width: 20%;
    transition: color 0.2s ease, transform 0.15s ease;
    position: relative;
}
.tab-item:active { transform: scale(0.88); }
.tab-item.active {
    color: #111827;
}
/* active 탭 상단 인디케이터 */
.tab-item.active::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #111827;
    border-radius: 0 0 3px 3px;
}
.tab-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
}
.tab-item span { font-size: 1.375rem; display: block; margin-bottom: 0.25rem; }
.tab-item p {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Manrope', sans-serif;
}
.tab-item.active p {
    font-weight: 800;
}

/* ── 페이지 서브 헤더 (뒤로가기 + 타이틀 형태) ── */
.sub-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 4rem;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.25rem;
    background: rgba(248, 249, 251, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 28rem;
    margin: 0 auto;
}
