/* Chat System Styles */
.chat-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    max-height: 400px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
}

.chat-container.minimized {
    max-height: 50px;
    overflow: hidden;
}

.chat-container.minimized .chat-messages,
.chat-container.minimized .chat-input-container {
    display: none;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px 15px 0 0;
}

.chat-channels {
    display: flex;
    gap: 5px;
}

.channel-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.channel-btn img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 10px;
    font-weight: bold;
    margin-right: 5px;
}

/* Achievement Badge Styles */
.achievement-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #f6d365;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.achievement-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(246, 211, 101, 0.5);
}

.badge-fallback {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    border: 2px solid #f6d365;
}

.channel-btn:hover:not([disabled]) {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.channel-btn.active {
    background: rgba(0, 123, 255, 0.3);
    color: white;
}

.channel-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-controls {
    display: flex;
    gap: 5px;
}

.chat-toggle-btn, .chat-settings-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.chat-toggle-btn:hover, .chat-settings-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    max-height: 250px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.chat-message {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    animation: fadeInUp 0.3s ease;
}

.chat-message.own-message {
    flex-direction: row-reverse;
}

.chat-message.own-message .message-content {
    background: rgba(0, 123, 255, 0.2);
    border-radius: 15px 5px 15px 15px;
}

.message-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.message-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 5px 15px 15px 15px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.message-author {
    font-weight: bold;
    color: #4CAF50;
    cursor: pointer;
    font-size: 12px;
}

.message-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.message-text {
    color: white;
    font-size: 13px;
    word-wrap: break-word;
    line-height: 1.4;
}

.chat-input-container {
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.emoji-picker {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

.emoji-row {
    display: flex;
    gap: 5px;
}

.emoji-row img {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
}

.emoji-row img:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.1);
}

.emoji-row img:error {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #333;
    font-size: 16px;
    font-weight: bold;
}

.chat-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.emoji-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.emoji-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

#chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 8px 15px;
    color: white;
    font-size: 13px;
}

#chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#chat-input:focus {
    outline: none;
    border-color: rgba(0, 123, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.send-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.send-btn:hover:not([disabled]) {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.send-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.user-context-menu {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 5px 0;
    z-index: 2000;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.2s ease;
}

.user-context-menu .menu-item {
    padding: 8px 15px;
    color: white;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s ease;
}

.user-context-menu .menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Settings System Styles */
.settings-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.settings-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.settings-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 80%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.settings-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.settings-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.settings-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.settings-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.settings-sidebar {
    width: 250px;
    background: rgba(0, 0, 0, 0.05);
    border-right: 2px solid rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.settings-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.settings-menu-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.settings-menu-item.active {
    background: rgba(102, 126, 234, 0.1);
    border-left-color: #667eea;
    color: #667eea;
}

.settings-menu-item img {
    width: 24px;
    height: 24px;
}

.settings-menu-item span {
    font-weight: 500;
    font-size: 14px;
}

.settings-main {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.settings-section h3 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 22px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.setting-group {
    margin-bottom: 25px;
}

.setting-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.settings-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.settings-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.settings-input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.settings-slider {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.settings-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.settings-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.slider-value {
    font-weight: bold;
    color: #667eea;
    min-width: 40px;
    text-align: right;
}

.settings-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 30px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.02);
}

.settings-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.settings-btn.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.settings-btn.btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Character Management Styles */
.character-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1500;
    display: none;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    overflow: hidden;
}

.character-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.character-title {
    color: white;
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.character-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.character-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.character-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    padding: 0 30px;
}

.character-tab {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 15px 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.character-tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.character-tab.active {
    color: white;
    border-bottom-color: #4CAF50;
    background: rgba(255, 255, 255, 0.1);
}

.character-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.daily-quests-grid, .achievements-grid, .inventory-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.daily-quests-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.achievements-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.inventory-grid {
    grid-template-columns: repeat(5, 1fr);
    max-width: 500px;
    gap: 10px;
}

.quest-card, .achievement-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.quest-card:hover, .achievement-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.quest-header, .achievement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.quest-title, .achievement-title {
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.quest-reward, .achievement-reward {
    color: #4CAF50;
    font-weight: bold;
    background: rgba(76, 175, 80, 0.2);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
}

.quest-description, .achievement-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.quest-progress, .achievement-progress {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

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

.quest-progress-text, .achievement-progress-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    margin-top: 5px;
    text-align: center;
}

.quest-claim-btn, .achievement-claim-btn {
    width: 100%;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.quest-claim-btn:hover, .achievement-claim-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.quest-claim-btn[disabled], .achievement-claim-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.inventory-slot {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(5px);
}

.inventory-slot:hover {
    border-color: rgba(76, 175, 80, 0.8);
    background: rgba(76, 175, 80, 0.1);
    transform: scale(1.05);
}

.inventory-slot.occupied {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.2);
}

.inventory-item-icon {
    width: 80%;
    height: 80%;
    object-fit: contain;
    border-radius: 5px;
}

.inventory-item-count {
    position: absolute;
    bottom: 3px;
    right: 3px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.inventory-title {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.inventory-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .chat-container {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        bottom: 80px;
    }
    
    .settings-content {
        width: 95%;
        height: 90%;
    }
    
    .settings-body {
        flex-direction: column;
    }
    
    .settings-sidebar {
        width: 100%;
        height: 120px;
        overflow-x: auto;
        overflow-y: hidden;
        display: flex;
        border-right: none;
        border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    }
    
    .settings-menu-item {
        white-space: nowrap;
        flex-shrink: 0;
        border-left: none;
        border-bottom: 4px solid transparent;
    }
    
    .settings-menu-item.active {
        border-left: none;
        border-bottom-color: #667eea;
    }
    
    .character-content {
        padding: 20px;
    }
    
    .daily-quests-grid, .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .inventory-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: none;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* High Contrast Mode */
.high-contrast .chat-container,
.high-contrast .settings-content,
.high-contrast .character-panel {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
}

.high-contrast .settings-input {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
}

.high-contrast .inventory-slot {
    background: #000;
    border: 2px solid #fff;
}

/* Reduced Motion */
.reduced-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* Font Size Variants */
.font-small { font-size: 12px; }
.font-normal { font-size: 14px; }
.font-large { font-size: 16px; }
.font-extra-large { font-size: 18px; }

/* Color Blind Filters */
.colorblind-protanopia {
    filter: url('#protanopia-filter');
}

.colorblind-deuteranopia {
    filter: url('#deuteranopia-filter');
}

.colorblind-tritanopia {
    filter: url('#tritanopia-filter');
}

/* Equipment Management Modal */
.equipment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.equipment-modal {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
}

.equipment-modal .modal-header {
    background: linear-gradient(135deg, #4a4a4a, #2a2a2a);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.equipment-modal .modal-header h2 {
    color: #ffd700;
    margin: 0;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.equipment-modal .close-btn {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #ff6b6b;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipment-modal .close-btn:hover {
    background: rgba(255, 0, 0, 0.4);
    transform: scale(1.1);
}

.equipment-modal .modal-content {
    padding: 20px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.hero-equipment-ui {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    color: #fff;
}

.hero-equipment-ui h3 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Equipment Slots */
.equipment-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.equipment-slot {
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.equipment-slot.equipped {
    border-color: rgba(255, 215, 0, 0.6);
    background: linear-gradient(145deg, #4a4a2a, #3a3a1a);
}

.equipment-slot.empty {
    border-color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
}

.slot-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ffd700;
    font-weight: bold;
}

.slot-name {
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 10px;
}

.equipped-item {
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding-top: 10px;
    margin-top: 10px;
}

.item-name {
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.item-stats {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.unequip-btn {
    background: linear-gradient(145deg, #ff4444, #cc3333);
    border: none;
    border-radius: 8px;
    padding: 5px 10px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.unequip-btn:hover {
    background: linear-gradient(145deg, #ff6666, #dd4444);
    transform: translateY(-1px);
}

.empty-slot {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Available Equipment */
.equipment-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.equipment-item {
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.equipment-item:hover {
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.equipment-item.cannot-equip {
    opacity: 0.6;
    background: linear-gradient(145deg, #333333, #222222);
}

.item-icon {
    font-size: 20px;
    color: #ffd700;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.item-name.common { color: #9e9e9e; }
.item-name.rare { color: #4caf50; }
.item-name.epic { color: #9c27b0; }
.item-name.legendary { color: #ff9800; }

.item-type {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
    text-transform: capitalize;
}

.equip-btn {
    background: linear-gradient(145deg, #4caf50, #388e3c);
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.equip-btn:hover {
    background: linear-gradient(145deg, #66bb6a, #43a047);
    transform: translateY(-1px);
}

.cannot-equip-reason {
    font-size: 12px;
    color: #ff6b6b;
    font-style: italic;
}

.no-equipment {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-style: italic;
    padding: 20px;
}

/* Hero Stats */
.hero-stats-with-equipment {
    grid-column: span 2;
    background: linear-gradient(145deg, #2a2a3a, #1a1a2a);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
}

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

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-name {
    font-weight: bold;
    color: #ffd700;
}

.stat-value {
    font-weight: bold;
    color: #fff;
    font-size: 16px;
}

.equipment-bonus {
    color: #4caf50;
    font-size: 12px;
    margin-left: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .equipment-modal {
        width: 95vw;
        max-height: 95vh;
    }
    
    .hero-equipment-ui {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .equipment-slots {
        grid-template-columns: 1fr;
    }
    
    .hero-stats-with-equipment {
        grid-column: span 1;
    }
    
    .stats-display {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}