/*
 * Custom Styles for Wow3 Crypto Hub Theme
 * Version: 3.3
 */

/* --- General & Base Styles --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    color: #E0E0E0;
}

/* --- Header & Navigation --- */
.custom-logo-link img.custom-logo {
    max-height: 36px;
    width: auto;
    height: auto;
}
.main-navigation-bar #main-nav ul li a {
    position: relative;
    padding: 0.5rem 0;
    color: #d1d5db; /* text-gray-300 */
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}
.main-navigation-bar #main-nav ul li a:hover {
    color: #ffffff;
}
.main-navigation-bar #main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #818cf8; /* indigo-400 */
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease-in-out;
}
.main-navigation-bar #main-nav ul li a:hover::after,
.main-navigation-bar #main-nav ul li.current-menu-item > a::after {
    transform: scaleX(1);
}
.main-navigation-bar #main-nav ul li.current-menu-item > a {
    color: #ffffff;
}

/* --- Mobile Navigation --- */
#mobile-nav ul {
    list-style: none;
    padding: 0;
}
#mobile-nav ul li a {
    display: block;
    padding: 1rem;
    font-size: 1.25rem; /* text-xl */
    font-weight: 600;
    color: #d1d5db;
    transition: color 0.2s, background-color 0.2s;
    border-radius: 0.5rem;
}
#mobile-nav ul li a:hover,
#mobile-nav ul li.current-menu-item > a {
    color: #fff;
    background-color: #374151;
}
#mobile-menu-overlay.hidden {
    display: none;
}

#search-trigger {
    transition: border-color 0.2s ease-in-out;
}

/* --- Crypto Ticker (Fixed) --- */
#crypto-ticker-container {
    position: fixed;
    bottom: 36px; /* Height of the main footer bar */
    left: 0;
    right: 0;
    z-index: 50;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    background-color: #1a1a1a;
    border-top: 1px solid #374151;
    border-bottom: 1px solid #374151;
}
.crypto-ticker-inner {
    display: inline-flex;
    animation: marquee 40s linear infinite;
}
.crypto-ticker-item {
    border-right: 1px solid #374151;
    font-size: 0.875rem;
    padding: 0.5rem 1.5rem;
}
#crypto-ticker-container:hover .crypto-ticker-inner {
    animation-play-state: paused;
}
/* --- Promo Banner --- */
.promo-banner-container {
    background: linear-gradient(90deg, #2c254e 0%, #3e817a 100%);
    padding: 0.75rem 0;
}
.promo-banner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    font-size: 0.8125rem; /* ~13px */
    text-decoration: none;
    transition: color 0.2s ease;
}
.promo-banner-link:hover {
    color: #fff;
}
.promo-banner-link strong {
    font-weight: 600;
}
.promo-banner-link .arrow {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
    font-weight: 600;
}
.promo-banner-link:hover .arrow {
    transform: translateX(4px);
}

/* --- Post Card & Excerpt --- */
.card-bg:hover {
    transform: none;
}
.post-excerpt > p {
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.group:hover img {
    transform: none !important;
}

/* --- Single Post & Article Body Formatting --- */
.article-body {
    font-size: 1.125rem; /* 18px */
    line-height: 1.75;
}
.article-body > *:last-child {
    margin-bottom: 0;
}
.article-body h2, .article-body h3, .article-body h4 {
    color: #fff;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    font-weight: 700;
    scroll-margin-top: 120px;
}
.article-body h2 { font-size: 1.75rem; }
.article-body h3 { font-size: 1.5rem; }
.article-body h4 { font-size: 1.25rem; }

.article-body p {
    color: #d1d5db;
    margin-bottom: 1.5rem;
}
.article-body a {
    color: #818cf8;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}
.article-body a:hover {
    color: #a78bfa;
}
.article-body ul, .article-body ol {
    color: #d1d5db;
    margin-left: 1.25rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}
.article-body ul { list-style-type: disc; }
.article-body ol { list-style-type: decimal; }
.article-body li { margin-bottom: 0.75rem; }
.article-body li::marker { color: #6b7280; }
.article-body strong, .article-body b {
    color: #fff;
    font-weight: 600;
}
.article-body blockquote {
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 3px solid #4f46e5;
    color: #e5e7eb;
    font-style: italic;
}
.article-body blockquote p { margin-bottom: 0; }
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 2.5rem 0;
}
.article-body hr {
    border-color: #374151;
    margin: 3rem auto;
}

/* --- Info Box Shortcode --- */
.info-box-container .social-icons a svg {
    width: 20px;
    height: 20px;
}

/* --- Post Tags Styling (Outline Style) --- */
.post-tags .tag-link {
    display: inline-block;
    border: 1px solid #4b5563;
    background-color: transparent;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
.post-tags .tag-link:hover {
    border-color: #a78bfa;
    background-color: rgba(167, 139, 250, 0.1);
    color: #c4b5fd;
}

/* --- Social Share Buttons (Single Post) --- */
.social-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    background-color: #374151;
    color: #d1d5db;
    transition: all 0.2s ease-in-out;
}
.social-share-button:hover {
    background-color: #818cf8;
    color: #fff;
    transform: scale(1.1);
}

/* --- Jetpack Related Posts Styling --- */
#jp-relatedposts {
    background-color: transparent !important;
    border-top: 1px solid #374151;
    padding-top: 3rem;
    margin-top: 4rem;
}
#jp-relatedposts h3.jp-relatedposts-headline {
    font-size: 1.875rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 2rem !important;
}
.jp-relatedposts-items-visual.jp-relatedposts-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
}
.jp-relatedposts-post {
    background-color: #1a1a1a !important;
    border-radius: 0.75rem !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    width: 100% !important;
}
.jp-relatedposts-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
.jp-relatedposts-post-a { text-decoration: none !important; }
.jp-relatedposts-post-img {
    height: 10rem !important;
    width: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}
.jp-relatedposts-post:hover .jp-relatedposts-post-img { transform: scale(1.05); }
p.jp-relatedposts-post-excerpt { display: none !important; }
.jp-relatedposts-post-a > h4, .jp-relatedposts-post-a > time, .jp-relatedposts-post-a > p {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}
h4.jp-relatedposts-post-title {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    margin: 1rem 0 0.5rem 0 !important;
    line-height: 1.4 !important;
}
.jp-relatedposts-post:hover h4.jp-relatedposts-post-title a { color: #818cf8 !important; }
time.jp-relatedposts-post-date, p.jp-relatedposts-post-context {
    font-size: 0.75rem !important;
    color: #6b7280 !important;
}
time.jp-relatedposts-post-date { display: block !important; }
p.jp-relatedposts-post-context { padding-bottom: 1rem !important; margin-top: 0.25rem !important; }

/* --- Footer & Partners --- */
.footer-bar #footer-nav ul li a:hover {
    color: #ffffff;
}
.partners-ticker-container {
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.partners-ticker-inner {
    display: flex;
    width: fit-content;
    animation: marquee 40s linear infinite;
}
.partners-ticker-container:hover .partners-ticker-inner {
    animation-play-state: paused;
}
.partner-item-box:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Misc & Plugin Hiding --- */
#load-more-btn .loader-spinner.hidden { display: none; }
.sharedaddy, #jp-post-flair { display: none !important; }

/* --- Scrollable Post Container --- */
#scroll-container {
  max-height: 150vh; /* Bạn có thể điều chỉnh chiều cao này */
  overflow-y: auto;
  padding: 1rem; /* Thêm một chút đệm bên trong */
  margin: -1rem; /* Bù lại phần đệm để căn chỉnh */
}

/* Custom Scrollbar for Webkit browsers (Chrome, Safari) */
#scroll-container::-webkit-scrollbar {
  width: 8px;
}

#scroll-container::-webkit-scrollbar-track {
  background: #1a1a1a; /* Màu nền của thanh cuộn */
}

#scroll-container::-webkit-scrollbar-thumb {
  background-color: #4b5563; /* Màu của thanh cuộn */
  border-radius: 4px;
  border: 2px solid #1a1a1a; /* Viền xung quanh thanh cuộn */
}

#scroll-container::-webkit-scrollbar-thumb:hover {
  background-color: #6b7280;
}

/* --- Footer --- */
.footer-bar #footer-nav ul li a:hover {
    color: #ffffff;
}
.footer-bar{
    position: fixed;
    left: 0;
    right: 0;
    z-index: 50;
    margin-top: 0;
    bottom: 0px;
    background-color: #1a1a1a;
    border-top: 1px solid #374151;
}

/* --- Post Source (New) --- */
.post-source p {
    font-size: 0.875rem; /* text-sm */
    font-style: italic;
}
.post-source strong {
    font-weight: 600;
    color: #fff;
    font-style: normal;
}