/* ========================================
   CSS COMPLETO CORRIGIDO - TOOLTIPS
   Versão: 2.0 - Problema de corte resolvido
   ======================================== */

/* CONTAINERS PRINCIPAIS - CRÍTICO PARA TOOLTIPS */
.achievements-container,
.albums-container {
    padding: 20px 0;
    overflow: visible !important; /* CRÍTICO: permite tooltips saírem dos limites */
}

.row.g-3 {
    overflow: visible !important; /* CRÍTICO */
}

.row.g-3 > [class*="col-"] {
    overflow: visible !important; /* CRÍTICO */
    display: flex;
}

/* ========================================
   ACHIEVEMENT CARDS & TOOLTIPS
   ======================================== */

.achievement-card {
    text-align: center;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);

    /* PADRONIZAÇÃO - altura e largura fixas - MAIS COMPACTO */
    height: 120px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    /* CRÍTICO: permite tooltip sair dos limites */
    overflow: visible !important;
    position: relative;
    cursor: pointer;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.achievement-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #ffd700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    flex-shrink: 0;
}

.achievement-name {
    font-size: 0.7rem;
    font-weight: bold;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 5px 0 3px 0;

    /* Limita a 1 linha para economizar espaço */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
    height: 1.1em;
    flex-shrink: 0;
}

.achievement-description {
    font-size: 0.6rem;
    color: #cccccc;
    margin: 0;

    /* Limita a 1 linha para economizar espaço */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    height: 1.2em;
    flex-shrink: 0;
}

/* TOOLTIP PARA ACHIEVEMENTS - CORRIGIDO */
.achievement-tooltip {
    visibility: hidden;
    opacity: 0;
    width: 280px;
    max-width: 90vw; /* CRÍTICO: evita corte na tela */
    background: rgba(0, 0, 0, 0.95);
    color: white;
    text-align: left;
    border-radius: 12px;
    padding: 20px;
    font-size: 0.85rem;

    /* POSICIONAMENTO CRÍTICO - CORRIGIDO */
    position: absolute;
    z-index: 9999 !important; /* Z-index muito alto */
    bottom: calc(100% + 10px); /* Sempre acima do card */
    left: 50%;
    transform: translateX(-50%);

    /* Animação suave */
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.3);
    
    /* Evita corte */
    white-space: normal;
    word-wrap: break-word;
}

/* CORREÇÃO: Tooltip para primeira coluna (canto esquerdo) */
.col-6:first-child .achievement-tooltip,
.col-md-3:first-child .achievement-tooltip,
.col-lg-2:first-child .achievement-tooltip,
.col-xl-2:first-child .achievement-tooltip {
    left: 0;
    transform: translateX(0);
}

/* CORREÇÃO: Tooltip para última coluna (canto direito) */
.col-6:last-child .achievement-tooltip,
.col-md-3:last-child .achievement-tooltip,
.col-lg-2:last-child .achievement-tooltip,
.col-xl-2:last-child .achievement-tooltip {
    left: auto;
    right: 0;
    transform: translateX(0);
}

/* Mostra o tooltip ao passar o mouse */
.achievement-card:hover .achievement-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Seta do tooltip */
.achievement-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.95) transparent transparent transparent;
}

/* Ajusta seta para primeira coluna */
.col-6:first-child .achievement-tooltip::after,
.col-md-3:first-child .achievement-tooltip::after,
.col-lg-2:first-child .achievement-tooltip::after,
.col-xl-2:first-child .achievement-tooltip::after {
    left: 70px;
}

/* Ajusta seta para última coluna */
.col-6:last-child .achievement-tooltip::after,
.col-md-3:last-child .achievement-tooltip::after,
.col-lg-2:last-child .achievement-tooltip::after,
.col-xl-2:last-child .achievement-tooltip::after {
    left: auto;
    right: 70px;
    margin-left: 0;
    margin-right: -10px;
}

/* Header do tooltip (título) */
.tooltip-header {
    color: #ffd700;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 8px;
}

/* Informações em linha */
.tooltip-info {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tooltip-label {
    color: #aaa;
    font-size: 0.8rem;
}

.tooltip-value {
    color: #4CAF50;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Barra de progresso no tooltip */
.tooltip-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin-top: 12px;
    overflow: hidden;
}

.tooltip-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* ========================================
   ALBUM CARDS & TOOLTIPS
   ======================================== */

/* Card do álbum */
.album-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible !important; /* CRÍTICO */
}

.album-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Capa do álbum */
.album-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.album-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Overlay com botão de play */
.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.album-card:hover .album-overlay {
    opacity: 1;
}

.album-card:hover .album-image {
    transform: scale(1.1);
}

.album-view-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    transition: all 0.3s ease;
}

.album-view-btn:hover {
    background: white;
    transform: scale(1.1);
}

/* Informações do álbum */
.album-info {
    text-align: center;
}

.album-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.album-details {
    font-size: 11px;
    color: #aaa;
    font-weight: 400;
}

/* TOOLTIP DO ÁLBUM - CORRIGIDO */
.album-tooltip {
    visibility: hidden;
    opacity: 0;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    min-width: 200px;
    max-width: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    /* POSICIONAMENTO CRÍTICO - CORRIGIDO */
    position: absolute;
    z-index: 9999 !important;
    bottom: calc(100% + 10px); /* Sempre acima do card */
    left: 50%;
    transform: translateX(-50%);
    
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
    
    /* Evita corte */
    max-width: 90vw;
    white-space: normal;
    word-wrap: break-word;
}

/* Correções para colunas do álbum */
.col-6:first-child .album-tooltip,
.col-md-4:first-child .album-tooltip,
.col-lg-3:first-child .album-tooltip,
.col-xl-3:first-child .album-tooltip {
    left: 0;
    transform: translateX(0);
}

.col-6:last-child .album-tooltip,
.col-md-4:last-child .album-tooltip,
.col-lg-3:last-child .album-tooltip,
.col-xl-3:last-child .album-tooltip {
    left: auto;
    right: 0;
    transform: translateX(0);
}

.album-card:hover .album-tooltip {
    visibility: visible;
    opacity: 1;
}

.album-tooltip p {
    font-size: 11px;
    color: #ccc;
    margin: 8px 0 0 0;
    line-height: 1.4;
}

/* ========================================
   MODAL SYSTEM
   ======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Modal Container */
.modal-container {
    background: linear-gradient(135deg, #2e1a1a 0%, #3e1616 100%);
    border: 2px solid #600f0f;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.modal-overlay.hidden .modal-container {
    transform: scale(0.8);
}

/* Modal Header */
.modal-header {
    background: linear-gradient(90deg, #600f0f, #834853);
    padding: 20px 30px;
    border-bottom: 2px solid #600f0f;
    border-radius: 13px 13px 0 0;
    position: relative;
}

.modal-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Rajdhani', sans-serif;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    line-height: 1;
    padding: 5px;
}

.modal-close:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

/* Modal Body */
.modal-body {
    padding: 30px;
    color: #e0e0e0;
    line-height: 1.6;
    position: relative;
}

.modal-body h3 {
    color: #f74c4c;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.modal-body p {
    margin-bottom: 15px;
    font-size: 16px;
}

/* Album Progress Bar */
.album-progress {
    margin-bottom: 30px;
}

.album-progress h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.progress-bar-container {
    position: relative;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 25px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #600f0f;
}

.progress-fill {
    background: linear-gradient(90deg, #f74c4c, #e53e3e);
    height: 100%;
    border-radius: 15px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(247, 76, 76, 0.4);
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 14px;
    color: #e0e0e0;
}

.progress-numbers {
    font-weight: 600;
    color: #f74c4c;
}

.progress-percentage {
    font-weight: 600;
    color: #4CAF50;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card-item {
    position: relative;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.card-item:hover {
    transform: translateY(-5px);
}

.card-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 5/7;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

/* Card Rarity Tags */
.card-rarity {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Rajdhani', sans-serif;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rarity-comum {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: #ffffff;
}

.rarity-incomum {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
}

.rarity-raro {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #ffffff;
    animation: rareGlow 2s ease-in-out infinite alternate;
}

@keyframes rareGlow {
    0% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 15px rgba(168, 85, 247, 0.3);
    }
    100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 25px rgba(168, 85, 247, 0.6);
    }
}

.card-image img {
    width: 100%;
    height: 100%;
    display: block;
}

.card-name {
    text-align: center;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #e0e0e0;
    font-family: 'Rajdhani', sans-serif;
}

/* Owned Cards */
.card-item.owned .card-image {
    border-color: #4CAF50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
}

/* Not Owned Cards */
.card-item.not-owned .card-image {
    border-color: #f74c4c;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Card Status Icons */
.card-status {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.owned-status {
    background: #4CAF50;
    color: white;
}

.not-owned-status {
    background: #f74c4c;
    color: white;
}

.card-status i {
    font-style: normal;
}

/* Card Preview Overlay */
.card-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.card-preview-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Card Preview System */
.card-preview {
    width: 320px;
    height: 448px;
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid #f74c4c;
    border-radius: 15px;
    position: relative;
    transform: scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.card-preview-overlay.show .card-preview {
    transform: scale(1);
}

.card-preview-image {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* Rarity tag for preview */
.card-preview-rarity {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Rajdhani', sans-serif;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.card-preview-rarity.rarity-comum {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: #ffffff;
}

.card-preview-rarity.rarity-incomum {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
}

.card-preview-rarity.rarity-raro {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #ffffff;
    animation: rareGlow 2s ease-in-out infinite alternate;
}

.card-preview-image img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2e1a1a, #3e1616);
}

.card-preview-name {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #f74c4c, #e53e3e);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(247, 76, 76, 0.4);
    white-space: nowrap;
}

.card-preview-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.card-preview.not-owned-preview .card-preview-card-overlay {
    display: block;
}

.card-preview.owned-preview .card-preview-card-overlay {
    display: none;
}

.card-preview.owned-preview {
    border-color: #4CAF50;
}

.card-preview.owned-preview .card-preview-name {
    background: linear-gradient(90deg, #4CAF50, #45a049);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

/* Close Button for Card Preview */
.card-preview-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #f74c4c;
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 1001;
}

.card-preview-close:hover {
    background: #e53e3e;
    transform: scale(1.1);
}

.card-preview.owned-preview .card-preview-close {
    background: #4CAF50;
}

.card-preview.owned-preview .card-preview-close:hover {
    background: #45a049;
}

/* Modal Actions */
.modal-actions {
    padding: 20px 30px;
    border-top: 1px solid #600f0f;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-modal {
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(45deg, #f74c4c, #e53e3e);
    color: white;
    box-shadow: 0 4px 15px rgba(247, 76, 76, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #e53e3e, #c53030);
    box-shadow: 0 6px 20px rgba(247, 76, 76, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #e0e0e0;
    border: 2px solid #600f0f;
}

.btn-secondary:hover {
    background: #600f0f;
    color: white;
    transform: translateY(-2px);
}

/* Scrollbar customization */
.modal-container::-webkit-scrollbar {
    width: 8px;
}

.modal-container::-webkit-scrollbar-track {
    background: #2e1a1a;
}

.modal-container::-webkit-scrollbar-thumb {
    background: #600f0f;
    border-radius: 4px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
    background: #834853;
}

/* ========================================
   RESPONSIVIDADE MELHORADA
   ======================================== */

/* Tablets */
@media (max-width: 768px) {
    .achievement-card {
        height: 100px;
        padding: 6px;
    }

    .achievement-image {
        width: 35px;
        height: 35px;
    }

    .achievement-name {
        font-size: 0.65rem;
        height: 1em;
    }

    .achievement-description {
        font-size: 0.55rem;
        height: 1.1em;
    }

    /* Responsividade dos tooltips */
    .achievement-tooltip,
    .album-tooltip {
        width: 250px;
        max-width: 95vw;
        font-size: 0.8rem;
        padding: 15px;
    }

    /* Em tablets, centraliza tooltips se necessário */
    .achievement-tooltip,
    .album-tooltip {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }

    /* Albums responsivos */
    .album-card {
        padding: 10px;
    }
    
    .album-name {
        font-size: 13px;
    }
    
    .album-details {
        font-size: 10px;
    }
    
    .album-view-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    /* Modal responsivo */
    .modal-container {
        width: 98%;
        max-height: 95vh;
    }

    .modal-header,
    .modal-body,
    .modal-actions {
        padding: 15px;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .btn-modal {
        width: 100%;
        padding: 12px;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }

    .card-status {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    .card-name {
        font-size: 11px;
    }

    .card-preview {
        width: 280px;
        height: 392px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .achievement-card {
        height: 85px;
        padding: 5px;
    }

    .achievement-image {
        width: 30px;
        height: 30px;
    }

    .achievement-name {
        font-size: 0.6rem;
        height: 0.9em;
        margin: 3px 0 2px 0;
    }

    .achievement-description {
        font-size: 0.5rem;
        height: 1em;
    }

    /* Tooltip responsivo para mobile */
    .achievement-tooltip,
    .album-tooltip {
        width: 220px;
        max-width: 90vw;
        font-size: 0.75rem;
        padding: 12px;
    }

    .tooltip-header {
        font-size: 0.9rem;
    }

    .tooltip-info {
        margin: 6px 0;
    }

    .tooltip-label,
    .tooltip-value {
        font-size: 0.7rem;
    }

    /* Albums mobile */
    .albums-container .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .album-tooltip {
        min-width: 160px;
    }
}

/* Mobile muito pequeno - fallback com position fixed */
@media (max-width: 480px) {
    /* FALLBACK: Se tooltip ainda estiver cortado, usa position fixed */
    .achievement-tooltip,
    .album-tooltip {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        bottom: auto !important;
        right: auto !important;
        max-width: 90vw;
        max-height: 80vh;
        overflow-y: auto;
        width: 200px;
    }
    
    /* Remove seta em modo fixed */
    .achievement-tooltip::after,
    .album-tooltip::after {
        display: none;
    }

    /* Overlay para fechar tooltip em mobile */
    .achievement-card:hover::before,
    .album-card:hover::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.3);
        z-index: 9998;
        pointer-events: none;
    }
}

/* Garante que todas as colunas tenham a mesma altura */
.row.g-3 > [class*="col-"] {
    display: flex;
}

.row.g-3 > [class*="col-"] > .achievement-card,
.row.g-3 > [class*="col-"] > .album-card {
    width: 100%;
}

/* ========================================
   CORREÇÕES ADICIONAIS PARA CONTAINERS
   ======================================== */

/* Garante que containers pais não cortem tooltips */
.team-carousel__item {
    overflow: visible !important;
}

.container,
.container-fluid {
    overflow: visible !important;
}

/* Se você usar Bootstrap ou similar */
.row {
    overflow: visible !important;
}

/* Qualquer div que possa estar cortando */
div[class*="carousel"],
div[class*="slider"],
div[class*="container"] {
    overflow: visible !important;
}

/* ========================================
   ANIMAÇÕES E EFEITOS EXTRAS
   ======================================== */

/* Animação suave para tooltips */
@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.achievement-card:hover .achievement-tooltip,
.album-card:hover .album-tooltip {
    animation: tooltipFadeIn 0.3s ease-out;
}

/* Efeito hover melhorado */
.achievement-card:hover,
.album-card:hover {
    z-index: 100; /* Eleva o card durante hover */
}

/* ========================================
   PRINT STYLES (opcional)
   ======================================== */

@media print {
    .achievement-tooltip,
    .album-tooltip,
    .modal-overlay {
        display: none !important;
    }
}

/* ========================================
   DARK MODE SUPPORT (opcional)
   ======================================== */

@media (prefers-color-scheme: dark) {
    .achievement-tooltip,
    .album-tooltip {
        background: rgba(0, 0, 0, 0.98);
        border-color: rgba(255, 255, 255, 0.2);
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Para usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
    .achievement-card,
    .album-card,
    .achievement-tooltip,
    .album-tooltip {
        transition: none;
    }
}

/* Melhor contraste para tooltips */
.achievement-tooltip,
.album-tooltip {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

/* Focus states para acessibilidade */
.achievement-card:focus,
.album-card:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

.achievement-card:focus .achievement-tooltip,
.album-card:focus .album-tooltip {
    visibility: visible;
    opacity: 1;
}

