@charset "utf-8";

/*!
 * op_header.css - Common Header, Navigation & Banner Styles
 * Extracted from inline <style> and inline style attributes in head.php & head_op2.php
 */

/* ==========================================================================
   1. Affix & Navbar Component
   ========================================================================== */
.affix {
    z-index: 99;
    top: 0;
    width: 100%;
    opacity: 0.95;
    filter: alpha(opacity=95);
    background: var(--op-affix-bg, rgba(255, 255, 255, 0.95));
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.affix + .container-fluid {
    padding-top: 70px;
}

.navbar-nav {
    width: 100%;
    font-size: 14px;
    text-align: center;
}

.navbar-nav .dropdown-menu {
    font-size: 13px;
}

/* ==========================================================================
   2. Floating Event & Partner Widgets
   ========================================================================== */
.event_q_display {
    position: fixed;
    top: 180px;
    right: 5px;
    border-radius: 5px;
    color: #ffffff;
    text-align: center;
    width: 70px;
    padding: 6px;
    font-size: 12px;
    font-weight: bold;
    background-color: #323232;
    opacity: 0.7;
    filter: alpha(opacity=70);
    z-index: 999;
}

.partner-floating-wrap {
    position: fixed;
    top: 95px;
    z-index: 9999;
}

#partner_btn {
    width: 35px;
    border-radius: 6px;
    background-color: #5b5b5b;
    border: 1px solid #2b2b2b;
    margin-left: -5px;
    font-size: 14px;
    padding: 5px 10px;
    display: inline-block;
    color: #ffffff;
    font-weight: bolder;
    text-shadow: 0 0 6px #000000;
    cursor: pointer;
}

#partner_btn:hover {
    background-color: #484848;
}

/* ==========================================================================
   3. Toastr Custom Overrides
   ========================================================================== */
#toast-container > div {
    opacity: 0.92 !important;
}

.toast-message a:hover {
    color: var(--op-highlight, #ffeb3b);
}

/* ==========================================================================
   4. Title & Favorite Star Icon
   ========================================================================== */
.at-title .star {
    display: inline-block;
    vertical-align: bottom;
    width: 25px;
    height: 25px;
    background: url(/img/chk_off.png) no-repeat 0 0;
    cursor: pointer;
}

.at-title .star.added,
.at-title .added {
    background: url(/img/chk_on.png) no-repeat 0 0;
}

/* ==========================================================================
   5. Topbar Typography & Notice Badges
   ========================================================================== */
.top-user-name {
    color: royalblue;
    font-weight: 900;
}

.top-partner-profile {
    color: darkorange;
}

.top-notice-title {
    color: var(--op-text-muted, #555555);
}

.top-notice-badge {
    color: var(--op-highlight, #ffff00);
}

/* ==========================================================================
   6. Mobile Footer (#foot_menu) Semantic Styles
   ========================================================================== */
.btn_a_ { display: inline-block; }
#foot_menu {
    display: flex !important;
    align-items: stretch !important;
}
#foot_menu .item {
    flex: 1 1 0 !important;
    width: auto !important;
    float: none !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 2px !important;
    font-size: 13px !important;
}
#foot_menu .foot-btn-auth { background-color: #374050; color: #ffffff; }
#foot_menu .foot-btn-contact { background-color: #3dbf62; color: #ffffff; }
#foot_menu .foot-btn-info { background-color: #448da3; color: #ffffff; }
#foot_menu .foot-btn-alliance { background-color: #a3a3a3; color: #ffffff; }
#foot_menu .foot-btn-mode { background-color: #ff5c1f; color: #ffffff; }
#foot_menu .item:active {
    filter: brightness(0.85);
}

/* ==========================================================================
   7. Layout Width Utilities & Responsive Containers
   ========================================================================== */
/* Fluid Wrapper & Container Defaults (Defense in Depth against .no-responsive) */
body.no-responsive,
body.responsive,
html {
    overflow-x: hidden;
}

/* 최상위 래퍼(#thema_wrapper)는 화면 전체 너비 100%를 유지하여 좌우 불필요한 마진 제거 */
#thema_wrapper,
.wrapper:not(.boxed) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* 내부 콘텐츠 컨테이너 및 박스형 레이아웃만 1400px 중앙 정렬 */
body.no-responsive .at-container-wide,
body.no-responsive .at-container,
body.no-responsive .boxed.wrapper,
.boxed.wrapper,
.at-container,
.at-container-wide {
    width: 100% !important;
    max-width: 1400px !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

.container-1400 {
    width: 100% !important;
    max-width: 1400px !important;
    min-width: 0 !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.pc-menu-1400 {
    width: 100% !important;
    max-width: 1400px !important;
    min-width: 0 !important;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.footer-1400 {
    width: 100% !important;
    max-width: 1400px !important;
    min-width: 0 !important;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Modern Flexbox Topbar & Responsive Notice Ticker (Option 2 Refactoring) */
#st-body .topbar .container {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    height: 30px !important;
    min-height: 30px !important;
    line-height: 30px !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

#st-body .topbar .pull-left {
    float: none !important;
    display: flex !important;
    align-items: stretch !important;
    flex-shrink: 0 !important;
    height: 30px !important;
}

#st-body .topbar .pull-right {
    float: none !important;
    display: flex !important;
    align-items: stretch !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
    height: 30px !important;
}

#st-body .topbar #newsticker.ticker-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    height: 30px !important;
    line-height: 30px !important;
    margin: 0 12px !important;
    overflow: hidden !important;
    z-index: 5;
}

/* Remove 170px empty gap in GNB menu */
.pc-menu .nav-rw {
    display: none !important;
}

/* Responsive PCbar Header */
@media (max-width: 1199px) {
    .pcbar .vmiddle-wrapper {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    .pcbar .vmiddle-section {
        display: block !important;
        width: auto !important;
    }
    .pcbar .vmiddle-section.text-right {
        text-align: right;
        margin-left: auto;
    }
    .pc-menu .nav-top.nav-float .menu-a {
        padding: 0 12px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 991px) {
    #st-body .topbar #newsticker.ticker-container {
        display: none !important; /* Hide PC topbar ticker on narrow tablet view to prevent button crowding */
    }
    .pcbar .vmiddle-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .pcbar .vmiddle-section.text-left,
    .pcbar .vmiddle-section.text-right {
        text-align: center;
        margin: 0 auto;
        width: 100% !important;
    }
    .top-social-icon {
        width: 30px !important;
        height: 30px !important;
        margin-right: 3px !important;
    }
}

.top-social-icon {
    width: 35px;
    height: 35px;
    border-radius: 100%;
    margin-right: 5px;
    border: 3px solid #dfedef;
    display: inline-block;
    vertical-align: middle;
}

.top-social-icon.border-purple {
    border-color: #e5a4ed;
}

.top-social-icon.border-cyan {
    border-color: #dfedef;
}

.top-social-icon.border-red {
    border-color: #f99090;
}

.top-social-icon.border-blue {
    border-color: #dee9ff;
}

.top-social-icon.border-gray {
    border-color: #d2d6d7;
}

.top-social-icon.shadow-teal {
    margin-right: 10px;
    box-shadow: 0 0 3px #58b5a2;
}

/* ==========================================================================
   8. Bonus Time (Burning Time) Event Badges
   ========================================================================== */
.has-bonus-event .web_title_eng:before {
    background: url('/img/burning_time.png') no-repeat;
    background-size: cover;
    display: block;
    position: absolute;
    width: 34px;
    height: 53px;
    content: '';
    margin-left: -2px;
    margin-top: -29px;
}

.has-bonus-event .web_title_eng_m:after {
    background: url('/img/burning_time.png') no-repeat;
    background-size: cover;
    display: block;
    position: absolute;
    width: 19px;
    height: 30px;
    content: '';
    margin-left: 2px;
    margin-top: -46px;
}

/* ==========================================================================
   9. Board Title & Search Components
   ========================================================================== */
.board-title-wrap {
    border: 0px !important;
    background-color: transparent !important;
    height: 53px;
    margin: 10px;
}

/* Mobile Board Title Wrapper: Override .responsive .at-title (clamped to 50px) to prevent overlap with .list-category */
.responsive .at-title.board-title-wrap-m,
.board-title-wrap-m {
    height: auto !important;
    /* min-height: 80px; */
    position: relative !important;
    border: 0 !important;
    background-color: transparent !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    clear: both !important;
}

.board-title-wrap-m:empty {
    display: none !important;
    min-height: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.board-header-bar {
    background-color: var(--op-board-header-bg, #d1e2d6) !important;
    border-radius: 5px;
    position: relative;
    height: 100%;
    transition: background-color 0.2s ease;
}

/* Mobile Board Header Bar Defaults (Search Bar & Title Bar) */
.board-title-wrap-m .board-header-bar-m,
.responsive .board-title-wrap-m .board-header-bar-m,
.board-header-bar-m {
    background-color: var(--op-board-header-bg, #d1e2d6) !important;
    height: 39px !important;
    min-height: 39px !important;
    position: relative !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    transition: background-color 0.2s ease;
}

/* 1st Row: Search bar in mobile board header */
.board-title-wrap-m .board-header-bar-m:first-child {
    padding: 0 5px !important;
}

.board-title-wrap-m .board-search-wrap-m {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.board-title-wrap-m .board-search-wrap-m form {
    margin: 0 !important;
    width: 100% !important;
}

.board-title-wrap-m .board-search-wrap-m .input-group {
    width: 100% !important;
    padding-right: 0 !important;
    display: flex !important;
    align-items: stretch !important;
}

.board-title-wrap-m .board-search-wrap-m .board-search-input-m {
    flex: 1 1 auto !important;
    width: auto !important;
    height: 31px !important;
    font-size: 13px !important;
    border-top-left-radius: 4px !important;
    border-bottom-left-radius: 4px !important;
}

.board-title-wrap-m .board-search-wrap-m .input-group-btn {
    width: auto !important;
    flex-shrink: 0 !important;
    display: flex !important;
}

.board-title-wrap-m .board-search-wrap-m .board-search-btn {
    height: 31px !important;
    padding: 0 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
}

/* 2nd Row: Title & Write Button */
.board-title-wrap-m .board-header-bar-m.title-bar,
.board-header-bar-m.title-bar {
    margin-top: 2px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
}

/* Mobile Page Title: reset absolute positioning to natural flex alignment */
.responsive .at-title.board-title-wrap-m .page-title,
.board-title-wrap-m .page-title {
    position: static !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    line-height: normal !important;
    display: inline-flex !important;
    align-items: center !important;
    max-width: calc(100% - 95px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.board-title-wrap-m .page-title .board-title-strong {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.board-title-strong {
    font-size: 18px !important;
    color: var(--op-board-header-title, #000000) !important;
}

.board-title-strong span {
    font-size: 16px;
}

.at-title .page-title .explain {
    font-size: 16px;
    color: var(--op-board-header-badge, #579a6a) !important;
    font-weight: bold;
}

.board-search-wrap-pc {
    text-align: center;
    left: 238.3px !important;
    bottom: 7px;
    position: absolute;
}


.board-search-input-pc {
    width: 300px !important;
    background-color: var(--op-top-selector-input-bg, #ffffff) !important;
    border-color: var(--op-top-selector-input-border, #cccccc) !important;
    color: var(--op-text, #333333) !important;
}

.board-search-input-m {
    background-color: var(--op-top-selector-input-bg, #ffffff) !important;
    border-color: var(--op-top-selector-input-border, #cccccc) !important;
    color: var(--op-text, #333333) !important;
}

.board-search-btn {
    background-color: var(--op-m-search-btn-bg, #3dbf62) !important;
    border-color: var(--op-m-search-btn-border, #3dbf62) !important;
    color: #ffffff !important;
}

.board-search-btn:hover {
    filter: brightness(0.9);
}

.board-write-btn {
    position: absolute;
    right: 20px;
    bottom: 7px;
    height: 40px;
    width: 100px;
    background-color: var(--op-primary, #3dbf62) !important;
    line-height: 30px;
    border-color: var(--op-primary-dark, #579a6a) !important;
    color: #ffffff !important;
}

.board-write-btn:hover {
    background-color: var(--op-primary-dark, #2f9a4f) !important;
    color: #ffffff !important;
}

.board-write-btn-m {
    position: absolute;
    right: 5px;
    top: 4px;
    height: 30px;
    width: 80px;
    background-color: var(--op-primary, #3dbf62) !important;
    line-height: 20px;
    border-color: var(--op-primary-dark, #579a6a) !important;
    vertical-align: middle;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 4px;
}

.board-title-wrap-m .title-bar .board-write-btn-m {
    position: static !important;
    right: auto !important;
    top: auto !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

.board-write-btn-m:hover {
    background-color: var(--op-primary-dark, #2f9a4f) !important;
    color: #ffffff !important;
}

.board-header-fav {
    position: absolute;
    right: 20px;
    top: 13px;
    height: 40px;
}

.board-header-fav .fav-text {
    vertical-align: bottom;
    padding-left: 5px;
    color: var(--op-text-muted, #777777);
    font-size: small;
    font-weight: bold;
}

.board-header-fav-m {
    position: absolute;
    right: 5px;
    top: 5px;
    height: 30px;
    display: inline-flex;
    align-items: center;
}

.board-title-wrap-m .title-bar .board-header-fav-m,
.board-title-wrap-m .title-bar [class*="board-header-fav"] {
    position: static !important;
    right: auto !important;
    top: auto !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.board-header-fav-m .fav-text {
    vertical-align: middle;
    padding-left: 5px;
    color: var(--op-text-muted, #777777);
    font-size: small;
    font-weight: bold;
}

/* ==========================================================================
   10. Footer Brand Components (tail.php)
   ========================================================================== */
.footer-brand-wrap {
    position: relative;
}

.footer-brand-logo {
    float: left;
}

.footer-brand-desc {
    float: left;
    padding-left: 15px;
    padding-top: 0px;
    text-align: left;
    line-height: 110%;
}

.footer-brand-title {
    font-weight: bold;
    font-size: 13px;
    color: var(--op-footer-text, #a4b0be);
}

.footer-brand-subtitle {
    font-size: 11px;
    color: var(--op-text-muted, #777777);
}

/* ==========================================================================
   11. Partner Side Button Components (Client.php & OpMenu.php)
   ========================================================================== */
.partner-side-btn {
    padding: 7px 5px;
    display: inline-block;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    line-height: initial;
    cursor: pointer;
    font-weight: normal;
}

.partner-side-btn.btn-partner-gray {
    color: var(--op-text-primary, #000000);
    background-color: var(--op-partner-btn-gray-bg, #e7e7e7);
    border: 1px solid var(--op-partner-btn-gray-border, #e0e0e0);
    padding: 7px 4px;
    line-height: normal;
    margin-left: 32px;
    margin-bottom: 4px;
}


