/*
Theme Name: 오토케오토케 — 듀오 얼티밋
Theme URI: https://autocadautocad.com
Description: Hueman Pro 차일드 테마. 듀오 브랜딩(또케+오케) 적용. 쿠팡파트너스, iHerb 레퍼러 수익화 최적화.
Author: 오토케오토케
Author URI: https://autocadautocad.com
Template: hueman-pro
Version: 1.0.0
License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: ottoke-duo
*/

/* ===================================================
   오토케오토케 듀오 얼티밋 — Custom Styles
   Brand Colors:
   - 오케 오렌지: #FF6B4A
   - 또케 블루:   #3d5a80
   - 포인트 옐로: #FFB74D
   - 텍스트:      #1d1d1f
   - 배경:        #f5f5f7
   =================================================== */

/* ── Base Reset & Font ── */
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  background: #f5f5f7 !important;
  color: #1d1d1f;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

a { text-decoration: none; }
a:hover { text-decoration: none; }

/* ── News Ticker (injected via hook) ── */
.ottoke-ticker {
  background: #FF6B4A;
  color: #fff;
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  z-index: 200;
}
.ottoke-ticker-inner {
  display: inline-block;
  animation: tickerScroll 30s linear infinite;
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ottoke-ticker-item {
  display: inline;
  margin-right: 48px;
}

/* ── Header Override ── */
#header {
  background: #fff !important;
  border-bottom: 1px solid #e5e5e7 !important;
  box-shadow: none !important;
}
#header .container {
  max-width: 1200px;
}

/* Logo area */
.logo-tagline-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ottoke-duo-logo {
  display: flex;
  align-items: center;
  gap: 4px;
}
#site-title a,
.site-title a {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #1d1d1f !important;
  letter-spacing: -0.5px;
}
.site-description {
  font-size: 12px !important;
  color: #888 !important;
}

/* ── Pill Navigation ── */
#header .nav-container,
.nav-container#nav-header {
  background: #fff !important;
  border: none !important;
  box-shadow: none !important;
}
#nav-header .nav > li > a,
.nav-container .nav > li > a {
  padding: 6px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 20px !important;
  background: #f5f5f7 !important;
  color: #555 !important;
  margin: 2px 3px !important;
  transition: all 0.2s ease !important;
}
#nav-header .nav > li > a:hover,
#nav-header .nav > li.current-menu-item > a,
#nav-header .nav > li.current_page_item > a {
  background: #FF6B4A !important;
  color: #fff !important;
}

/* Nav dropdown */
#nav-header .nav ul {
  background: #fff;
  border: 1px solid #e5e5e7;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  overflow: hidden;
}
#nav-header .nav ul li a {
  padding: 10px 20px !important;
  font-size: 13px !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #333 !important;
  margin: 0 !important;
}
#nav-header .nav ul li a:hover {
  background: #FFF5F2 !important;
  color: #FF6B4A !important;
}

/* ── Hero Section (injected via hook) ── */
.ottoke-hero {
  background: linear-gradient(135deg, #fff 0%, #f8f6f3 100%);
  padding: 56px 0 48px;
  border-bottom: 1px solid #e5e5e7;
}
.ottoke-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.ottoke-hero-left {
  flex: 1;
  min-width: 320px;
}
.ottoke-hero-left h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}
.ottoke-hero-left h1 .o { color: #FF6B4A; }
.ottoke-hero-left h1 .b { color: #3d5a80; }
.ottoke-hero-left .tagline {
  font-size: 15px;
  color: #888;
  margin-bottom: 20px;
}
.ottoke-hero-articles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ottoke-hero-article {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eee;
  transition: all 0.2s;
}
.ottoke-hero-article:hover {
  border-color: #FF6B4A;
  box-shadow: 0 2px 12px rgba(255,107,74,.1);
}
.ottoke-hero-article .ha-num {
  font-size: 20px;
  font-weight: 800;
  color: #FF6B4A;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.ottoke-hero-article .ha-title {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
  color: #1d1d1f;
}
.ottoke-hero-right {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}
.ottoke-hero-char {
  text-align: center;
}
.ottoke-hero-char .speech {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.ottoke-hero-char .speech::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #fff;
}
.ottoke-hero-char .char-name {
  font-size: 14px;
  font-weight: 700;
  margin-top: 8px;
}
.ottoke-hero-char .char-role {
  font-size: 11px;
  color: #888;
}

/* ── Post Grid Override ── */
#page .container-inner {
  max-width: 1200px;
}
.post-list .group.grid-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: all 0.25s;
  box-shadow: none;
}
.post-list .group.grid-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
.post-inner {
  border: none !important;
}
.post-thumbnail img {
  border-radius: 0;
}
.post-meta .post-category a {
  background: #FF6B4A;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}
.post-title a {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1d1d1f !important;
  line-height: 1.4;
}
.post-title a:hover {
  color: #FF6B4A !important;
}
.entry.excerpt {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}

/* ── Sidebar Override ── */
.sidebar .widget {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  padding: 20px;
  margin-bottom: 24px;
}
.sidebar .widget-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #1d1d1f !important;
  border-bottom: none !important;
  margin-bottom: 14px !important;
  padding-bottom: 0 !important;
}

/* ── Coupang Section (injected via hook) ── */
.ottoke-coupang-section {
  margin: 40px 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}
.ottoke-coupang-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.ottoke-coupang-label h2 {
  font-size: 18px;
  font-weight: 800;
}
.ottoke-coupang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ottoke-coup-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
}
.ottoke-coup-card:hover {
  border-color: #FF6B4A;
  box-shadow: 0 4px 16px rgba(255,107,74,.1);
}
.ottoke-coup-card .discount {
  display: inline-block;
  background: #FF6B4A;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.ottoke-coup-card .c-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.ottoke-coup-card .c-old {
  font-size: 12px;
  color: #bbb;
  text-decoration: line-through;
}
.ottoke-coup-card .c-new {
  font-size: 18px;
  font-weight: 800;
  color: #FF6B4A;
  margin-top: 2px;
}
.ottoke-coup-card .c-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 16px;
  background: #3d5a80;
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s;
}
.ottoke-coup-card .c-btn:hover {
  background: #2e4766;
  color: #fff;
}

/* ── iHerb Section ── */
.ottoke-iherb-box {
  background: linear-gradient(135deg, #3d5a80 0%, #2e4766 100%);
  border-radius: 14px;
  padding: 28px;
  color: #fff;
  max-width: 1200px;
  margin: 0 auto 40px;
}
.ottoke-iherb-box h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fff;
}
.ottoke-iherb-code-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.ottoke-iherb-code {
  background: rgba(255,255,255,.15);
  padding: 8px 24px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  border: 1px dashed rgba(255,255,255,.3);
}
.ottoke-btn-copy {
  padding: 8px 18px;
  background: #FF6B4A;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Pretendard', sans-serif;
  transition: background 0.2s;
}
.ottoke-btn-copy:hover {
  background: #e55a3a;
}
.ottoke-iherb-items {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.ottoke-ih-item {
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 10px 16px;
  text-align: center;
}
.ottoke-ih-item .ih-name {
  font-size: 12px;
  opacity: .8;
}
.ottoke-ih-item .ih-price {
  font-size: 15px;
  font-weight: 700;
}

/* ── Sidebar iHerb Code Widget ── */
.ottoke-sb-iherb {
  background: linear-gradient(135deg, #f0ebe4, #e8e0d4);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.ottoke-sb-iherb h3 {
  font-size: 15px;
  font-weight: 700;
  color: #3d5a80;
  margin-bottom: 8px;
}
.ottoke-sb-iherb .code {
  font-size: 22px;
  font-weight: 800;
  color: #FF6B4A;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.ottoke-sb-iherb .btn-copy-sb {
  display: inline-block;
  padding: 8px 20px;
  background: #3d5a80;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Pretendard', sans-serif;
  transition: background 0.2s;
}
.ottoke-sb-iherb .btn-copy-sb:hover {
  background: #2e4766;
}

/* ── Footer Override ── */
#footer {
  background: #1d1d1f !important;
}
#footer,
#footer a,
#footer p,
#footer .widget-title {
  color: rgba(255,255,255,.6) !important;
}
#footer a:hover {
  color: #FFB74D !important;
}
#footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
}
.ottoke-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.ottoke-footer-brand .ft-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff !important;
}
.ottoke-footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,.5) !important;
}
.ottoke-footer-disc {
  font-size: 11px;
  color: rgba(255,255,255,.35) !important;
  line-height: 1.5;
  margin-top: 10px;
}

/* ── Hueman Pro 민트/틸 색상 → 오케 오렌지 전체 오버라이드 ── */
/* 사이드바 토글 버튼 (« 버튼) */
.sb-toggle,
.sidebar-toggle,
#sidebar-toggle,
.toggle-sidebar,
button.sidebar-toggle,
.s1 .sb-toggle,
.s2 .sb-toggle,
#content .sb-toggle,
.sb-right-toggle,
[class*="sb-toggle"] {
  background: #FF6B4A !important;
  background-color: #FF6B4A !important;
  color: #fff !important;
  border-color: #FF6B4A !important;
}
.sb-toggle:hover,
.sidebar-toggle:hover,
[class*="sb-toggle"]:hover {
  background: #e55a3a !important;
  background-color: #e55a3a !important;
  border-color: #e55a3a !important;
}

/* 검색 버튼 민트색 → 오렌지 */
.sidebar .searchform .search-submit,
.sidebar .search-form .search-submit,
.sidebar input[type="submit"],
.sidebar button[type="submit"],
.widget_search .search-submit,
.widget_search input[type="submit"],
.search-submit,
#searchsubmit {
  background: #FF6B4A !important;
  background-color: #FF6B4A !important;
  color: #fff !important;
  border-color: #FF6B4A !important;
}
.sidebar .searchform .search-submit:hover,
.sidebar input[type="submit"]:hover,
.widget_search .search-submit:hover,
.search-submit:hover {
  background: #e55a3a !important;
  background-color: #e55a3a !important;
}

/* Hueman Pro 글로벌 accent 색상 오버라이드 */
.btn-submit,
input.submit,
#respond #submit,
.hu-css-accent,
[style*="65bc7b"] {
  background-color: #FF6B4A !important;
}

/* ── 사이드바 오버플로우 방지 ── */
body,
html,
#page,
.container,
.container-inner,
#main-content {
  overflow-x: hidden !important;
}
.sidebar,
.s1,
.s2 {
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* 사이드바 위젯 넘침 방지 */
.sidebar .widget,
.sidebar .widget_search,
.sidebar .searchform,
.sidebar .search-form {
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.sidebar input[type="text"],
.sidebar input[type="search"] {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .ottoke-hero-inner { flex-direction: column; text-align: center; }
  .ottoke-hero-right { justify-content: center; }
  .ottoke-coupang-grid { grid-template-columns: repeat(2, 1fr); }

  /* 사이드바 반응형 — 영역 침범 방지 */
  .sidebar,
  #sidebar,
  .s1,
  .s2 {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    float: none !important;
    right: auto !important;
    left: auto !important;
    margin: 0 !important;
  }
  /* 본문 영역이 사이드바에 의해 밀리지 않도록 */
  #content,
  .content,
  .main-content,
  #main-content {
    width: 100% !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
  }
}
@media (max-width: 600px) {
  .ottoke-hero-left h1 { font-size: 28px; }
  .ottoke-coupang-grid { grid-template-columns: 1fr; }
  .ottoke-ticker { font-size: 11px; }
  #nav-header .nav > li > a { font-size: 12px !important; padding: 5px 12px !important; }
}


/* ─── 쿠팡 파트너스 추천 글 섹션 ─── */
.ottoke-coupang-posts {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}
.ottoke-coupang-posts-inner {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.ottoke-coupang-posts-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.ottoke-coupang-posts-label h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
}
.ottoke-coupang-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.ottoke-cp-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #f9f9f9;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none !important;
    color: inherit !important;
}
.ottoke-cp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(255,107,74,.15);
}
.ottoke-cp-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #eee;
}
.ottoke-cp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ottoke-cp-no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff5f3;
}
.ottoke-cp-info {
    padding: 16px;
}
.ottoke-cp-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ottoke-cp-date {
    font-size: 12px;
    color: #999;
}
.ottoke-coupang-disc {
    font-size: 11px;
    color: #aaa;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0;
}

/* 모바일 대응 */
@media (max-width: 600px) {
    .ottoke-coupang-posts {
        padding: 24px 16px;
    }
    .ottoke-coupang-posts-inner {
        padding: 20px 16px;
    }
    .ottoke-coupang-posts-grid {
        grid-template-columns: 1fr;
    }
    .ottoke-cp-thumb {
        height: 160px;
    }
}