/* Diablo 2 Character Tracker Styles */

.d2-container {
    background: linear-gradient(135deg, #2c1810 0%, #1a0f08 50%, #0d0704 100%);
    border: 2px solid #8b6914;
    border-radius: 10px;
    padding: 2rem;
    color: #d4af37;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 0 20px rgba(139, 105, 20, 0.3);
}

.d2-header {
    border-bottom: 2px solid #8b6914;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.d2-title {
    color: #ffd700;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: bold;
}

.d2-subtitle {
    color: #d4af37;
    font-size: 1.1rem;
    margin: 0;
}

/* Character Class Tabs */
.d2-tabs {
    border-bottom: 2px solid #8b6914;
    background: linear-gradient(180deg, #3d2817 0%, #2c1810 100%);
    border-radius: 8px 8px 0 0;
}

.d2-tab {
    background: linear-gradient(180deg, #2c1810 0%, #1a0f08 100%);
    border: 1px solid #8b6914;
    color: #d4af37;
    font-weight: 600;
    padding: 12px 20px;
    margin-right: 2px;
    transition: all 0.3s ease;
}

.d2-tab:hover {
    background: linear-gradient(180deg, #3d2817 0%, #2c1810 100%);
    color: #ffd700;
    transform: translateY(-2px);
}

.d2-tab.active {
    background: linear-gradient(180deg, #8b6914 0%, #6b5411 100%);
    color: #fff;
    border-color: #ffd700;
}

.class-emoji {
    margin-right: 8px;
    font-size: 1.2em;
}

/* Tab Content */
.d2-tab-content {
    background: linear-gradient(135deg, #2c1810 0%, #1a0f08 100%);
    border: 1px solid #8b6914;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 2rem;
}

/* Character Panel */
.character-panel {
    color: #d4af37;
}

.character-info-card {
    background: linear-gradient(135deg, #3d2817 0%, #2c1810 100%);
    border: 2px solid #8b6914;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.character-name {
    color: #ffd700;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.info-row, .stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    border-bottom: 1px dotted #8b6914;
}

.info-row:last-child, .stat-row:last-child {
    border-bottom: none;
}

.label, .stat-label {
    color: #d4af37;
    font-weight: 600;
}

.value, .stat-value {
    color: #fff;
    font-weight: bold;
}

/* Level and Difficulty Colors */
.level-85 { color: #ff6b6b; }
.level-80 { color: #ff8e53; }
.level-75 { color: #ffa726; }
.level-70 { color: #ffca28; }

.difficulty-hell { color: #e53935; }
.difficulty-nightmare { color: #ffa726; }
.difficulty-normal { color: #66bb6a; }

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, #3d2817 0%, #2c1810 100%);
    border: 2px solid #8b6914;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.stats-card h4 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #8b6914;
    padding-bottom: 0.5rem;
}

/* Stat Bars */
.stat-bar-container {
    margin-bottom: 1rem;
}

.stat-bar-label {
    color: #d4af37;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.stat-bar-label-with-steal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #d4af37;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.steal-value {
    color: #ff6b6b;
    font-size: 0.9rem;
    font-weight: bold;
}

.stat-bar {
    height: 20px;
    background: linear-gradient(180deg, #1a0f08 0%, #0d0704 100%);
    border: 1px solid #8b6914;
    border-radius: 4px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    transition: width 0.8s ease;
}

.life-bar .stat-bar-fill {
    background: linear-gradient(180deg, #e53935 0%, #c62828 100%);
}

.mana-bar .stat-bar-fill {
    background: linear-gradient(180deg, #3f51b5 0%, #303f9f 100%);
}

/* Resistances Grid */
.resistance-grid-expanded {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.resistance-item {
    background: linear-gradient(135deg, #1a0f08 0%, #0d0704 100%);
    border: 1px solid #8b6914;
    border-radius: 4px;
    padding: 0.8rem;
    text-align: center;
}

.resist-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.resist-value {
    font-weight: bold;
    font-size: 1.1rem;
}

.resist-value.negative {
    color: #e53935;
}

.resist-value.max {
    color: #4caf50;
}

/* Magic Find Highlight */
.stat-row.highlight {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
    border-radius: 4px;
    padding: 0.5rem;
}

.mf-value {
    color: #ffd700;
    font-size: 1.2rem;
}

/* Diablo 2 Button */
.d2-btn {
    background: linear-gradient(180deg, #8b6914 0%, #6b5411 100%);
    border: 2px solid #ffd700;
    color: #fff;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.d2-btn:hover {
    background: linear-gradient(180deg, #ffd700 0%, #8b6914 100%);
    color: #2c1810;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .d2-container {
        padding: 1rem;
    }
    
    .d2-title {
        font-size: 2rem;
    }
    
    .d2-tab {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .resistance-grid, .resistance-grid-expanded {
        grid-template-columns: 1fr;
    }
}