/* Custom styles for PoE2 Fan Site */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #92400e;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b45309;
}

/* Skill tree node styles */
.skill-node {
    cursor: pointer;
    transition: all 0.2s ease;
}

.skill-node:hover {
    filter: brightness(1.3);
    transform: scale(1.1);
}

.skill-node.allocated {
    filter: drop-shadow(0 0 8px #f59e0b);
}

.skill-node.available {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

/* Skill tree connection lines */
.skill-connection {
    stroke: #4b5563;
    stroke-width: 2;
    transition: stroke 0.3s ease;
}

.skill-connection.active {
    stroke: #f59e0b;
    stroke-width: 3;
}

/* Class card hover effect */
.class-card {
    transition: all 0.3s ease;
}

.class-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Tooltip */
.tooltip {
    position: absolute;
    background: linear-gradient(to bottom, #1f2937, #111827);
    border: 1px solid #92400e;
    border-radius: 8px;
    padding: 12px;
    max-width: 300px;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.tooltip h4 {
    color: #f59e0b;
    margin-bottom: 8px;
    font-size: 14px;
}

.tooltip p {
    color: #d1d5db;
    font-size: 12px;
    line-height: 1.4;
}

/*
.tooltip .stats {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #4b5563;
}

.tooltip .stat {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9ca3af;
}
*/

/* Build filter buttons */
.filter-btn {
    transition: all 0.2s ease;
}

.filter-btn.active {
    background: #d97706 !important;
    color: white !important;
}

/* Stat bar animation */
.stat-bar {
    transition: width 0.5s ease;
}

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #1f2937;
    border: 1px solid #92400e;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
}

/* Gem slot styles */
.gem-slot {
    transition: all 0.2s ease;
}

.gem-slot:hover {
    transform: scale(1.1);
    border-color: #f59e0b;
}

.gem-slot.filled {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Loading animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #4b5563;
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Stat colors */
.stat-strength { color: #ef4444; }
.stat-dexterity { color: #22c55e; }
.stat-intelligence { color: #3b82f6; }
.stat-resistance { color: #f59e0b; }

/* Rarity colors */
rarity-common { color: #9ca3af; }
rarity-magic { color: #3b82f6; }
rarity-rare { color: #fbbf24; }
rarity-unique { color: #a855f7; }
rarity-legendary { color: #ef4444; }

/* Responsive utilities */
@media (max-width: 768px) {
    .tooltip {
        max-width: 200px;
        font-size: 11px;
    }
}