/* Game UI - achievements, soul weapon, cards - extracted from inline index.html */

/* Achievements System Styles */
.achievements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #4ecdc4;
}

.achievements-header h2 {
    margin: 0;
    color: #4ecdc4;
}

.achievements-summary {
    display: flex;
    gap: 20px;
}

.achievements-count {
    color: #4ecdc4;
    font-weight: bold;
    font-size: 1.1em;
}

.achievements-sp {
    color: #888;
}

.achievements-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.achievements-category-tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    color: #eee;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.achievements-category-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.achievements-category-tab.active {
    background: rgba(78, 205, 196, 0.2);
    border-color: #4ecdc4;
}

.category-icon {
    font-size: 1.5em;
}

.category-name {
    font-size: 0.9em;
}

.category-count {
    font-size: 0.8em;
    color: #888;
}

.achievements-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(100, 100, 100, 0.3);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.achievement-card.locked {
    opacity: 0.6;
}

.achievement-card.locked .achievement-icon {
    filter: grayscale(100%);
}

.achievement-card.unlocked {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.achievement-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.achievement-icon {
    font-size: 1.5em;
}

.achievement-name {
    font-weight: bold;
    color: #4ecdc4;
    flex: 1;
}

.achievement-tier {
    color: #888;
    font-size: 0.85em;
}

.achievement-description {
    color: #bbb;
    font-size: 0.9em;
    font-style: italic;
    margin-bottom: 10px;
}

.achievement-progress-container {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.achievement-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4, #45b7aa);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.achievement-progress-text {
    font-size: 0.8em;
    color: #888;
    margin-top: 5px;
    text-align: right;
}

.achievement-reward {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85em;
    color: #ffd700;
}

.no-achievements {
    color: #888;
    text-align: center;
    padding: 30px;
    font-style: italic;
}

/* Soul Weapon System Styles */
.soul-weapon-container {
    padding: 20px;
}

.soul-weapon-header {
    margin-bottom: 20px;
    text-align: center;
}

.soul-weapon-header h2 {
    color: #a855f7;
    margin-bottom: 10px;
}

.soul-weapon-description {
    color: #888;
    font-size: 0.9em;
}

.soul-weapon-slots-section,
.soul-weapon-available-section {
    margin-bottom: 25px;
}

.soul-weapon-slots-section h3,
.soul-weapon-available-section h3 {
    color: #4ecdc4;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(78, 205, 196, 0.3);
    padding-bottom: 8px;
}

.soul-weapon-slots {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.soul-weapon-slot {
    width: 180px;
    min-height: 100px;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.soul-weapon-slot.empty {
    background: rgba(168, 85, 247, 0.1);
    border: 2px dashed rgba(168, 85, 247, 0.4);
}

.soul-weapon-slot.filled {
    background: rgba(168, 85, 247, 0.2);
    border: 2px solid;
}

.slot-icon {
    font-size: 2em;
    color: #a855f7;
    margin-bottom: 10px;
}

.slot-label {
    color: #888;
}

.slot-weapon-info {
    flex: 1;
}

.slot-weapon-name {
    font-weight: bold;
    margin-bottom: 8px;
}

.slot-weapon-stats {
    display: flex;
    gap: 10px;
    justify-content: center;
    font-size: 0.85em;
    margin-bottom: 10px;
}

.stat-damage {
    color: #ff6b6b;
}

.stat-kills {
    color: #888;
}

.soul-weapon-remove-btn {
    padding: 5px 15px;
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
}

.soul-weapon-remove-btn:hover {
    background: rgba(231, 76, 60, 0.4);
}

.soul-weapon-available {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.soul-weapon-card {
    width: 200px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid;
    border-radius: 8px;
    padding: 15px;
}

.weapon-card-info {
    margin-bottom: 12px;
}

.weapon-card-name {
    font-weight: bold;
    margin-bottom: 8px;
}

.weapon-card-stats {
    display: flex;
    gap: 10px;
    justify-content: center;
    font-size: 0.85em;
}

.soul-weapon-place-btn {
    width: 100%;
    padding: 8px;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid #a855f7;
    color: #a855f7;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.soul-weapon-place-btn:hover:not(:disabled) {
    background: rgba(168, 85, 247, 0.4);
}

.soul-weapon-place-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.no-weapons-available {
    color: #888;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

.soul-weapon-locked {
    text-align: center;
    padding: 40px;
}

.soul-weapon-locked h2 {
    color: #a855f7;
    margin-bottom: 15px;
}

.soul-weapon-locked p {
    color: #888;
    margin-bottom: 10px;
}

.soul-weapon-locked .hint {
    color: #666;
    font-style: italic;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #ffd700;
    transition: all 0.3s ease;
}

.stat-card[style*="cursor: pointer"]:hover {
    background: rgba(78, 205, 196, 0.2);
    border-left-color: #4ecdc4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.stat-name {
    font-size: 0.9em;
    color: #bbb;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.5em;
    color: #ffd700;
    font-weight: bold;
}

.actions-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.action-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.3s;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.action-card:hover {
    border-color: #4ecdc4;
    transform: translateY(-2px);
}

.action-card.active {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.action-title {
    font-size: 1.2em;
    color: #4ecdc4;
    margin-bottom: 10px;
    font-weight: bold;
}

.action-description {
    color: #bbb;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.action-btn {
    width: 100%;
    padding: 12px;
    background: #4ecdc4;
    border: none;
    border-radius: 5px;
    color: #1a1a2e;
    font-weight: bold;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #45b7aa;
    transform: scale(1.05);
}

.action-btn:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
    transform: none;
}

.banish-btn {
    padding: 5px 12px;
    background: rgba(239, 68, 68, 0.25);
    border: 1px solid #f87171;
    border-radius: 5px;
    color: #fca5a5;
    font-weight: bold;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.banish-btn:hover {
    background: rgba(239, 68, 68, 0.5);
    border-color: #ef4444;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.proficiency-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.proficiency-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4, #44a08d);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.weapon-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.weapon-card:hover {
    border-color: #4ecdc4;
    transform: translateY(-2px);
}

.weapon-card.equipped {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.weapon-name {
    font-size: 1.1em;
    color: #4ecdc4;
    font-weight: bold;
    margin-bottom: 5px;
}

.weapon-damage {
    color: #ff6b6b;
    font-weight: bold;
}

.weapon-prof {
    color: #ffd700;
    font-size: 0.9em;
    margin-top: 5px;
}
