/* TNT Brackets - Classification System V2.2 (Signature Style) */

.tnt-bracket-system {
    background: #0c0c0c;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-top: 3px solid var(--tnt-gold); /* Top accent */
    border-radius: 4px;
    padding: 2rem;
    padding-bottom: 2.5rem;
    margin: 3rem 0;
    font-family: 'Merriweather', serif;
    position: relative;
    box-shadow: 0 15px 50px -10px rgba(0,0,0,0.8);
    overflow: hidden;
}

/* Background Pattern Removed */
.tnt-bracket-system::before {
    display: none;
}

/* Header */
.tnt-bracket-header {
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.bracket-heading {
    margin: 0;
    font-family: 'Beleren', 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--tnt-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.icon-gold {
    color: var(--tnt-gold);
    width: 1.2rem;
    height: 1.2rem;
}

/* --- THE UI --- */
.tnt-bracket-ui {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-bottom: 2rem;
    padding: 0 1rem;
    z-index: 2;
}

/* The horizontal connecting line */
.bracket-line {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

/* Individual Nodes */
.bracket-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 18%;
    cursor: default;
    opacity: 0.5;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateY(0);
}

.node-marker {
    width: 3rem;
    height: 3rem;
    background: #111;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.8);
    transition: all 0.3s;
}

.node-num {
    font-family: 'Beleren', sans-serif;
    font-size: 1.2rem;
    color: #6b7280;
    font-weight: bold;
}

.node-label {
    font-family: 'Beleren', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    text-align: center;
    transition: color 0.3s;
}

/* --- ACTIVE STATE --- */
.bracket-node.active {
    opacity: 1;
    transform: scale(1.1);
}

.bracket-node.active .node-marker {
    border-color: var(--tnt-gold);
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    box-shadow: 0 0 25px rgba(197, 160, 89, 0.4);
}

.bracket-node.active .node-num {
    color: #fff;
    text-shadow: 0 0 10px var(--tnt-gold);
    font-size: 1.5rem;
}

.bracket-node.active .node-label {
    color: var(--tnt-gold);
    font-weight: bold;
}

.active-indicator {
    position: absolute;
    bottom: -15px;
    width: 0; 
    height: 0; 
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--tnt-gold);
    animation: bounceIndicator 2s infinite;
}

@keyframes bounceIndicator {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

/* --- ANIMATION --- */
.tnt-bracket-system.animate .bracket-node {
    animation: fadeInNode 0.5s backwards;
}
.tnt-bracket-system.animate .bracket-node:nth-child(1) { animation-delay: 0.1s; }
.tnt-bracket-system.animate .bracket-node:nth-child(2) { animation-delay: 0.2s; }
.tnt-bracket-system.animate .bracket-node:nth-child(3) { animation-delay: 0.3s; }
.tnt-bracket-system.animate .bracket-node:nth-child(4) { animation-delay: 0.4s; }
.tnt-bracket-system.animate .bracket-node:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInNode {
    from { opacity: 0; transform: translateY(10px) scale(0.9); }
    to { opacity: 0.5; transform: translateY(0) scale(1); }
}
.tnt-bracket-system.animate .bracket-node.active {
    animation: popInActive 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.6s;
    opacity: 0;
}
@keyframes popInActive {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1.1); }
}

/* --- DETAILS BOX --- */
.tnt-bracket-details {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.details-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    padding-bottom: 1rem;
}

.level-indicator {
    display: block;
    color: var(--tnt-gold);
    font-family: 'Beleren', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.level-desc {
    color: #e5e7eb;
    font-family: 'Merriweather', serif;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Feature List Grid */
.bracket-feature-list {
    list-style: none !important; /* Force remove default bullets */
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Override Theme's Default "Diamond" Bullet */
.tnt-bracket-system .bracket-feature-list li::before {
    content: none !important;
    display: none !important;
}

/* 2-column layout on tablet+ */
@media (min-width: 768px) {
    .bracket-feature-list {
        grid-template-columns: 1fr 1fr;
    }
}

.bracket-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #d1d5db;
    line-height: 1.4;
    margin: 0 !important; /* Reset theme margins */
    padding: 0 !important;
    background: rgba(255,255,255,0.02);
    padding: 0.5rem 0.75rem !important;
    border-radius: 2px;
}

/* Icon Styles */
.feature-icon {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.icon-cross { color: #ef4444; } /* Red */
.icon-check { color: #22c55e; } /* Green */
.icon-text { 
    color: #22c55e; 
    font-family: 'Beleren', sans-serif;
    font-weight: 900;
    text-align: center;
    line-height: 1;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 600px) {
    .tnt-bracket-ui {
        flex-direction: column;
        gap: 0;
        padding-left: 2rem;
        margin-bottom: 1.5rem;
    }
    .bracket-line {
        width: 2px;
        height: auto;
        top: 0; bottom: 0; left: 3.5rem; right: auto;
    }
    .bracket-node {
        width: 100%;
        flex-direction: row;
        margin-bottom: 1rem;
        opacity: 0.3;
    }
    .bracket-node.active {
        opacity: 1;
        transform: scale(1.05) translateX(5px);
    }
    .node-label { font-size: 0.9rem; }
    .active-indicator { display: none; }
}