/* ================================================
   CyberNytronX™ - Trademark Branding Component
   Professional TM Badge System
   ================================================ */

/* TM Badge Styles */
.brand-tm {
    position: relative;
    display: inline-block;
}

.brand-tm::after {
    content: '™';
    position: absolute;
    top: -0.5em;
    right: -0.8em;
    font-size: 0.5em;
    color: var(--gold-accent, #00d4ff);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
    animation: tmPulse 3s ease-in-out infinite;
}

/* Animated TM Pulse */
@keyframes tmPulse {
    0%, 100% {
        opacity: 0.8;
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(0, 212, 255, 1), 0 0 30px rgba(0, 212, 255, 0.5);
    }
}

/* Brand Logo with TM */
.brand-logo-tm {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo-tm img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    transition: all 0.3s ease;
}

.brand-logo-tm img:hover {
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8));
    transform: scale(1.05);
}

.brand-logo-tm .tm-badge {
    position: absolute;
    top: -5px;
    right: -15px;
    background: linear-gradient(135deg, #00d4ff 0%, #0ea5e9 100%);
    color: #000;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
    animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 1), 0 0 30px rgba(0, 212, 255, 0.5);
    }
}

/* Floating TM Badge (for special sections) */
.tm-float-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(10, 22, 40, 0.95);
    border: 2px solid #00d4ff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #00d4ff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: floatBadge 3s ease-in-out infinite;
}

.tm-float-badge:hover {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 0 50px rgba(0, 212, 255, 1);
}

@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Brand Text with TM */
.brand-text-tm {
    font-family: 'Courier Prime', 'Space Mono', monospace;
    font-weight: bold;
    background: linear-gradient(135deg, #00d4ff 0%, #ffffff 50%, #00d4ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: brandShine 3s linear infinite;
    position: relative;
}

@keyframes brandShine {
    to {
        background-position: 200% center;
    }
}

/* Hero Brand Logo */
.hero-brand-logo {
    text-align: center;
    margin: 2rem 0;
}

.hero-brand-logo img {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 212, 255, 0.6));
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* 3D TM Badge Effect */
.tm-badge-3d {
    display: inline-block;
    font-size: 0.6em;
    color: #00d4ff;
    text-shadow:
        1px 1px 0 #0ea5e9,
        2px 2px 0 #0284c7,
        3px 3px 0 #0369a1,
        4px 4px 10px rgba(0, 212, 255, 0.5);
    animation: tm3d 2s ease-in-out infinite;
    vertical-align: super;
    margin-left: 3px;
}

@keyframes tm3d {
    0%, 100% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(180deg);
    }
}

/* Neon TM Badge */
.tm-neon {
    font-size: 0.6em;
    color: #00d4ff;
    text-shadow:
        0 0 7px #00d4ff,
        0 0 10px #00d4ff,
        0 0 21px #00d4ff,
        0 0 42px #0ea5e9,
        0 0 82px #0ea5e9,
        0 0 92px #0ea5e9;
    animation: neonFlicker 1.5s infinite alternate;
    vertical-align: super;
    margin-left: 2px;
}

@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow:
            0 0 7px #00d4ff,
            0 0 10px #00d4ff,
            0 0 21px #00d4ff,
            0 0 42px #0ea5e9,
            0 0 82px #0ea5e9,
            0 0 92px #0ea5e9;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .brand-tm::after {
        font-size: 0.4em;
        right: -0.6em;
    }

    .tm-float-badge {
        width: 50px;
        height: 50px;
        font-size: 12px;
        top: 15px;
        right: 15px;
    }

    .hero-brand-logo img {
        max-width: 200px;
    }

    .brand-logo-tm img {
        height: 32px;
    }
}
