/* ==========================================================================
   LowOPS / CF TATIN - Custom Stylesheet
   Melhorias Visuais para Profile, Views de Clã e Distintivos (Badges)
   ========================================================================== */

/* Brasão e Emblemas do Clã */
.clan-emblem-frame {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.clan-emblem-frame:hover {
    transform: scale(1.05);
}

.clan-image {
    display: inline-block;
    position: relative;
    vertical-align: middle;
}
.clan-image .clan-image-bg,
.clan-image .clan-image-border,
.clan-image .clan-image-logo {
    position: relative;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

/* Hero Banner do Clã */
.clan-hero-banner {
    border: 1px solid rgba(255, 184, 0, 0.25);
    background-color: #0e1014;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(0, 0, 0, 0.7);
}

/* Tabs do Clã e Badges */
.nk-tabs .nav-tabs {
    border-bottom: 2px solid rgba(255, 184, 0, 0.25);
}
.nk-tabs .nav-tabs .nav-link {
    color: #9aa0a6;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nk-tabs .nav-tabs .nav-link:hover {
    color: #fff;
    border-bottom-color: rgba(255, 184, 0, 0.5);
}
.nk-tabs .nav-tabs .nav-link.active {
    color: #ffb800 !important;
    border-bottom-color: #ffb800 !important;
    background: rgba(255, 184, 0, 0.05);
}

/* Tabelas Militares */
.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.035) !important;
}

/* Badges Militares */
.cf-rank-badge {
    transition: transform 0.2s ease;
}
.cf-rank-badge:hover {
    transform: scale(1.15);
}

/* Barra de Grau RPG */
.emblem-grade-bar {
    width: 100%;
    background: #14171d;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.emblem-grade-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* ==========================================================================
   SISTEMA DE DISTINTIVOS (BADGES) - ESTILOS VISUAIS TÁTICOS
   ========================================================================== */

/* Cards de Distintivos com Hover */
.badge-card-hover {
    transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), 
                border-color 0.25s ease;
    will-change: transform, box-shadow;
}
.badge-card-hover:hover {
    transform: translateY(-4px);
}

/* Efeito Glow para Tiers Metálicos */
.badge-tier-bronze {
    border-color: rgba(205, 127, 50, 0.35) !important;
}
.badge-tier-bronze:hover {
    border-color: rgba(205, 127, 50, 0.8) !important;
    box-shadow: 0 8px 25px rgba(205, 127, 50, 0.25) !important;
}

.badge-tier-silver {
    border-color: rgba(192, 192, 210, 0.35) !important;
}
.badge-tier-silver:hover {
    border-color: rgba(192, 192, 210, 0.85) !important;
    box-shadow: 0 8px 25px rgba(192, 192, 210, 0.25) !important;
}

.badge-tier-gold {
    border-color: rgba(255, 215, 0, 0.45) !important;
}
.badge-tier-gold:hover {
    border-color: rgba(255, 215, 0, 0.9) !important;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3) !important;
}

/* Animação de Pulso do Distintivo Ativo */
@keyframes badgeActivePulse {
    0% {
        box-shadow: 0 0 15px rgba(255, 184, 0, 0.3), inset 0 0 15px rgba(255, 184, 0, 0.08);
    }
    50% {
        box-shadow: 0 0 28px rgba(255, 184, 0, 0.6), inset 0 0 25px rgba(255, 184, 0, 0.18);
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 184, 0, 0.3), inset 0 0 15px rgba(255, 184, 0, 0.08);
    }
}
.badge-active-showcase {
    animation: badgeActivePulse 3s infinite ease-in-out;
}

/* Zoom suave nas imagens da matriz */
.matrix-badge-img {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.matrix-badge-img:hover {
    transform: scale(1.4);
    z-index: 10;
    position: relative;
    filter: drop-shadow(0 0 10px rgba(255, 184, 0, 0.8));
}

/* Pílulas de Navegação de Classe */
.cat-pill-btn {
    transition: all 0.2s ease;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.cat-pill-btn:hover {
    transform: translateY(-1px);
}


/* ==========================================================================
   CUSTOM ENHANCEMENTS & TACTICAL HUD POLISH
   ========================================================================== */

/* Custom Tactical Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #090a0d;
}
::-webkit-scrollbar-thumb {
    background: #232730;
    border-radius: 4px;
    border: 1px solid rgba(255, 184, 0, 0.2);
}
::-webkit-scrollbar-thumb:hover {
    background: #ff9800;
}

/* Form Controls Tactical Focus */
.form-control:focus, 
input[type="text"]:focus, 
input[type="password"]:focus, 
input[type="email"]:focus, 
textarea:focus, 
select:focus {
    border-color: #ff9800 !important;
    box-shadow: 0 0 12px rgba(255, 152, 0, 0.35) !important;
    outline: none !important;
}

/* Rank Insignia Zoom on Hover */
.rank-hover-zoom {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}
.rank-hover-zoom:hover {
    transform: scale(1.3);
    z-index: 10;
    position: relative;
    box-shadow: 0 0 12px rgba(255, 184, 0, 0.8) !important;
}

/* Weapon Cards Hover Glow */
.bg-dark-1 {
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.bg-dark-1:hover {
    border-color: rgba(255, 184, 0, 0.4) !important;
}

/* Tactical Corner Accents */
.tactical-box {
    position: relative;
}
.tactical-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-top: 2px solid #ff9800;
    border-left: 2px solid #ff9800;
    pointer-events: none;
}
.tactical-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid #ff9800;
    border-right: 2px solid #ff9800;
    pointer-events: none;
}

/* Mobile Responsive Utility */
@media (max-width: 768px) {
    .nk-header-text h1 {
        font-size: 24px !important;
    }
    .table-responsive {
        border: 0;
    }
    .col-lg-3, .col-lg-4, .col-lg-6 {
        margin-bottom: 15px;
    }
}
