/*
Theme Name: 한게임 머니상 테마
Theme URI: https://yoursite.com
Author: Your Name
Author URI: https://yoursite.com
Description: 한게임 머니상 전문 거래소 테마 - 모든 텍스트/이미지/색상 커스터마이저에서 수정 가능
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hangame-moneyshop
Tags: business, custom-menu, featured-images, full-width-template, theme-options, korean
*/

/* ===========================
   CSS RESET & VARIABLES
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:   #1a237e;
    --secondary: #283593;
    --accent:    #e53935;
    --gold:      #f9a825;
    --text:      #333333;
    --text-sub:  #666666;
    --bg-light:  #f5f7fa;
    --bg-dark:   #1a1a2e;
    --border:    #e0e0e0;
    --white:     #ffffff;
    --font:      'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
    --radius:    10px;
    --shadow:    0 4px 20px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); line-height: 1.7; font-size: 16px; background: var(--white); }
a { color: inherit; text-decoration: none; transition: color .3s; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; }

/* ===========================
   LAYOUT
=========================== */
.wrap         { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 900px;  margin: 0 auto; padding: 0 24px; }

/* ===========================
   HEADER
=========================== */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.09);
    position: sticky; top: 0; z-index: 1000;
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.site-logo img  { height: 48px; width: auto; }
.site-logo span { font-size: 1.3rem; font-weight: 800; color: var(--primary); }

/* NAV */
.primary-nav ul { display: flex; gap: 4px; }
.primary-nav a  {
    display: block; padding: 9px 15px; font-weight: 600; font-size: .93rem;
    color: var(--text); border-radius: 7px; white-space: nowrap; transition: all .25s;
}
.primary-nav a:hover,
.primary-nav li.current-menu-item > a,
.primary-nav li.current-menu-ancestor > a {
    color: var(--primary); background: rgba(26,35,126,.08);
}
/* Dropdown */
.primary-nav li { position: relative; }
.primary-nav li ul {
    display: none; position: absolute; top: 100%; left: 0;
    background: var(--white); min-width: 210px;
    box-shadow: 0 8px 30px rgba(0,0,0,.12); border-radius: var(--radius);
    padding: 6px 0; flex-direction: column; gap: 0; z-index: 999;
}
.primary-nav li:hover > ul { display: flex; }
.primary-nav li ul a { padding: 10px 20px; border-radius: 0; font-size: .88rem; }
.primary-nav li ul a:hover { background: var(--bg-light); }

/* Mobile toggle */
.nav-toggle {
    display: none; background: none; border: 2px solid var(--primary);
    padding: 7px 11px; border-radius: 7px; color: var(--primary); font-size: 1.1rem;
}

/* ===========================
   HERO
=========================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 55%, #0d47a1 100%);
    color: var(--white); padding: 80px 24px; text-align: center;
    position: relative; overflow: hidden;
}
.hero__bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center; opacity: .14; z-index: 0;
}
.hero__inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.hero__badge {
    display: inline-block; background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.4); padding: 6px 22px;
    border-radius: 30px; font-size: .88rem; margin-bottom: 22px;
    backdrop-filter: blur(6px);
}
.hero__title { font-size: clamp(1.7rem,4vw,2.9rem); font-weight: 800; line-height: 1.3; margin-bottom: 18px; }
.hero__title span { color: var(--gold); }
.hero__desc { font-size: 1.05rem; opacity: .9; line-height: 1.85; margin-bottom: 28px; }
.hero__contact {
    display: inline-flex; flex-wrap: wrap; gap: 22px; justify-content: center;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
    padding: 18px 30px; border-radius: 12px; backdrop-filter: blur(8px); margin-bottom: 28px;
}
.hero__contact-item { font-size: .97rem; }
.hero__contact-item strong { color: var(--gold); }
.hero__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===========================
   BUTTONS
=========================== */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 13px 26px; border-radius: 8px; font-size: .97rem; font-weight: 700;
    border: 2px solid transparent; transition: all .3s;
}
.btn--primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn--primary:hover { background: #c62828; border-color: #c62828; color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(229,57,53,.38); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--outline:hover { background: var(--white); color: var(--primary); }
.btn--solid   { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn--solid:hover { background: var(--secondary); color: var(--white); }

/* ===========================
   SECTION COMMON
=========================== */
.section          { padding: 68px 24px; }
.section--alt     { background: var(--bg-light); }
.section--dark    { background: var(--bg-dark); color: var(--white); }
.section--grad    { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: var(--white); }

.sec-head         { text-align: center; margin-bottom: 48px; }
.sec-eye          { display: inline-block; color: var(--accent); font-size: .82rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.sec-title        { font-size: clamp(1.4rem,3vw,2.1rem); font-weight: 800; line-height: 1.3; color: var(--primary); margin-bottom: 12px; }
.section--dark .sec-title,
.section--grad .sec-title  { color: var(--white); }
.sec-desc         { font-size: .97rem; color: var(--text-sub); max-width: 600px; margin: 0 auto; line-height: 1.8; }
.section--dark .sec-desc,
.section--grad .sec-desc   { color: rgba(255,255,255,.72); }

/* ===========================
   WHAT-IS GRID
=========================== */
.what-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.what-text h2  { font-size: 1.75rem; font-weight: 800; color: var(--primary); margin-bottom: 14px; line-height: 1.3; }
.what-text p   { color: var(--text-sub); line-height: 1.88; margin-bottom: 16px; }
.what-text ul  { }
.what-text ul li { padding: 9px 0 9px 28px; position: relative; border-bottom: 1px solid var(--border); }
.what-text ul li:last-child { border: none; }
.what-text ul li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.what-img img        { border-radius: 14px; box-shadow: 0 16px 48px rgba(0,0,0,.1); }
.what-img .img-ph    { background: linear-gradient(135deg,#e8eaf6,#c5cae9); border-radius: 14px; height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--primary); font-size: .93rem; text-align: center; padding: 20px; }
.what-img .img-ph span { font-size: 2rem; }

/* ===========================
   CHECKLIST GRID
=========================== */
.check-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(290px,1fr)); gap: 18px; }
.check-item {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--white); padding: 18px 22px; border-radius: var(--radius);
    box-shadow: var(--shadow); border-left: 4px solid var(--primary);
}
.check-icon  { width: 34px; height: 34px; min-width: 34px; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .82rem; font-weight: 700; }
.check-text  { font-size: .93rem; line-height: 1.6; }

/* ===========================
   TRADE TYPE CARDS
=========================== */
.trade-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 880px; margin: 0 auto; }
.trade-card {
    background: var(--white); border-radius: 14px; padding: 32px 28px;
    box-shadow: var(--shadow); border-top: 5px solid var(--primary); transition: transform .3s, box-shadow .3s;
}
.trade-card:nth-child(2) { border-top-color: var(--accent); }
.trade-card:hover { transform: translateY(-5px); box-shadow: 0 14px 40px rgba(0,0,0,.12); }
.trade-label { display: inline-block; background: var(--primary); color: var(--white); padding: 4px 14px; border-radius: 20px; font-size: .82rem; font-weight: 700; margin-bottom: 13px; }
.trade-card:nth-child(2) .trade-label { background: var(--accent); }
.trade-card h3  { font-size: 1.25rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.trade-card p   { font-size: .88rem; color: var(--text-sub); margin-bottom: 16px; }
.trade-steps li { padding: 7px 0 7px 22px; position: relative; font-size: .91rem; border-bottom: 1px dashed var(--border); }
.trade-steps li:last-child { border: none; }
.trade-steps li::before { content: '▸'; position: absolute; left: 0; color: var(--primary); }

/* ===========================
   STEPS STRIP
=========================== */
.steps-strip { display: flex; gap: 0; position: relative; max-width: 1100px; margin: 0 auto; }
.steps-strip::before { content: ''; position: absolute; top: 34px; left: 8%; right: 8%; height: 2px; background: rgba(255,255,255,.25); z-index: 0; }
.step-item { flex: 1; text-align: center; padding: 16px 12px; position: relative; z-index: 1; }
.step-num  { width: 68px; height: 68px; background: rgba(255,255,255,.15); border: 3px solid rgba(255,255,255,.5); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 13px; font-size: 1rem; font-weight: 800; backdrop-filter: blur(4px); }
.step-title { font-size: .93rem; font-weight: 700; margin-bottom: 6px; }
.step-desc  { font-size: .8rem; opacity: .8; line-height: 1.5; }

/* ===========================
   SAFETY CARDS
=========================== */
.safety-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 18px; }
.safety-card { background: var(--white); border-radius: 12px; padding: 24px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.safety-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg,var(--primary),var(--accent)); }
.safety-icon  { font-size: 1.9rem; margin-bottom: 10px; }
.safety-title { font-size: .97rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.safety-text  { font-size: .86rem; color: var(--text-sub); line-height: 1.6; }

/* ===========================
   PAGE HEADER BANNER
=========================== */
.page-banner {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white); padding: 56px 24px 80px; text-align: center; position: relative; overflow: hidden;
}
.page-banner::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 54px; background: var(--white); clip-path: ellipse(60% 100% at 50% 100%); }
.page-banner .eye   { font-size: .82rem; letter-spacing: 3px; text-transform: uppercase; opacity: .7; margin-bottom: 8px; }
.page-banner h1     { font-size: clamp(1.5rem,3vw,2.4rem); font-weight: 800; }
.page-banner p      { margin-top: 8px; opacity: .8; font-size: .97rem; }

/* ===========================
   CONTENT WRAPPER
=========================== */
.content-wrap { padding: 50px 24px 70px; }
.content-box  { background: var(--white); border-radius: 16px; padding: 40px 44px; box-shadow: 0 4px 28px rgba(0,0,0,.07); margin-top: -40px; position: relative; z-index: 1; }

/* BREADCRUMB */
.breadcrumb { font-size: .83rem; color: #999; margin-bottom: 28px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep  { margin: 0 6px; color: #ccc; }

/* ===========================
   CONTENT SECTION TYPOGRAPHY
=========================== */
.cs { margin-bottom: 48px; }
.cs:last-child { margin-bottom: 0; }

.cs h2 { font-size: 1.45rem; font-weight: 800; color: var(--primary); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 3px solid var(--primary); }
.cs h3 { font-size: 1.1rem; font-weight: 700; color: var(--secondary); margin: 22px 0 12px; }
.cs p  { color: var(--text-sub); line-height: 1.9; margin-bottom: 14px; }
.cs ul, .cs ol { padding-left: 6px; margin-bottom: 14px; }
.cs ul li, .cs ol li { padding: 8px 0 8px 26px; position: relative; font-size: .94rem; border-bottom: 1px dashed var(--border); }
.cs ul li:last-child, .cs ol li:last-child { border: none; }
.cs ul li::before { content: '●'; position: absolute; left: 0; color: var(--primary); font-size: .55rem; top: 14px; }
.cs ol { counter-reset: cnt; }
.cs ol li::before { content: counter(cnt); counter-increment: cnt; position: absolute; left: 0; color: var(--primary); font-weight: 700; font-size: .88rem; }

/* NOTICE / WARNING / TIP BOXES */
.box          { border-radius: 0 8px 8px 0; padding: 14px 20px; margin: 18px 0; font-size: .91rem; line-height: 1.75; }
.box--green   { background: #e8f5e9; border-left: 5px solid #43a047; color: #2e7d32; }
.box--orange  { background: #fff3e0; border-left: 5px solid #fb8c00; color: #e65100; }
.box--blue    { background: #e3f2fd; border-left: 5px solid #1e88e5; color: #1565c0; }
.box--purple  { background: #ede7f6; border-left: 5px solid #7e57c2; color: #4527a0; }

/* ===========================
   TABLE
=========================== */
.tbl-wrap { overflow-x: auto; margin: 18px 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
.tbl th { background: var(--primary); color: var(--white); padding: 13px 16px; text-align: left; font-size: .86rem; }
.tbl td { padding: 11px 16px; border-bottom: 1px solid var(--border); line-height: 1.6; }
.tbl tr:nth-child(even) td { background: #f8f9fa; }
.tbl tr:hover td { background: #e8eaf6; }

/* ===========================
   STEP CARDS (vertical)
=========================== */
.step-cards  { display: flex; flex-direction: column; gap: 13px; }
.step-card   { display: flex; gap: 18px; align-items: flex-start; background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 12px; padding: 18px 22px; transition: box-shadow .3s, transform .3s; }
.step-card:hover { box-shadow: 0 5px 20px rgba(0,0,0,.08); transform: translateX(4px); }
.step-card--alt { border-left-color: var(--accent); }
.step-card--alt .sc-num { background: var(--accent); }
.sc-num  { min-width: 46px; height: 46px; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 800; flex-shrink: 0; }
.sc-body h4 { font-size: .97rem; font-weight: 700; color: var(--primary); margin-bottom: 5px; }
.sc-body p  { font-size: .88rem; color: var(--text-sub); line-height: 1.72; margin: 0; }

/* ===========================
   FAQ LIST
=========================== */
.faq-list   { display: flex; flex-direction: column; gap: 13px; }
.faq-item   { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; transition: box-shadow .3s; }
.faq-item:hover { box-shadow: var(--shadow); }
.faq-item.open  { border-color: var(--primary); }
.faq-q   { display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px; }
.faq-badge { min-width: 34px; height: 34px; background: var(--primary); color: var(--white); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .88rem; flex-shrink: 0; transition: background .3s; }
.faq-item.open .faq-badge { background: var(--accent); }
.faq-q-text { font-size: .97rem; font-weight: 700; line-height: 1.5; }
.faq-a      { display: none; padding: 0 22px 18px 70px; font-size: .91rem; color: var(--text-sub); line-height: 1.82; }
.faq-item.open .faq-a { display: block; }

/* ===========================
   FOOTER
=========================== */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.8); }
.footer-cta  { background: linear-gradient(90deg,var(--primary),var(--secondary)); padding: 26px 24px; text-align: center; }
.footer-cta p { color: #fff; font-size: .97rem; font-weight: 600; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 38px; max-width: 1200px; margin: 0 auto; padding: 52px 24px 44px; }
.footer-brand .logo-text { font-size: 1.08rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: .86rem; color: rgba(255,255,255,.58); line-height: 1.8; margin-bottom: 18px; }
.social-row { display: flex; gap: 9px; }
.social-btn { width: 35px; height: 35px; background: rgba(255,255,255,.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .88rem; transition: all .3s; color: rgba(255,255,255,.7); }
.social-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-col h4 { font-size: .88rem; font-weight: 700; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; padding-bottom: 8px; border-bottom: 2px solid rgba(255,255,255,.1); }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: .85rem; color: rgba(255,255,255,.58); transition: color .3s; }
.footer-col ul a:hover { color: var(--gold); }
.footer-col .svc { font-size: .85rem; color: rgba(255,255,255,.58); padding: 5px 0; }
.footer-col .svc i { margin-right: 7px; color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 24px; text-align: center; font-size: .83rem; color: rgba(255,255,255,.45); }

/* ===========================
   BACK TO TOP
=========================== */
#btn-top { position: fixed; bottom: 28px; right: 28px; width: 44px; height: 44px; background: var(--primary); color: #fff; border: none; border-radius: 50%; font-size: 1rem; box-shadow: 0 4px 14px rgba(0,0,0,.22); display: none; z-index: 990; transition: background .3s; }
#btn-top:hover { background: var(--accent); }

/* ===========================
   WP HELPERS
=========================== */
.alignleft  { float: left; margin: 0 18px 14px 0; }
.alignright { float: right; margin: 0 0 14px 18px; }
.aligncenter { display: block; margin: 0 auto 14px; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }

/* ===========================
   RESPONSIVE
=========================== */
@media(max-width:1024px){
    .footer-grid  { grid-template-columns: 1fr 1fr; }
    .what-grid    { grid-template-columns: 1fr; }
    .steps-strip::before { display: none; }
    .steps-strip  { flex-wrap: wrap; }
    .step-item    { min-width: 45%; }
}
@media(max-width:768px){
    .nav-toggle { display: block; }
    .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: 0 10px 28px rgba(0,0,0,.1); padding: 18px 20px; }
    .primary-nav.open { display: block; }
    .primary-nav ul   { flex-direction: column; gap: 0; }
    .primary-nav li ul { position: static; box-shadow: none; padding-left: 16px; display: block; background: var(--bg-light); }
    .site-header__inner { position: relative; }
    .trade-grid   { grid-template-columns: 1fr; }
    .footer-grid  { grid-template-columns: 1fr; }
    .steps-strip  { flex-direction: column; gap: 18px; }
    .step-item    { min-width: 100%; }
    .content-box  { padding: 24px 18px; }
    .hero         { padding: 50px 20px; }
}
@media(max-width:480px){
    .hero__btns { flex-direction: column; align-items: center; }
    .btn        { width: 100%; justify-content: center; }
    .check-grid { grid-template-columns: 1fr; }
    .safety-grid{ grid-template-columns: 1fr; }
}
