

.character-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.character-page h1,
.character-page h2,
.character-page h3{
    color: white;

}

.character-header {
    text-align: center;
    margin-bottom: 60px;
}

.character-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.equip-sections {
    display: flex;
    justify-content: center;
    gap: 120px;
    align-items: flex-start;
}

/* LEFT SIDE */
.main-equips {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.equip-group h2,
.equip-group h3 {
    text-align: center;
    margin-bottom: 20px;
}

.equip-row {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.equip-slot {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;

}
.equip-slot:hover {
    cursor: pointer;
    transform: scale(1.05);
}



/* RIGHT SIDE */
.extra-equips {
    width: 350px;
}

.extra-equips h2 {
    margin-bottom: 25px;
}

.extra-equip-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.extra-equip-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.equip-note {
    width: 220px;
    height: 80px;
    resize: none;
    padding: 8px;
}

.equip-slot.empty .equip-img
.equip-slot.empty .equip-border {
    display: none;
}

.equip-slot.filled .equip-img
.equip-slot.filled .equip-border {
    opacity: 1;
    display: block;
}

.equip-border {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.equip-img {
    position: absolute;
    width: 85%;
    height: 85%;
    object-fit: contain;
    z-index: 1;
}

.equip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.equip-name {
    width: 90px;
    text-align: center;
    color: #d8d8d8;
    font-size: 12px;
    line-height: 1.2;

    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.equip-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;

    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: 400px;
    max-height: 500px;
    overflow-y: auto;

    background: #f4f0f0;
    border: 2px solid #444;
    padding: 15px;

    
    z-index: 9999;
}

.equip-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.picker-slot {
    width: 70px;
    height: 70px;
    position: relative;
}


.edit-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    display: flex;
    justify-content: space-between;

    padding: 12px 20px;
    background: rgba(20, 20, 20, 0.95);
    border-top: 1px solid #333;
    z-index: 999;
}

#save-btn,
#publish-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

#save-btn {
    background: #444;
    color: white;
}

#save-btn:hover {
    background: #666;
}

#publish-btn {
    background: #2ecc71;
    color: white;
}

#publish-btn:hover {
    background: #27ae60;
}

/* when clicked (mouse down) */
#save-btn:active,
#publish-btn:active{
  transform: translateY(3px);
  box-shadow: 0 1px 0 #312e81;
}






/* FOR MOBILE */
@media (max-width: 768px) {

    .equip-sections {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .main-equips,
    .extra-equips {
        width: 100%;
    }

    .extra-equips {
        max-width: 350px; /* keeps it from stretching too wide */
    }
}