/* =========================================================
   BRAND LOGO — one look for the round logo on every page (2026-11-13)
   Added to every HTML page by user_nav.php (bdt_brand_assets). brand_logo.js marks the logo pictures (class bdt-logo)
   and the name beside them (bdt-bt = title, bdt-sub = sliding tagline).
   ========================================================= */
@property --bdt-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* the round logo: a turning colour ring + soft glow, the picture itself untouched */
html img.bdt-logo {
    box-sizing: border-box !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    padding: 2px !important;
    background:
        radial-gradient(circle, #0a1426 60%, #050a16) content-box,
        conic-gradient(from var(--bdt-a), #22d3ee, #8b5cf6, #f472b6, #fbbf24, #22d3ee) border-box !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .10), 0 0 16px -3px rgba(34, 211, 238, .65), 0 6px 18px -8px rgba(139, 92, 246, .8) !important;
    animation: bdtRing 6s linear infinite;
    transition: transform .25s ease, box-shadow .25s ease;
}
html img.bdt-logo:hover { transform: scale(1.06) rotate(-4deg); box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 0 24px -2px rgba(34, 211, 238, .85), 0 8px 22px -8px rgba(139, 92, 246, .9) !important; }
@keyframes bdtRing { to { --bdt-a: 360deg; } }

/* the frame that holds the logo: no square fill / corners behind the round badge */
html :has(> img.bdt-logo) { background: none !important; box-shadow: none !important; border-color: transparent !important; border-radius: 50% !important; overflow: visible !important; }
html :has(> img.bdt-logo)::before { display: none !important; }
html :has(> img.bdt-logo)::after { border-color: rgba(34, 200, 255, .45) !important; border-radius: 50% !important; }

/* the name beside the logo: a light sweep runs over the letters */
.bdt-bt { position: relative; isolation: isolate; }
.bdt-bt::after {
    content: ""; position: absolute; inset: -2px -6px; pointer-events: none; z-index: 2;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .9) 50%, transparent 62%) no-repeat;
    background-size: 220% 100%; background-position: 160% 0;
    mix-blend-mode: color-dodge; animation: bdtSweep 5.5s ease-in-out infinite;
}
@keyframes bdtSweep { 0%, 55% { background-position: 160% 0; } 85%, 100% { background-position: -60% 0; } }

/* the line under the name: taglines slide up one after another */
.bdt-col { display: inline-flex !important; flex-direction: column; justify-content: center; line-height: 1.15; min-width: 0; }
.bdt-sub { display: block !important; overflow: hidden !important; height: 1.35em !important; line-height: 1.35em !important; padding-top: 0 !important; padding-bottom: 0 !important; }
.bdt-sub.bdt-new { font: 600 9.5px/1.35em 'Share Tech Mono', ui-monospace, Menlo, Consolas, monospace; letter-spacing: 1.8px; text-transform: uppercase; color: #67e8f9; margin-top: 2px; }
.bdt-slide { display: block; transition: transform .6s cubic-bezier(.65, 0, .35, 1); }
.bdt-slide > span { display: block; height: 1.35em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bdt-slide > span:nth-child(2) { color: #67e8f9; }
.bdt-slide > span:nth-child(3) { color: #c4b5fd; }
.bdt-slide > span:nth-child(4) { color: #fcd34d; }

@media (prefers-reduced-motion: reduce) {
    html img.bdt-logo, .bdt-bt::after { animation: none !important; }
    .bdt-slide { transition: none; }
}
