/* Estilos para Sistema de Trade */

#win-trade {
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: auto;
    min-height: 400px;
}

.trade-container {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
}

.trade-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trade-player-name {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #f1c40f;
    padding: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #5a4a35;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trade-grid {
    display: grid;
    --trade-slot-size: 42px;
    grid-template-columns: repeat(4, var(--trade-slot-size));
    grid-template-rows: repeat(2, var(--trade-slot-size));
    gap: 6px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #5a4a35;
    border-radius: 4px;
    min-height: 180px;
    justify-content: center;
    align-content: center;
    box-sizing: border-box;
}

.trade-slot {
    width: var(--trade-slot-size);
    height: var(--trade-slot-size);
    background: #1a1510;
    border: 1px solid #5a4a35;
    box-shadow: inset 0 0 10px #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s, background-color 0.2s;
}

.trade-slot:hover {
    border-color: #f1c40f;
    background-color: #2a2520;
}

.trade-slot.occupied {
    cursor: default;
}

.trade-slot img {
    width: 80%;
    height: 80%;
    image-rendering: pixelated;
    filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.5));
}

.trade-slot .slot-count {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    pointer-events: none;
}

.trade-gold-input,
.trade-gold-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #5a4a35;
    border-radius: 4px;
}

.trade-gold-input label,
.trade-gold-display label {
    font-size: 12px;
    color: #d4af37;
    font-weight: bold;
    flex-shrink: 0;
}

.trade-gold-input input {
    flex: 1;
    padding: 5px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #5a4a35;
    color: #f1c40f;
    border-radius: 3px;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
}

.trade-gold-input input:focus {
    outline: none;
    border-color: #d4af37;
}

.trade-gold-display span {
    flex: 1;
    color: #f1c40f;
    font-weight: bold;
    font-size: 14px;
}

.trade-ready-btn {
    padding: 10px;
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    border: 1px solid #1f5a8a;
    color: white;
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.trade-ready-btn:hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.trade-ready-btn.ready {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border-color: #1e8449;
}

.trade-ready-btn.ready:hover {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

.trade-status {
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #5a4a35;
    border-radius: 4px;
    color: #95a5a6;
    font-size: 12px;
    font-weight: bold;
}

.trade-status.ready {
    color: #2ecc71;
    border-color: #27ae60;
    background: rgba(46, 204, 113, 0.1);
}

.trade-divider {
    width: 2px;
    background: linear-gradient(to bottom, transparent, #d4af37, transparent);
    flex-shrink: 0;
}

.trade-actions {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid #5a4a35;
}

.trade-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.trade-btn-accept {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: 1px solid #1e8449;
}

.trade-btn-accept:hover:not(:disabled) {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
    transform: translateY(-2px);
}

.trade-btn-accept:disabled {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    border-color: #5a6268;
    cursor: not-allowed;
    opacity: 0.5;
}

.trade-btn-cancel {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: white;
    border: 1px solid #a93226;
}

.trade-btn-cancel:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    transform: translateY(-2px);
}

.trade-btn:active {
    transform: scale(0.98);
}

/* Modal de Convite de Trade */
#trade-invite-modal .glass-box {
    border: 2px solid #f39c12;
    min-width: 250px;
}

#trade-invite-modal h3 {
    color: #f39c12;
}

#trade-invite-modal p {
    font-family: 'Roboto', sans-serif;
    margin: 15px 0;
    font-size: 14px;
}
