/**
 * D&D AI RPG - Reputation System Styles
 * NPC relationships and faction standings UI
 */

/* Reputation Notification */
.reputation-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 12px 20px;
    color: white;
    z-index: 4000;
    animation: repSlideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reputation-notification.positive {
    border-color: #2ecc71;
}

.reputation-notification.negative {
    border-color: #e74c3c;
}

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

.reputation-notification.fade-out {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
}

.rep-icon {
    font-size: 20px;
    font-weight: bold;
}

.reputation-notification.positive .rep-icon {
    color: #2ecc71;
}

.reputation-notification.negative .rep-icon {
    color: #e74c3c;
}

.rep-text {
    font-size: 14px;
    font-weight: bold;
}

.rep-level {
    font-size: 12px;
    color: #95a5a6;
    text-transform: capitalize;
}

/* Reputation Panel */
.reputation-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3300;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.reputation-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #3498db;
    border-radius: 15px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.reputation-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reputation-header h2 {
    margin: 0;
    color: white;
    font-size: 20px;
}

.reputation-header .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.reputation-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.reputation-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
}

.reputation-section {
    margin-bottom: 25px;
}

.reputation-section:last-child {
    margin-bottom: 0;
}

.reputation-section h3 {
    color: #f39c12;
    margin: 0 0 15px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(243, 156, 18, 0.3);
    padding-bottom: 8px;
}

/* Faction List */
.faction-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faction-entry {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
}

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

.faction-icon {
    font-size: 24px;
}

.faction-name {
    flex: 1;
    color: #ecf0f1;
    font-weight: bold;
    font-size: 15px;
}

.faction-disposition {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.faction-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.faction-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.faction-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease, background-color 0.5s ease;
}

.faction-bar-marker {
    position: absolute;
    left: 50%;
    top: -2px;
    bottom: -2px;
    width: 2px;
    background: white;
    transform: translateX(-50%);
}

.faction-value {
    width: 40px;
    text-align: right;
    font-weight: bold;
    font-size: 14px;
    color: #ecf0f1;
}

.faction-description {
    font-size: 12px;
    color: #7f8c8d;
    font-style: italic;
}

/* NPC List */
.npc-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.npc-entry {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
}

.npc-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.npc-name {
    color: #ecf0f1;
    font-weight: bold;
    font-size: 14px;
}

.npc-disposition {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.npc-details {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: #7f8c8d;
}

/* Disposition Colors in Text */
.disposition-hostile { color: #e74c3c; }
.disposition-unfriendly { color: #e67e22; }
.disposition-neutral { color: #95a5a6; }
.disposition-friendly { color: #3498db; }
.disposition-honored { color: #2ecc71; }
.disposition-exalted { color: #9b59b6; }

/* Responsive */
@media (max-width: 600px) {
    .reputation-content {
        max-width: 95%;
    }

    .reputation-body {
        padding: 15px;
    }

    .npc-list {
        grid-template-columns: 1fr;
    }
}
