/* =====================================================
   CONTENT TAGS - Tags Inline Estilo Discord Avançado
   ===================================================== */

/* === TAG DE SOM (LARANJA) === */
.content-sound-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    border-radius: 12px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    vertical-align: middle;
    box-shadow: 0 1px 4px rgba(255, 107, 53, 0.3);
    transition: all 0.2s;
    line-height: 1.2;
}

.content-sound-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.5);
}

.sound-tag-play-btn {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 10px;
    flex-shrink: 0;
    padding: 0;
}

.sound-tag-play-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.sound-tag-play-btn.playing {
    background: rgba(255, 255, 255, 0.4);
}

.sound-tag-name {
    font-weight: 600;
    flex: 1;
    font-size: 13px;
}

.sound-tag-variant {
    color: #90EE90;
    font-weight: bold;
    margin-left: 2px;
    font-size: 12px;
}

.sound-tag-link-btn {
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 9px;
    flex-shrink: 0;
    text-decoration: none;
    padding: 0;
}

.sound-tag-link-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* === TAG DE MAPA (AZUL) === */
.content-map-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #4A90E2 0%, #5BA3F5 100%);
    border-radius: 12px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    vertical-align: middle;
    box-shadow: 0 1px 4px rgba(74, 144, 226, 0.3);
    transition: all 0.2s;
    line-height: 1.2;
}

.content-map-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.5);
}

.map-tag-thumb {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.map-tag-name {
    font-weight: 600;
    flex: 1;
    font-size: 13px;
}

.map-tag-link-btn {
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 9px;
    flex-shrink: 0;
    text-decoration: none;
    padding: 0;
}

.map-tag-link-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* === TAG DE PLAYER (ROXO) === */
.content-user-mention {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #7289DA 0%, #8A9FE5 100%);
    border-radius: 12px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    vertical-align: middle;
    box-shadow: 0 1px 4px rgba(114, 137, 218, 0.3);
    transition: all 0.2s;
    line-height: 1.2;
}

.content-user-mention:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(114, 137, 218, 0.5);
}

.content-user-mention i {
    font-size: 10px;
}

.content-user-mention-invalid {
    color: #999;
    font-style: italic;
}

/* === SPOILER === */
.content-spoiler {
    display: inline-block;
    background: #333;
    color: transparent;
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s;
}

.content-spoiler:hover {
    background: #444;
}

.content-spoiler.revealed {
    background: transparent;
    color: inherit;
    cursor: default;
}

.content-spoiler .spoiler-content {
    visibility: hidden;
}

.content-spoiler.revealed .spoiler-content {
    visibility: visible;
}

/* === BLOCO DE CÓDIGO === */
.content-code-block {
    background: #1a1a1a;
    border: 1px solid #333;
    border-left: 3px solid #ff5000;
    border-radius: 6px;
    padding: 12px;
    margin: 10px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
}

.content-code-block code {
    color: #00ff88;
}

/* =====================================================
   AUTOCOMPLETE DROPDOWN
   ===================================================== */

.content-autocomplete-dropdown {
    position: absolute;
    background: linear-gradient(135deg, #1a1a1a 0%, #151515 100%);
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.95), 0 0 0 1px rgba(255,80,0,0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 10000;
    backdrop-filter: blur(10px);
    animation: dropdownFadeIn 0.2s ease-out;
    min-width: 300px;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: linear-gradient(90deg, rgba(255,80,0,0.15) 0%, rgba(255,80,0,0.05) 100%);
    border-left: 3px solid #ff5000;
    padding-left: 13px;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.autocomplete-item:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* === ITEM DE PLAYER === */
.autocomplete-player-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.autocomplete-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #333;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.autocomplete-item:hover .autocomplete-avatar,
.autocomplete-item.selected .autocomplete-avatar {
    border-color: #ff5000;
}

.autocomplete-player-info {
    flex: 1;
    overflow: hidden;
}

.autocomplete-player-name {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.autocomplete-player-username {
    color: #888;
    font-size: 12px;
    margin-top: 2px;
}

.admin-badge, .vip-badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.admin-badge {
    background: linear-gradient(135deg, #ff5000 0%, #ff6520 100%);
    color: white;
}

.vip-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
}

/* === ITEM DE SOM COM VARIANTES === */
.autocomplete-sound-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.autocomplete-sound-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

.autocomplete-sound-info {
    flex: 1;
    overflow: hidden;
}

.autocomplete-sound-name {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.autocomplete-sound-variants {
    color: #888;
    font-size: 11px;
    margin-top: 2px;
}

.autocomplete-sound-aliases {
    color: #666;
    font-size: 10px;
    margin-top: 2px;
    font-style: italic;
}

.autocomplete-play-btn {
    width: 36px;
    height: 36px;
    background: rgba(255,107,53,0.1);
    border: 1px solid rgba(255,107,53,0.3);
    border-radius: 8px;
    color: #ff6b35;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 14px;
}

.autocomplete-play-btn:hover {
    background: #ff6b35;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255,107,53,0.5);
}

/* === ITEM DE MAPA === */
.autocomplete-map-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.autocomplete-map-thumb {
    width: 60px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    transition: all 0.2s;
}

.autocomplete-item:hover .autocomplete-map-thumb,
.autocomplete-item.selected .autocomplete-map-thumb {
    border-color: #4A90E2;
    box-shadow: 0 0 10px rgba(74,144,226,0.3);
}

.autocomplete-map-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.autocomplete-map-thumb i {
    font-size: 20px;
    color: #666;
}

.autocomplete-map-info {
    flex: 1;
    overflow: hidden;
}

.autocomplete-map-name {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-map-stats {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

.autocomplete-map-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.autocomplete-map-stats i {
    color: #4A90E2;
}

/* === MENU DE AJUDA === */
.content-help-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: rgba(255, 80, 0, 0.1);
    border: 1px solid rgba(255, 80, 0, 0.3);
    border-radius: 50%;
    color: #ff5000;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.content-help-button:hover {
    background: rgba(255, 80, 0, 0.2);
    border-color: #ff5000;
    transform: scale(1.1);
}

.content-help-tooltip {
    position: absolute;
    top: 40px;
    right: 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    width: 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
    z-index: 10001;
    display: none;
}

.content-help-tooltip.show {
    display: block;
}

.content-help-tooltip h4 {
    color: #ff5000;
    font-size: 14px;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-help-tooltip ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-help-tooltip li {
    padding: 5px 0;
    font-size: 12px;
    color: #ccc;
    border-bottom: 1px solid #222;
}

.content-help-tooltip li:last-child {
    border-bottom: none;
}

.content-help-tooltip code {
    background: #252525;
    padding: 2px 6px;
    border-radius: 3px;
    color: #00ff88;
    font-family: 'Courier New', monospace;
    font-size: 11px;
}

/* === SCROLLBAR CUSTOMIZADA === */
.content-autocomplete-dropdown::-webkit-scrollbar {
    width: 8px;
}

.content-autocomplete-dropdown::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
    border-radius: 0 12px 12px 0;
}

.content-autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255,80,0,0.3);
    border-radius: 4px;
}

.content-autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255,80,0,0.5);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .content-help-tooltip {
        width: calc(100vw - 40px);
        right: 10px;
    }
    
    .content-autocomplete-dropdown {
        max-height: 250px;
        width: calc(100vw - 40px) !important;
        left: 20px !important;
    }
    
    .autocomplete-avatar {
        width: 35px;
        height: 35px;
    }
    
    .autocomplete-map-thumb {
        width: 50px;
        height: 33px;
    }
}