/* Creator Badge Component Styles */
.creator-badge {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 50;
    border-radius: 1rem;
}

@media (min-width: 640px) {
    .creator-badge {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

.creator-badge-container {
    position: relative;
}

/* Main glass background for container */
.creator-badge-background {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Inner glass layer for container */
.creator-badge-inner {
    position: absolute;
    inset: 1px;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02), transparent);
    border-radius: 1rem;
}

/* Ambient glow for container */
.creator-badge-glow {
    position: absolute;
    inset: -4px;
    background: linear-gradient(to bottom right, rgba(59, 130, 246, 0.2), rgba(115, 115, 115, 0.3), rgba(34, 211, 238, 0.2));
    border-radius: 1rem;
    filter: blur(16px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.creator-badge:hover .creator-badge-glow {
    opacity: 1;
}

/* Portfolio Badge */
.portfolio-link {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
}

.portfolio-content {
    position: relative;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
    border-radius: 1rem 1rem 0 0;
    transition: background-color 0.3s ease;
}

@media (min-width: 640px) {
    .portfolio-content {
        padding: 1rem;
        min-width: 220px;
    }
}

.portfolio-link:hover .portfolio-content {
    background-color: rgba(255, 255, 255, 0.05);
}

.creator-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(209, 213, 219, 0.9);
}

.creator-icon {
    padding: 0.25rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease;
}

.portfolio-link:hover .creator-icon {
    border: 1px solid rgba(147, 197, 253, 0.3);
}

.creator-icon svg {
    width: 0.75rem;
    height: 0.75rem;
    color: rgb(147, 197, 253);
}

@media (min-width: 640px) {
    .creator-icon svg {
        width: 1rem;
        height: 1rem;
    }
}

.made-by-text {
    font-size: 0.75rem;
    font-weight: 500;
}

@media (min-width: 640px) {
    .made-by-text {
        font-size: 0.875rem;
    }
}

.creator-name {
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    background: linear-gradient(to right, white, rgb(243, 244, 246), white);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

@media (min-width: 640px) {
    .creator-name {
        font-size: 1rem;
    }
}

/* Separator */
.separator {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 0.75rem;
}

@media (min-width: 640px) {
    .separator {
        margin: 0 1rem;
    }
}

/* Repository Badge */
.repo-link {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
}

.repo-content {
    position: relative;
    padding: 0.75rem;
    min-width: 200px;
    border-radius: 0 0 1rem 1rem;
    transition: background-color 0.3s ease;
}

@media (min-width: 640px) {
    .repo-content {
        padding: 1rem;
        min-width: 220px;
    }
}

.repo-link:hover .repo-content {
    background-color: rgba(255, 255, 255, 0.05);
}

.repo-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(209, 213, 219, 0.8);
    transition: all 0.2s ease;
}

.repo-link:hover .repo-info {
    color: rgb(147, 197, 253);
}

.repo-icon {
    padding: 0.25rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease;
}

.repo-link:hover .repo-icon {
    border: 1px solid rgba(147, 197, 253, 0.3);
}

.repo-icon svg {
    width: 0.75rem;
    height: 0.75rem;
}

@media (min-width: 640px) {
    .repo-icon svg {
        width: 1rem;
        height: 1rem;
    }
}

.repo-text {
    font-size: 0.75rem;
    font-weight: 500;
}

@media (min-width: 640px) {
    .repo-text {
        font-size: 0.875rem;
    }
}

.external-icon {
    width: 0.625rem;
    height: 0.625rem;
    opacity: 0.6;
    transition: all 0.2s ease;
}

@media (min-width: 640px) {
    .external-icon {
        width: 0.75rem;
        height: 0.75rem;
    }
}

.repo-link:hover .external-icon {
    opacity: 1;
    transform: translate(0.125rem, -0.125rem);
}

/* Border Beam Animation */
.border-beam {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    overflow: hidden;
    pointer-events: none;
}

.border-beam::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.7), transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    animation: border-beam 8s linear infinite;
}

.border-beam::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(90deg, transparent, rgba(209, 213, 219, 0.7), transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    animation: border-beam 8s linear infinite;
    animation-delay: 3s;
}

@keyframes border-beam {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Alternative border beam implementation for better browser support */
@supports not (mask-composite: xor) {
    .border-beam::before,
    .border-beam::after {
        background: transparent;
        border: 2px solid transparent;
        background-clip: padding-box;
        border-image: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.7), transparent) 1;
    }
    
    .border-beam::after {
        border-image: linear-gradient(90deg, transparent, rgba(209, 213, 219, 0.7), transparent) 1;
    }
}