/* ══════════════════════════════════════════════════════════════════
   FOOTER
   Layout: stock ticker bar → three-column body → email row → base bar
   ══════════════════════════════════════════════════════════════════ */

footer {
    background: radial-gradient(circle, #334, #111);
    border: solid 1px rgb(0, 150, 251);
    color: white;
    position: relative;
    z-index: 99;
}

footer a         { color: white; }
footer a:hover   { color: dodgerblue; }


/* ── 1. Stock ticker bar ─────────────────────────────────────────── */

.stock-container {
    display: flex;
    gap: 16px;
    padding: 2rem 1rem;
    background: hsl(223.94deg 100% 24.9% / 15%);
    border-bottom: 1px solid #8500ff;
}

.tradingview-widget-container {
    flex: 1;
    background: hsl(257.54deg 36.67% 11.76%);
    border: 1px solid #003893;
    border-radius: 10px;
    padding: 12px;
    pointer-events: none;
    overflow: hidden;
    transition: border-color 0.2s;
}

.tradingview-widget-container:hover {
    border-color: #00e1f7;
}

@media (max-width: 780px) {
    .stock-container { flex-direction: column; }
}


/* ── 2. Three-column body ────────────────────────────────────────── */

.footer-body {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 2rem 2rem 1.5rem;
}

@media (max-width: 780px) {
    .footer-body {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Col 1 – Logo */
.footer-col--logo {}

.footer-logo {
    margin: 0;
    padding: 0;
}

.footer-logo a {
    display: inline-block;
}

/* Col 2 – Nav / copyright links */
.footer-col--links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
}

/* Col 3 – Social / YouTube */
.footer-col--social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

@media (max-width: 780px) {
    .footer-col--social { align-items: center; }
}

.footer_bio_section__yt {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    color: #ff0000;
    text-decoration: none;
    font-size: 1em;
}

.footer_bio_section__yt:hover {
    color: #ffffff;
    opacity: 0.8;
}


/* ── 3. Email row ────────────────────────────────────────────────── */

.email-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    /*vertical-align: -0.1em;*/
	margin-left: .75rem;
}

.footer-email-row {
    font-size: 0.9rem;
    padding: 0.5rem 0 0 0;
}

.footer-email-row .email a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-email-row .email a:hover {
    color: dodgerblue;
}


/* ── 4. Base bar – copyright ─────────────────────────────────────── */

.site-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0.75rem 2rem;
    border-top: 1px solid rgba(0, 150, 251, 0.2);
    font-size: 0.85rem;
    color: #94a3b8;
}

.site-info p { margin: 0; }


/* ── 5. Scroll-to-top ────────────────────────────────────────────── */

.scroll-to-top {
    visibility: hidden;
    opacity: 0;
    background: radial-gradient(circle, #5757ff, #59009c);
    width: 3em;
    height: 3em;
    text-align: center;
    line-height: 1em;
    position: fixed;
    bottom: -2em;
    right: 1.75em;
    z-index: 10;
    cursor: pointer;
    border-radius: 0.25em;
    transition: all 0.2s;
}

.scroll-to-top.fade-in {
    visibility: visible;
    bottom: 3.5em;
    opacity: 1;
    border: solid 1px rgb(0, 150, 251);
}

.scroll-to-top.fade-in:hover { opacity: 0.8; }

#up_button_chevron {
    font: bold 3em Helvetica;
    color: white;
    transform: rotate(90deg);
    position: absolute;
    left: 0.375em;
    top: -0.125em;
    user-select: none;
}


/* ══════════════════════════════════════════════════════════════════
   PERSISTENT AUDIO PLAYER  (#ap-bar)
   ══════════════════════════════════════════════════════════════════ */

#ap-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    border-top: 1px solid rgba(124, 58, 237, 0.4);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    color: #cbd5e1;
}

.ap-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    height: 48px;
    box-sizing: border-box;
    overflow: hidden;
}

#ap-now-playing {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #94a3b8;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.ap-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: none;
    border-radius: 50px;
    background: #1e1e30;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}
.ap-btn:hover { background: #2a2a40; color: white; }

.ap-btn-play {
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    color: white;
    font-weight: 600;
    padding: 6px 14px;
}
.ap-btn-play:hover { opacity: 0.9; background: linear-gradient(135deg, #7c3aed, #06b6d4); }

.ap-active-loop {
    background: linear-gradient(135deg, #e65c00, #f9d423) !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(230, 92, 0, 0.4);
}

.ap-btn-toggle { font-size: 15px; padding: 6px 12px; }

.ap-volume {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ap-volume input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, #7c3aed 80%, #2a2a40 80%);
    outline: none;
    cursor: pointer;
}
.ap-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(124, 58, 237, 0.6);
}

#ap-volume-label {
    font-size: 11px;
    color: #64748b;
    min-width: 28px;
    text-align: right;
}


#ap-playlist::-webkit-scrollbar {
    width: 6px;
}
#ap-playlist::-webkit-scrollbar-track {
    background: #0f0f1a;
    border-radius: 3px;
}
#ap-playlist::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.5);
    border-radius: 3px;
}
#ap-playlist::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.9);
}

#ap-panel {
    max-height: 0;
    overflow: hidden;
    border-top: 0 solid transparent;
    transition: max-height 0.35s ease;
}
#ap-panel.ap-open {
    max-height: 320px;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
}

.ap-page-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 6px 16px;
    font-size: 12px;
    color: #475569;
}
.ap-page-nav button {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 2px 6px;
    transition: color 0.2s;
}
.ap-page-nav button:hover { color: white; }

#ap-playlist {
    list-style: none;
    padding: 0 12px 8px;
    margin: 0;
    overflow-y: auto;
    max-height: 240px;
}
#ap-playlist li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin: 3px 0;
    background: #0f0f1a;
    border: 1px solid #1e1e30;
    border-radius: 6px;
    cursor: pointer;
    color: #94a3b8;
    font-size: 12px;
    transition: background 0.2s, border-color 0.2s;
}
#ap-playlist li:hover { background: #1e1e30; border-color: rgba(124, 58, 237, 0.3); color: #e2e8f0; }
#ap-playlist li.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.15));
    border-color: rgba(124, 58, 237, 0.5);
    color: white;
}

.track-icon { margin-right: 6px; vertical-align: middle; opacity: 0.5; }
#ap-playlist li.active .track-icon { opacity: 1; }
.ap-artist { font-size: 11px; opacity: 0.6; }

body { padding-bottom: 48px; }

main[role="main"].pjax-loading { opacity: 0; transition: opacity 0.15s ease; }
main[role="main"] { transition: opacity 0.15s ease; }


/* ══════════════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════════════ */

#pagination {
    padding: 1em;
    clear: both;
}

#pagination a {
    border: 1px solid white;
}

#pagination a:hover {
    color: #62bdff;
    background: white;
    border: 1px solid black;
}

.page-numbers {
    background: #222;
    margin: 0 5px 0 0;
    display: inline-block;
    float: left;
    line-height: 1;
    text-decoration: none;
    color: #fff;
    padding: 10px 13px;
    min-width: 36px;
    box-sizing: border-box;
    border-radius: 3px;
    text-align: center;
}

.page-numbers.current,
.pagination a:hover {
    color: #fff;
    margin: 0 5px 0 0;
    display: inline-block;
    float: left;
    line-height: 1;
    text-decoration: none;
    padding: 10px 13px;
    background: dodgerblue;
    min-width: 36px;
    box-sizing: border-box;
    border-radius: 3px;
    text-align: center;
}


/* ══════════════════════════════════════════════════════════════════
   WORDPRESS CORE
   ══════════════════════════════════════════════════════════════════ */

.wp-embed { opacity: 1; }

.alignnone                { margin: 5px 20px 20px 0; }
.aligncenter,
div.aligncenter           { display: block; margin: 5px auto; }
.alignright               { float: right; margin: 5px 0 20px 20px; }
.alignleft                { float: left;  margin: 5px 20px 20px 0; }
a img.alignright          { float: right; margin: 5px 0 20px 20px; }
a img.alignnone           { margin: 5px 20px 20px 0; }
a img.alignleft           { float: left;  margin: 5px 20px 20px 0; }
a img.aligncenter         { display: block; margin: 0 auto; }

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}
.wp-caption.alignnone  { margin: 5px 20px 20px 0; }
.wp-caption.alignleft  { margin: 5px 20px 20px 0; }
.wp-caption.alignright { margin: 5px 0 20px 20px; }
.wp-caption img {
    border: 0;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}
.wp-caption .wp-caption-text,
.gallery-caption {
    font-size: 1em;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
    color: #8221ff;
}

.syntaxhighlighter { padding: 1em 0; }


/* ══════════════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════════════ */

@keyframes drophead {
    from { top: -6em; }
    to   { top: 0; }
}

@keyframes drop {
    from { transform: translateY(-3.75em); opacity: 0; }
    to   { transform: translateY(0);       opacity: 1; }
}

@keyframes rise {
    from { transform: translateY(0);        opacity: 1; }
    to   { transform: translateY(-3.75em);  opacity: 0; }
}

@keyframes slide-in {
    from { transform: translateX(-5em); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

@keyframes slide-out {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(-5em); opacity: 0; }
}

@keyframes fadeOut {
    from { transform: translateY(0);      opacity: 1; }
    to   { transform: translateY(3.75em); opacity: 0; }
}

@keyframes step-rotate {
    to { transform: rotate(360deg); }
}


/* ══════════════════════════════════════════════════════════════════
   BROWSER STYLES
   ══════════════════════════════════════════════════════════════════ */

div::-webkit-scrollbar       { width: 12px; }
div::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); border-radius: 2px; }
div::-webkit-scrollbar-thumb { background-color: #8e88ff; border-radius: 10px; -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); }

::selection          { background: #000; color: #fff; text-shadow: none; }
::-webkit-selection  { background: #000; color: #fff; text-shadow: none; }
::-moz-selection     { background: #000; color: #fff; text-shadow: none; }


/* ══════════════════════════════════════════════════════════════════
   PRINT
   ══════════════════════════════════════════════════════════════════ */

@media print {
    * { background: transparent !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; }
    a, a:visited                        { text-decoration: underline; }
    a[href]:after                       { content: " (" attr(href) ")"; }
    abbr[title]:after                   { content: " (" attr(title) ")"; }
    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after                  { content: ""; }
    pre, blockquote                     { border: 1px solid #999; page-break-inside: avoid; }
    thead                               { display: table-header-group; }
    tr, img                             { page-break-inside: avoid; }
    img                                 { max-width: 100% !important; }
    @page                               { margin: 0.5cm; }
    p, h2, h3                           { orphans: 3; widows: 3; }
    h2, h3                              { page-break-after: avoid; }
}
