/**
 * TurisOne Ecosystem - Standalone Header Styles
 * Este arquivo contém apenas o necessário para o Header funcionar em qualquer ferramenta.
 */

html {
    overflow-y: scroll !important;
}

:root {
    --ts-header-purple: #9900CC;
    --ts-header-pink: #FF0066;
    --ts-header-orange: #FF9966;
    --ts-header-yellow: #FFCC00;
}

.ts-header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: rgba(34, 34, 34, .95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    padding: 0.75rem 0;
}

.ts-header-container {
    width: calc(100% - 2rem);
    max-width: 80rem; /* 1280px */
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 768px) {
    .ts-header-container {
        padding: 0 2.5rem;
    }
}

.ts-header-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.ts-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ts-btn-header {
    background: linear-gradient(90deg, var(--ts-header-purple), var(--ts-header-pink));
    color: #fff !important;
    font-family: 'Jost', sans-serif;
    font-weight: 900;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.ts-btn-header:hover {
    background: linear-gradient(90deg, var(--ts-header-pink), var(--ts-header-orange), var(--ts-header-yellow));
    color: #222 !important;
    transform: translateY(-2px);
}

.ts-header-auth-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.ts-btn-launcher {
    background: transparent;
    border: none;
    color: #eee;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ts-btn-launcher:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.ts-profile-avatar-wrapper {
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease;
}

.ts-profile-avatar-wrapper:hover {
    transform: scale(1.05);
}

.ts-profile-gradient-border {
    padding: 2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ts-header-purple), var(--ts-header-pink), var(--ts-header-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.ts-profile-avatar-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ts-profile-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
    width: max-content;
    min-width: 240px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.ts-profile-tooltip.ts-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ts-tooltip-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #ccc;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 10;
}

.ts-tooltip-close:hover {
    background: rgba(0,0,0,0.05);
    color: var(--ts-pink);
}

.ts-tooltip-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    text-align: center;
}

.ts-tooltip-footer {
    background: #f8f9fa;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ts-tooltip-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #444 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.ts-tooltip-btn:hover {
    background: rgba(0,0,0,0.05);
    color: var(--ts-purple) !important;
}

.ts-btn-logout:hover {
    background: #fff0f3;
    color: var(--ts-pink) !important;
}

.ts-profile-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    transform: rotate(45deg);
    z-index: 1;
}

.ts-tooltip-line-1 {
    font-size: 10px;
    font-weight: 900;
    color: var(--ts-purple);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 6px;
}

.ts-tooltip-line-2 {
    font-size: 16px;
    font-weight: 800;
    color: #111;
    margin-bottom: 2px;
    line-height: 1.2;
}

.ts-tooltip-line-3 {
    font-size: 12px;
    font-weight: 500;
    color: #777;
}

.ts-profile-avatar-placeholder {
    width: 32px;
    height: 32px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ts-btn-logout-icon {
    color: #999;
    font-size: 1rem;
    text-decoration: none;
    padding: 5px;
    transition: color 0.2s;
}

.ts-btn-logout-icon:hover {
    color: #ff4d4d;
}

@keyframes ts-gradient-slide {
    0% { background-position: 0 50% }
    100% { background-position: 200% 50% }
}

.ts-animated-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--ts-header-purple), var(--ts-header-pink), var(--ts-header-orange), var(--ts-header-yellow), var(--ts-header-purple));
    background-size: 200% 100%;
    animation: ts-gradient-slide 3s linear infinite;
}
