/*
Theme Name: MyCrypto Theme FULL v4
Author: You
Description: Tema WordPress dark mode ala portal kripto dengan header menu kiri-ke-kanan, ticker top gainers CMC, sidebar iklan, dashboard admin kustom.
Version: 2.2.0
Text Domain: mycrypto-full-v4-mod
*/
body { background:#0d1117; color:#e6edf3; font-family:Arial, sans-serif; margin:0; }
a { color:#58a6ff; text-decoration:none; }
a:hover { color:#1f6feb; }
.container { max-width:1180px; margin:0 auto; padding:0 16px; }

#site-header { background:#161b22; border-bottom:1px solid #30363d; position:sticky; top:0; z-index:50; }
#site-header .container { min-height:64px; }

.header-flex { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.site-branding { flex:1; }

.main-navigation { flex:2; text-align:center; }
.main-navigation .nav-menu { display:flex; justify-content:center; gap:30px; padding:0; margin:0; list-style:none; }
.main-navigation .nav-menu li { display:inline-block; }
.main-navigation .nav-menu a { color:#c9d1d9; font-weight:600; padding:6px 10px; text-transform:uppercase; }
.main-navigation .nav-menu a:hover { color:#58a6ff; }

.header-login { flex:1; text-align:right; }
.btn-login { background:#238636; color:#fff; padding:6px 12px; border-radius:6px; font-size:14px; font-weight:600; }
.btn-login:hover { background:#2ea043; }

.crypto-ticker { overflow:hidden; white-space:nowrap; background:#0d1117; border-top:1px solid #30363d; border-bottom:1px solid #30363d; padding:6px 0; }
.crypto-ticker .ticker-move { display:inline-block; padding-left:100%; animation:ticker 20s linear infinite; }
.crypto-ticker .item { display:inline-block; margin:0 30px; }
.crypto-ticker .up { color:#16c784; }
.crypto-ticker .down { color:#ea3943; }
@keyframes ticker { 0%{ transform:translateX(0%);} 100%{ transform:translateX(-100%);} }

.content-with-sidebar { display:flex; gap:28px; padding:24px 0; }
.site-main { flex:1 1 auto; }
.sidebar-kanan { width:320px; max-width:100%; }

.widget, .post-card { background:#161b22; border:1px solid #30363d; border-radius:12px; padding:16px; margin-bottom:18px; color:#c9d1d9; }
.widget-title { font-size:16px; margin:0 0 10px; color:#e6edf3; }
.post-card h2 { margin:0 0 8px; font-size:22px; }
.post-card .meta { font-size:12px; color:#8b949e; margin-bottom:8px; }

#site-footer { border-top:1px solid #30363d; padding:24px 0; color:#8b949e; font-size:14px; text-align:center; }

@media (max-width:960px){
  .content-with-sidebar { flex-direction:column; }
  .sidebar-kanan { width:100%; }
  .main-navigation .nav-menu { flex-wrap:wrap; row-gap:10px; }
}

/* Custom MC Styles */
.mc-container{max-width:1200px;margin:auto;padding:20px;color:#cfd6e4;}.mc-grid{display:grid;grid-template-columns:1.4fr 1.2fr 1fr;gap:20px;}.mc-card{background:#0e1320;padding:14px;border-radius:12px;margin-bottom:12px;}.mc-item-title{font-weight:700;color:#fff;text-decoration:none;}.mc-item-title:hover{color:#9ec1ff;}.mc-panel{background:#0e1320;padding:16px;border-radius:12px;}.mc-widget{background:#0e1320;padding:14px;border-radius:12px;margin-bottom:16px;}
/* === FIX 3 COLUMN GRID LAYOUT === */
.container.mc-grid,
.mc-grid {
  max-width: 1280px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 260px 1fr 300px !important;
  gap: 25px !important;
  align-items: flex-start !important;
  box-sizing: border-box;
}

/* Susunan kolom */
.mc-left  { grid-column: 1 !important; }
.mc-center{ grid-column: 2 !important; }
.mc-right { grid-column: 3 !important; }

/* Pastikan konten tengah mengambil ruang penuh */
.mc-center {
  min-width: 0 !important;
  width: 100% !important;
}

/* Sidebar tetap proporsional */
.mc-right .widget,
.mc-right .mc-panel {
  width: 100% !important;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Post list agar lebih compact */
.mc-item {
  background: #0f1422;
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.mc-item-title {
  font-size: 15px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.mc-item-title:hover { color: #4da6ff; }

/* Responsif */
@media (max-width: 1024px) {
  .container.mc-grid,
  .mc-grid {
    grid-template-columns: 1fr !important;
  }
}
.mc-left.loading {
  opacity: 0.6;
  position: relative;
}
.mc-left.loading::after {
  content: "Loading...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #9da7c2;
  font-size: 14px;
}
.comment-section {
  background-color: #101727;
  border: 1px solid #1e2a3a;
  border-radius: 14px;
  padding: 25px 30px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  margin-top: 25px;
}

.comment-section::before {
  content: "";
  display: block;
  height: 1px;
  background: #1e2a3a;
  margin-bottom: 20px;
  opacity: 0.5;
}
/* === RESPONSIVE LAYOUT SAHAMBAGUS === */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .content-with-sidebar,
  .market-container,
  .analisis-container,
  .single-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    margin-top: 25px;
  }

  .header-flex {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .header-login {
    margin-top: 10px;
  }

  .crypto-ticker span {
    font-size: 12px;
    margin-right: 20px;
  }

  .post-card,
  .analisis-card,
  .market-card {
    padding: 18px;
  }
}

/* === MOBILE (max-width: 768px) === */
@media (max-width: 768px) {
  body {
    font-size: 15px;
    padding: 0 10px;
  }

  header#site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-branding {
    font-size: 20px;
  }

  .main-navigation {
    display: none;
    width: 100%;
    margin-top: 10px;
  }

  .main-navigation.active {
    display: block;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .nav-menu li {
    border-top: 1px solid #222;
  }

  .nav-menu li a {
    display: block;
    padding: 10px;
    color: #c9d4ff;
    text-decoration: none;
  }

  .nav-menu li a:hover {
    background: #1c2740;
  }

  /* Tombol menu (hamburger) */
  .menu-toggle {
    display: inline-block;
    background: none;
    border: none;
    color: #9fc4ff;
    font-size: 22px;
    cursor: pointer;
    margin-top: 8px;
  }

  /* Card styling */
  article.post-card,
  .market-card,
  .analisis-card,
  .single-card {
    padding: 16px;
    border-radius: 12px;
  }

  .entry-title a,
  .market-title a,
  .analisis-card h2 a {
    font-size: 18px;
  }

  .meta,
  .analisis-meta,
  .market-meta {
    font-size: 12px;
  }

  .sentiment-tag {
    font-size: 12px;
    padding: 3px 8px;
  }

  /* Sidebar ke bawah */
  .sidebar {
    order: 2;
  }

  /* Pagination */
  .pagination {
    text-align: center;
    margin: 20px 0;
  }

  /* Footer */
  footer {
    text-align: center;
    padding: 20px;
  }
}

/* === EXTRA SMALL (max-width: 480px) === */
@media (max-width: 480px) {
  .site-branding a {
    font-size: 18px;
  }

  .crypto-ticker {
    font-size: 11px;
    padding: 6px 0;
  }

  .ticker-inner {
    animation-duration: 80s;
  }

  .post-card h2,
  .analisis-card h2,
  .market-card h2 {
    font-size: 17px;
  }
}
/* === TOMBOL BACA SELENGKAPNYA === */
.btn-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #243b55 0%, #141e30 100%);
  color: #cde2ff;
  font-weight: 500;
  border-radius: 8px;
  padding: 8px 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
  border: 1px solid #3a6aff;
  box-shadow: 0 0 5px rgba(58,106,255,0.2);
}
.btn-readmore span {
  transition: transform 0.3s ease;
}
.btn-readmore:hover {
  background: linear-gradient(90deg, #3a6aff 0%, #0077ff 100%);
  color: #fff;
  box-shadow: 0 0 12px rgba(58,106,255,0.5);
  transform: translateY(-2px);
}
.btn-readmore:hover span {
  transform: translateX(4px);
}
/* === BLOOMBERG-STYLE SOURCE BOX === */
.article-source {
  margin-top: 30px;
  border-top: 1px solid #2a3240;
  padding-top: 15px;
  text-align: right;
}
.source-inner {
  display: inline-block;
  background: #151b2d;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #2a3b60;
  font-size: 13px;
  color: #9fc4ff;
}
.source-label {
  color: #aab5c3;
  font-weight: 400;
  margin-right: 6px;
}
.article-source a {
  color: #3ea6ff;
  text-decoration: none;
  font-weight: 600;
}
.article-source a:hover {
  text-decoration: underline;
  color: #6ebcff;
}
.site-logo img {
  max-height: 55px;
  width: auto;
  transition: transform 0.3s ease;
}

.site-logo img:hover {
  transform: scale(1.05);
}
.custom-logo {
  max-height: 60px;
  width: auto;
}
.analysis-meta {
  background: #0d1117;
  border: 1px solid #1f2937;
  border-left: 4px solid #3a9cff;
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 20px;
}
.analysis-meta strong {
  color: #fff;
}
.analysis-meta a {
  color: #3a9cff;
  text-decoration: none;
}
.analysis-meta a:hover {
  text-decoration: underline;
}
/* === SENTIMEN BADGE DI INDEX / ARCHIVE === */
.analysis-excerpt-meta {
  margin-bottom: 8px;
  font-size: 13px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.analysis-label {
  background: rgba(30, 64, 175, 0.2);
  color: #3b82f6;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 500;
}

.sentiment-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.sentiment-badge.bullish {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.sentiment-badge.bearish {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.sentiment-badge.neutral {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}
/* === RESPONSIVE DESIGN - SAHAMBAGUS === */

/* Untuk tablet (lebar < 1024px) */
@media screen and (max-width: 1024px) {
  .content-with-sidebar,
  .single-container {
    flex-direction: column;
    gap: 20px;
  }

  .sidebar {
    order: 2;
    width: 100%;
  }

  #primary.site-main,
  .single-main {
    order: 1;
    width: 100%;
  }

  article.post-card,
  .single-card {
    padding: 18px;
  }
}

/* Untuk HP (lebar < 768px) */
@media screen and (max-width: 768px) {
  /* === HEADER === */
  header.site-header,
  #site-header {
    padding: 8px 12px;
  }

  .header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .site-branding img {
    max-width: 160px;
    height: auto;
  }

  .main-navigation ul.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
  }

  .main-navigation ul.nav-menu li {
    list-style: none;
  }

  .main-navigation ul.nav-menu li a {
    padding: 6px 10px;
    font-size: 14px;
  }

  /* === ARTIKEL & SIDEBAR === */
  .content-with-sidebar,
  .single-container {
    display: flex;
    flex-direction: column;
    padding: 0 12px;
  }

  article.post-card {
    font-size: 15px;
  }

  .entry-title {
    font-size: 18px;
  }

  .entry-excerpt {
    font-size: 14px;
  }

  /* === KOMENTAR === */
  #comments {
    font-size: 14px;
  }

  /* === TRADINGVIEW CHART === */
  .tradingview-widget-container {
    max-width: 100%;
    overflow: hidden;
  }

  /* === BUTTON DAN META === */
  .read-more-btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
  }

  /* === FOOTER === */
  footer {
    padding: 20px 10px;
    text-align: center;
    font-size: 13px;
  }
}

/* Untuk layar sangat kecil (<480px) */
@media screen and (max-width: 480px) {
  .site-branding img {
    max-width: 130px;
  }

  .entry-title {
    font-size: 16px;
  }

  .crypto-ticker span {
    font-size: 12px;
    margin-right: 15px;
  }

  .read-more-btn {
    width: 100%;
  }
}
/* === RESPONSIVE HEADER DAN MENU MOBILE === */

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
}

.site-branding img {
  max-height: 48px;
  width: auto;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid #3ea6ff;
  color: #3ea6ff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.main-navigation ul.nav-menu li a {
  text-decoration: none;
  color: #dce3f0;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s;
}

.main-navigation ul.nav-menu li a:hover {
  color: #3ea6ff;
}

/* === MOBILE VIEW === */
@media (max-width: 768px) {
  .header-flex {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
  }

  .menu-toggle {
    display: block;
    margin-top: 8px;
  }

  .main-navigation {
    width: 100%;
    display: none;
  }

  .main-navigation.active {
    display: block;
    width: 100%;
  }

  .main-navigation ul.nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
  }

  .main-navigation ul.nav-menu li a {
    display: block;
    width: 100%;
    padding: 10px;
    background: #111827;
    border-radius: 6px;
  }

  .header-login {
    margin-top: 10px;
    width: 100%;
    text-align: left;
  }

  .crypto-ticker-wrapper {
    font-size: 12px;
    height: auto;
    padding: 4px 0;
  }

  .crypto-ticker span {
    margin-right: 10px;
  }
}

/* === VERY SMALL SCREEN (MAX 480PX) === */
@media (max-width: 480px) {
  .site-branding img {
    max-height: 40px;
  }

  .menu-toggle {
    font-size: 14px;
    padding: 4px 8px;
  }

  .main-navigation ul.nav-menu li a {
    font-size: 14px;
    padding: 8px;
  }
}
/* === FINAL RESPONSIVE FIX - HEADER & SIDEBAR CRYPTO === */

/* 1️⃣ HEADER MOBILE FIX — logo & menu sejajar */
@media (max-width: 768px) {
  header#site-header .container.header-flex {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 8px 12px;
  }

  .site-branding {
    flex: 1;
    display: flex;
    align-items: center;
  }

  .site-branding img {
    max-height: 42px;
    width: auto;
  }

  .menu-toggle {
    flex-shrink: 0;
    border: 1px solid #3ea6ff;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 15px;
    color: #3ea6ff;
    background: none;
  }

  /* Menu dan tombol login turun di bawah logo saat dibuka */
  .main-navigation {
    width: 100%;
    display: none;
    margin-top: 8px;
  }

  .main-navigation.active {
    display: block;
  }

  .header-login {
    width: 100%;
    text-align: left;
    margin-top: 8px;
  }
}

/* 2️⃣ CRYPTO PAGE SIDEBAR FIX */
@media (max-width: 1024px) {
  .crypto-container {
    flex-direction: column !important;
    gap: 20px;
  }

  .crypto-main {
    order: 1;
    width: 100%;
  }

  .sidebar {
    order: 2;
    width: 100%;
  }

  .crypto-card {
    width: 100%;
  }

  /* Chart TradingView agar tidak terpotong */
  .tradingview-widget-container,
  #tradingview_chart {
    width: 100% !important;
    min-height: 400px;
    overflow: hidden;
  }

  iframe {
    max-width: 100% !important;
  }
}

/* 3️⃣ TAMBAHAN SMOOTH TRANSITION MENU MOBILE */
.main-navigation {
  transition: all 0.3s ease;
}
.main-navigation.active {
  animation: slideDown 0.3s ease forwards;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
/* === REMOVE HEADER LOGIN GAP === */
.header-login {
  display: none !important;
}

.header-flex {
  justify-content: space-between;
}

.main-navigation {
  flex: 1;
  text-align: right;
}
/* === HEADER SEARCH BAR === */
.header-search {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-search form {
  display: flex;
  align-items: center;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 4px 6px;
}

.header-search input[type="text"] {
  background: transparent;
  border: none;
  outline: none;
  color: #c9d1d9;
  font-size: 14px;
  padding: 4px 8px;
  width: 160px;
}

.header-search button {
  background: none;
  border: none;
  color: #3ea6ff;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
}

.header-search button:hover {
  color: #6ebcff;
}

/* === RESPONSIVE HEADER SEARCH === */
@media (max-width: 768px) {
  .header-search {
    width: 100%;
    margin-top: 8px;
    justify-content: flex-start;
  }

  .header-search input[type="text"] {
    width: 100%;
  }
}

/* === SAHAMBAGUS SIDEBAR STOCK WIDGET ENHANCEMENT === */
.sidebar-box,
.sidebar .widget {
  background: #0d111b;
  border: 1px solid #1b2b3f;
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 0 10px rgba(0,180,255,0.1);
  transition: all 0.3s ease;
}

.sidebar-box:hover,
.sidebar .widget:hover {
  box-shadow: 0 0 18px rgba(0,180,255,0.25);
  background: #101827;
}

.stock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #dbe3ee;
}

.stock-table th, .stock-table td {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 6px 4px;
}

.stock-table th {
  color: #8fd6ff;
  text-align: left;
}

.stock-up {
  color: #00ff99;
  text-shadow: 0 0 6px rgba(0,255,153,0.4);
}

.stock-down {
  color: #ff5050;
  text-shadow: 0 0 6px rgba(255,80,80,0.4);
}

.stock-table tr:hover {
  background-color: rgba(62,166,255,0.08);
  transition: background 0.3s ease;
}

.update-time {
  color: #8fd6ff;
  font-size: 12px;
  margin-top: 8px;
  text-align: right;
  opacity: 0.8;
}

/* === SAHAMBAGUS SIDEBAR STOCK WIDGET FINAL ENHANCEMENT === */
.sidebar-box,
.sidebar .widget {
  background: #0d1117;
  border: 1px solid #1b2b3f;
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 0 10px rgba(0,180,255,0.12);
  transition: all 0.3s ease;
}

.sidebar-box:hover,
.sidebar .widget:hover {
  box-shadow: 0 0 20px rgba(0,180,255,0.25);
  background: #111a2b;
}

.stock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #dbe3ee;
}

.stock-table th, .stock-table td {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 6px 4px;
}

.stock-table th {
  color: #8fd6ff;
  text-align: left;
  font-weight: 600;
}

.stock-up {
  color: #00ff99;
  text-shadow: 0 0 6px rgba(0,255,153,0.4);
  font-weight: 600;
}

.stock-down {
  color: #ff5050;
  text-shadow: 0 0 6px rgba(255,80,80,0.4);
  font-weight: 600;
}

.stock-table tr:hover {
  background-color: rgba(62,166,255,0.06);
  transition: background 0.25s ease;
}

.update-time {
  color: #8fd6ff;
  font-size: 12px;
  margin-top: 8px;
  text-align: right;
  opacity: 0.85;
}

/* Responsif untuk tabel saham */
@media (max-width: 768px) {
  .stock-table { font-size: 13px; }
  .sidebar-box { padding: 14px 16px; }
}

/* Small polish for header ticker consistency */
.crypto-ticker-wrapper { border-top:1px solid rgba(255,255,255,0.02); border-bottom:1px solid rgba(255,255,255,0.02); }
.ticker-content span { display:inline-block; vertical-align:middle; }

/* Minor utility */
.hidden-on-mobile { display:block; }
@media (max-width:480px){ .hidden-on-mobile{ display:none; } }

/* === HEADER SOCIAL ICONS === */
.header-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-social .social-icon {
  color: #58a6ff;
  font-size: 18px;
  transition: all 0.3s ease;
}

.header-social .social-icon:hover {
  color: #9fcfff;
  transform: scale(1.2);
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
  .header-social {
    margin-top: 10px;
    justify-content: flex-start;
  }
}
