/* ==========================================
   Binance Guide - Custom Styles
   ========================================== */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0B0E11;
}
::-webkit-scrollbar-thumb {
    background: #2B3139;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #F3BA2F;
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article content styling - prose-binance */
.prose-binance {
    color: #EAECEF;
    font-size: 1.0625rem;
    line-height: 1.85;
}

.prose-binance h2 {
    color: #EAECEF;
    font-size: 1.625rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2B3139;
}

.prose-binance h3 {
    color: #EAECEF;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose-binance h4 {
    color: #B7BDC6;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.prose-binance p {
    margin-bottom: 1.25rem;
    color: #B7BDC6;
}

.prose-binance a {
    color: #F3BA2F;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}
.prose-binance a:hover {
    color: #F0B90B;
}

.prose-binance strong {
    color: #EAECEF;
    font-weight: 600;
}

.prose-binance ul,
.prose-binance ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    color: #B7BDC6;
}

.prose-binance ul {
    list-style-type: disc;
}

.prose-binance ol {
    list-style-type: decimal;
}

.prose-binance li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.prose-binance li::marker {
    color: #F3BA2F;
}

.prose-binance blockquote {
    border-left: 4px solid #F3BA2F;
    background: #1E2329;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 0.75rem 0.75rem 0;
    color: #B7BDC6;
    font-style: normal;
}

.prose-binance code {
    background: #1E2329;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: #F3BA2F;
}

.prose-binance pre {
    background: #1E2329;
    border-radius: 0.75rem;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid #2B3139;
}

.prose-binance pre code {
    background: none;
    padding: 0;
    color: #EAECEF;
}

.prose-binance img {
    border-radius: 1rem;
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
}

.prose-binance table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

.prose-binance thead th {
    background: #1E2329;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #EAECEF;
    border-bottom: 2px solid #2B3139;
}

.prose-binance tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #2B3139;
    color: #B7BDC6;
}

.prose-binance tbody tr:hover {
    background: #1E2329;
}

/* Info/Warning/Tip boxes */
.prose-binance .info-box {
    background: rgba(14, 203, 129, 0.08);
    border: 1px solid rgba(14, 203, 129, 0.2);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

.prose-binance .warning-box {
    background: rgba(243, 186, 47, 0.08);
    border: 1px solid rgba(243, 186, 47, 0.2);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

.prose-binance .danger-box {
    background: rgba(246, 70, 93, 0.08);
    border: 1px solid rgba(246, 70, 93, 0.2);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

/* Floating particles animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Market table row animation */
@keyframes priceFlash {
    0% { background: transparent; }
    50% { background: rgba(243, 186, 47, 0.1); }
    100% { background: transparent; }
}

.price-flash {
    animation: priceFlash 0.5s ease;
}

/* Pulse for live indicator */
@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Mobile nav transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

#mobile-menu.active {
    max-height: 400px;
    opacity: 1;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #F3BA2F;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: rgba(243, 186, 47, 0.3);
    color: #EAECEF;
}

/* Remove default WordPress styles */
.wp-block-image img {
    border-radius: 1rem;
}

/* Print styles */
@media print {
    header, footer, .no-print { display: none !important; }
    body { background: white; color: black; }
    .prose-binance { color: #333; }
    .prose-binance a { color: #333; }
}
