/**
 * expanded-styles.css
 * 
 * Styles for expanded gameplay systems UI
 */

/* Overlay for expanded screens */
.expanded-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

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

.expanded-screen {
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #d4af37;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.expanded-screen h2 {
    color: #d4af37;
    font-size: 2.5em;
    margin: 0 0 10px 0;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.subtitle {
    color: #aaa;
    font-style: italic;
    margin-bottom: 30px;
}

/* Gang Management Styles */
.gang-stats {
    display: flex;
    justify-content: space-around;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid #d4af37;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 30px;
}

.gang-stats p {
    margin: 5px;
    color: #fff;
}

.member-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gang-member-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid #666;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.gang-member-card:hover {
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.gang-member-card.injured {
    border-color: #ff6b35;
    opacity: 0.8;
}

.gang-member-card.jailed {
    border-color: #ff0000;
    opacity: 0.6;
}

.gang-member-card.dead {
    border-color: #333;
    opacity: 0.3;
    filter: grayscale(100%);
}

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

.member-header h3 {
    margin: 0;
    color: #d4af37;
    font-size: 1.3em;
}

.status-badge {
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    color: #fff;
}

.member-role {
    color: #aaa;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.member-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

.stat {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.member-perk {
    background: rgba(212, 175, 55, 0.2);
    border-left: 3px solid #d4af37;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.member-traits {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.trait-badge {
    background: rgba(100, 100, 255, 0.3);
    border: 1px solid #6464ff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    color: #ccc;
}

.assignment {
    background: rgba(0, 255, 0, 0.1);
    border-left: 3px solid #00ff00;
    padding: 8px;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.member-actions {
    display: flex;
    gap: 10px;
}

.member-actions button {
    flex: 1;
    padding: 8px;
    font-size: 0.85em;
}

.gang-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Territory Map Styles */
.territory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.territory-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid #666;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.territory-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.territory-card.controlled {
    border-color: #00ff00;
}

.territory-card.uncontrolled {
    border-color: #ff6b35;
}

.territory-card.low {
    background: linear-gradient(135deg, #2a3a2a 0%, #1a2a1a 100%);
}

.territory-card.medium {
    background: linear-gradient(135deg, #3a3a2a 0%, #2a2a1a 100%);
}

.territory-card.high {
    background: linear-gradient(135deg, #3a2a2a 0%, #2a1a1a 100%);
}

.territory-card.very-high {
    background: linear-gradient(135deg, #4a1a1a 0%, #3a0a0a 100%);
}

.territory-card h3 {
    color: #d4af37;
    margin: 0 0 10px 0;
}

.territory-description {
    color: #aaa;
    font-size: 0.9em;
    margin-bottom: 15px;
    font-style: italic;
}

.territory-info {
    margin-bottom: 15px;
}

.territory-info div {
    padding: 5px;
    color: #ccc;
}

.territory-status {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    padding: 10px;
    margin: 15px 0;
}

.territory-status strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.territory-status.controlled strong {
    color: #00ff00;
}

.territory-status.uncontrolled strong {
    color: #ff6b35;
}

.territory-actions {
    display: flex;
    gap: 10px;
}

.territory-actions button {
    flex: 1;
    padding: 10px;
    font-size: 0.9em;
}

.territory-legend {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.territory-legend h3 {
    margin: 0 0 10px 0;
    color: #d4af37;
}

.territory-legend span {
    display: inline-block;
    padding: 5px 15px;
    margin-right: 10px;
    margin-bottom: 5px;
    border-radius: 3px;
}

.risk-low { background: #2a4a2a; }
.risk-medium { background: #4a4a2a; }
.risk-high { background: #4a2a2a; }
.risk-very-high { background: #5a1a1a; }

/* Defender Manager */
.defender-manager {
    max-width: 800px;
    margin: 0 auto;
    background: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
}

.current-defenders, .available-members {
    margin-bottom: 30px;
}

.current-defenders h3, .available-members h3 {
    color: #d4af37;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.defender-item, .member-item {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid #666;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.defender-item button, .member-item button {
    padding: 5px 15px;
}

/* Interactive Events */
.interactive-event {
    max-width: 900px;
    margin: 0 auto;
    background: #1a1a1a;
    padding: 40px;
    border-radius: 10px;
    border: 2px solid #ff6b35;
}

.interactive-event h2 {
    font-size: 2.5em;
    margin: 0 0 20px 0;
    text-align: center;
}

.event-description {
    font-size: 1.2em;
    color: #ccc;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

.event-choices {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-choice {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid #d4af37;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-choice:hover:not(.disabled) {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    transform: translateX(5px);
}

.event-choice.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #666;
}

.event-choice h3 {
    color: #d4af37;
    margin: 0 0 10px 0;
}

.success-chance {
    background: rgba(0, 255, 0, 0.2);
    border-left: 3px solid #00ff00;
    padding: 5px 10px;
    margin: 10px 0;
    font-weight: bold;
}

.requirements {
    color: #aaa;
    font-size: 0.9em;
    margin-top: 10px;
}

.requirements-not-met {
    color: #ff6b35;
    font-weight: bold;
    margin-top: 10px;
}

/* Event Outcome */
.event-outcome {
    max-width: 700px;
    margin: 0 auto;
    background: #1a1a1a;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.event-outcome.success {
    border: 3px solid #00ff00;
}

.event-outcome.failure {
    border: 3px solid #ff0000;
}

.event-outcome h2 {
    font-size: 3em;
    margin: 0 0 20px 0;
}

.outcome-message {
    font-size: 1.3em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #ccc;
}

.outcome-effects {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.outcome-effects div {
    font-size: 1.1em;
    padding: 8px;
    color: #fff;
}

/* Rival Kingpins */
.rivals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.rival-card {
    background: linear-gradient(135deg, #2a1a1a 0%, #1a0a0a 100%);
    border: 2px solid #ff6b35;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.rival-card:hover {
    border-color: #ff9b65;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.rival-card h3 {
    color: #ff6b35;
    margin: 0 0 5px 0;
    font-size: 1.4em;
}

.rival-faction {
    color: #aaa;
    text-transform: uppercase;
    font-size: 0.85em;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.rival-stats {
    margin-bottom: 15px;
}

.rival-stats div {
    padding: 5px;
    color: #ccc;
}

.rival-personality {
    background: rgba(255, 107, 53, 0.1);
    border-left: 3px solid #ff6b35;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.rival-ability {
    background: rgba(212, 175, 55, 0.2);
    border-left: 3px solid #d4af37;
    padding: 10px;
    font-size: 0.9em;
}

/* Legacy Perks Shop */
.legacy-points {
    text-align: center;
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid #d4af37;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.legacy-points h3 {
    margin: 0;
    color: #d4af37;
    font-size: 2em;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.perks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.perk-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid #666;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.perk-card:hover:not(.locked) {
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.perk-card.unlocked {
    border-color: #00ff00;
    background: linear-gradient(135deg, #2a3a2a 0%, #1a2a1a 100%);
}

.perk-card.locked {
    opacity: 0.5;
}

.perk-card h3 {
    color: #d4af37;
    margin: 0 0 10px 0;
}

.perk-cost {
    background: rgba(212, 175, 55, 0.2);
    padding: 8px;
    border-radius: 4px;
    margin: 15px 0;
    text-align: center;
    font-weight: bold;
}

.perk-status {
    text-align: center;
    padding: 10px;
    font-weight: bold;
    border-radius: 4px;
    margin-top: 10px;
}

.perk-card.unlocked .perk-status {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
}

.perk-card.locked .perk-status {
    background: rgba(255, 0, 0, 0.1);
    color: #ff6b35;
}

/* Don's Vault */
.vault-completion {
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid #d4af37;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.vault-completion h3 {
    margin: 0 0 15px 0;
    color: #d4af37;
    text-align: center;
}

.progress-bar {
    background: rgba(0, 0, 0, 0.5);
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #d4af37 0%, #ffd700 100%);
    height: 100%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.vault-category {
    margin-bottom: 40px;
}

.vault-category h3 {
    color: #d4af37;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

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

.collectible-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid #666;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.collectible-card.collected {
    border-color: #d4af37;
}

.collectible-card.collected:hover {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.collectible-card.locked {
    opacity: 0.3;
}

.collectible-card h4 {
    margin: 0 0 10px 0;
    color: #d4af37;
}

.rarity {
    font-size: 0.85em;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: bold;
}

.rarity-legendary { color: #ff6600; }
.rarity-epic { color: #9933ff; }
.rarity-rare { color: #0099ff; }
.rarity-uncommon { color: #00ff00; }

.value {
    font-size: 0.9em;
    color: #aaa;
}

.locked-message {
    color: #666;
    font-style: italic;
}

/* Relationships */
.relationships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.relationship-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid #666;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.relationship-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.relationship-card.very-high { border-color: #00ff00; }
.relationship-card.high { border-color: #88ff88; }
.relationship-card.neutral { border-color: #aaa; }
.relationship-card.low { border-color: #ff8800; }
.relationship-card.very-low { border-color: #ff0000; }

.relationship-card h3 {
    margin: 0 0 10px 0;
    color: #d4af37;
}

.respect-value {
    font-size: 1.1em;
    margin-bottom: 15px;
    font-weight: bold;
}

.respect-bar-container {
    background: rgba(0, 0, 0, 0.5);
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.respect-bar-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.respect-bar-fill.very-high { background: #00ff00; }
.respect-bar-fill.high { background: #88ff88; }
.respect-bar-fill.neutral { background: #aaa; }
.respect-bar-fill.low { background: #ff8800; }
.respect-bar-fill.very-low { background: #ff0000; }

.respect-legend {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.respect-legend h3 {
    margin: 0 0 15px 0;
    color: #d4af37;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #ccc;
}

.legend-item .respect-bar {
    display: inline-block;
    width: 60px;
    height: 20px;
    border-radius: 3px;
    margin-right: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .expanded-screen-overlay {
        padding: 10px;
    }
    
    .expanded-screen {
        padding: 20px;
    }
    
    .member-list,
    .territory-grid,
    .rivals-grid,
    .perks-grid,
    .collectibles-grid,
    .relationships-grid {
        grid-template-columns: 1fr;
    }
    
    .gang-stats {
        flex-direction: column;
    }
    
    .event-choices {
        gap: 15px;
    }
}
