/* ------------------------------------------- */
/*   CATSBE 고양이스러운 HOUSE NAVIGATON THEME   */
/* ------------------------------------------- */
/* ============================
   CATSBE PORTAL THEME v1.0
   ============================ */

/* HERO SECTION */
.portal-hero {
    padding: 60px 0;
    background: linear-gradient(150deg, #0f172a, #1f2937, #111827);
    color: #f8fafc;
    text-align: center;
}

.hero-label {
    opacity: 0.7;
    font-size: 0.85rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.3;
    margin: 10px 0;
}

.highlight {
    color: #22c55e;
}

.hero-sub {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 20px;
}

.hero-actions .btn {
    margin: 4px;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
}

.btn-portal-main {
    background: #22c55e;
    color: #0f172a;
}

.btn-portal-sub {
    background: #374151;
    color: #e5e7eb;
}


/* 4D CATEGORY CARDS */
.cat-card {
    text-decoration: none;
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 12px;
    text-align: center;
    color: #111827;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: .15s ease-out;
    display: block;
}

.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.cat-icon {
    height: 50px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.cat-title {
    font-size: 1.0rem;
    font-weight: 700;
}

.cat-sub {
    font-size: 0.8rem;
    color: #6b7280;
}


/* SECTION HEADINGS */
.section-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #111827;
}


/* POST CARDS */
.post-card {
    display: block;
    padding: 16px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 3px 14px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #111827;
    transition: .15s ease-out;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(0,0,0,0.12);
}

.post-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.post-meta {
    font-size: 0.8rem;
    color: #6b7280;
}
/* =====================================
   4D 심볼형 아이콘 카드 (미니멀 디자인)
   ===================================== */

.portal-4d-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.portal-4d-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: #ffffff;
    padding: 18px 10px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: .15s ease-out;
    color: #111827;
}

.portal-4d-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.portal-4d-icon {
    height: 42px;
    width: 42px;
    opacity: 0.95;
    margin-bottom: 8px;
}

.portal-4d-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.portal-4d-sub {
    font-size: 0.72rem;
    color: #6b7280;
    margin-top: 2px;
}

/* Mobile */
@media (max-width: 768px) {
    .portal-4d-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .portal-4d-item {
        padding: 14px 8px;
    }
    .portal-4d-icon {
        height: 34px;
        width: 34px;
    }
    .portal-4d-title {
        font-size: 0.88rem;
    }
}

/* 로고 폰트 보정 */
.navbar-brand {
    font-weight: 800 !important;
    font-size: 1.45rem !important;
    letter-spacing: -0.5px;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.navbar-brand small {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #999;
}

/* 고양이 귀 포인트 */
.navbar-brand::after {
    content: "ᐠ｡ᐟ"; /* 고양이 귀모양 */
    font-size: 0.65rem;
    margin-left: 4px;
    margin-top: -2px;
    opacity: 0.8;
    position: absolute;
}

/* 메뉴 라벨 */
.navbar-nav .nav-link {
    font-weight: 600;
    padding: 0.55rem 0.9rem !important;
    border-radius: 10px;
    transition: all .2s ease;
}

.navbar-nav .nav-link:hover {
    background: rgba(0,0,0,0.05);
}

/* 선택된 메뉴 느낌 */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:focus {
    background: rgba(0,0,0,0.08);
    color: #222 !important;
}

/* 검색창 */
.navbar input[type="search"] {
    border-radius: 12px !important;
    border: 1px solid #ddd !important;
    background-color: #fafafa !important;
    font-size: 0.82rem;
    padding-left: 12px;
    transition: all .2s ease;
}

.navbar input[type="search"]:focus {
    background-color: #fff !important;
    border-color: #9cc9ff !important;
    box-shadow: 0 0 0 0.1rem rgba(80,150,255,0.2);
}

/* 닉네임 + 포인트 */
.nav-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.nav-user-info .points {
    background: #ffefc5;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    color: #ce8e00;
    font-weight: 700;
}
/* 모바일 앱 고정 레이아웃 */
@media (max-width: 600px) {
    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden !important;
        background: #fafafa; /* 흔들림 방지 */
    }

    .container, 
    .content-wrapper {
        max-width: 100% !important;
        margin: 0 !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        box-sizing: border-box;
    }

    img, iframe, video {
        max-width: 100% !important;
        height: auto !important;
    }
}
